Bug 499601: A lot of 'leaked URLs' when Fennec is finished, r=mfinkle

This commit is contained in:
Hiroyuki Ikezoe 2009-06-25 01:37:31 -04:00
parent 361a014e36
commit 14568764ef
2 changed files with 5 additions and 0 deletions

View File

@ -156,6 +156,9 @@ CanvasBrowser.prototype = {
this._contentDOMWindowUtils = null;
if (!browser)
return;
browser.setAttribute("type", "content-primary");
if (!skipZoom)
browser.docShell.isOffScreenBrowser = true;

View File

@ -251,6 +251,8 @@ var Browser = {
},
shutdown: function() {
this._canvasBrowser.setCurrentBrowser(null);
BrowserUI.uninit();
var os = Cc["@mozilla.org/observer-service;1"].getService(Ci.nsIObserverService);