1
edit
Changes
→Steps Taken
* I started off with the tooltip that is displayed when a user hovers over the Stop button. The tool tip shows the string "Stop loading this page". So I jumped into [http://lxr.mozilla.org/mozilla1.8.0/ LXR] and started searching for this string.
* I found [http://lxr.mozilla.org/mozilla1.8.0/source/embedding/tests/wxEmbed/rc/browser.xrc#162 this page] that shows that the tooltip is part of an object called ''browse_stop''. This is all defined inside an XML document that defines the layout of the toolbar.
* Searching for ''browse_stop'', I found a bunch of documents using it. One of the linkes links that jumped out at me was [http://lxr.mozilla.org/mozilla1.8.0/source/embedding/tests/wxEmbed/BrowserFrame.cpp#212 this one] which displays the javascript that handles the even of someone clicking on the stop button.
* Inside the OnBrowserStop function, there is a line that calls the [http://lxr.mozilla.org/mozilla1.8.0/source/embedding/tests/wxEmbed/BrowserFrame.cpp#217 Stop() function of an nsCOMPtr object]. So its save to conclude that the actual code that Stops the rendering of a page is located inside a COM Object.