From da4e0293bebceb09450bdfbc0d5ae9c59436e6f4 Mon Sep 17 00:00:00 2001 From: "jminta@gmail.com" Date: Tue, 21 Aug 2007 22:01:18 -0700 Subject: [PATCH] Bug 339477 tabbrowser.xml's observer destructor never gets called, leaking mTabClipWidth at shutdown. Patch by Adam Guthrie , r+a=mconnor --- browser/base/content/tabbrowser.xml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/browser/base/content/tabbrowser.xml b/browser/base/content/tabbrowser.xml index a4a47fb2cbf..0864778a5ca 100644 --- a/browser/base/content/tabbrowser.xml +++ b/browser/base/content/tabbrowser.xml @@ -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); - - var pb2 = - Components.classes["@mozilla.org/preferences-service;1"]. - getService(Components.interfaces.nsIPrefBranch2); - pb2.removeObserver("browser.tabs.disableBackgroundClose", this); - -