mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
7ebb1bfc90
commit
da4e0293be
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user