Bug 339477 tabbrowser.xml's observer destructor never gets called, leaking mTabClipWidth at shutdown. Patch by Adam Guthrie <ispiked@gmail.com>, r+a=mconnor

This commit is contained in:
jminta@gmail.com 2007-08-21 22:01:18 -07:00
parent 7ebb1bfc90
commit da4e0293be

View File

@ -2279,7 +2279,7 @@
}
this._updateDisableBackgroundClose();
pb2.addObserver("browser.tabs.disableBackgroundClose", this, false);
pb2.addObserver("browser.tabs.disableBackgroundClose", this, true);
var self = this;
function onResize() {
@ -2288,13 +2288,6 @@
window.addEventListener("resize", onResize, false);
</constructor>
<destructor>
var pb2 =
Components.classes["@mozilla.org/preferences-service;1"].
getService(Components.interfaces.nsIPrefBranch2);
pb2.removeObserver("browser.tabs.disableBackgroundClose", this);
</destructor>
<method name="_updateDisableBackgroundClose">
<body><![CDATA[
var prefs =