mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
fix for bug #343054, js errors when changing certain browser.tabs.* prefs
This commit is contained in:
parent
9bb4523ed7
commit
e6416fb86c
@ -2388,7 +2388,7 @@
|
||||
<xul:hbox class="tabs-closebutton-box" align="center" pack="end" anonid="tabstrip-closebutton">
|
||||
<xul:toolbarbutton ondblclick="event.stopPropagation();"
|
||||
class="close-button tabs-closebutton"
|
||||
oncommand="this.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.removeCurrentTab()"/>
|
||||
oncommand="this.parentNode.parentNode.parentNode.parentNode.parentNode.removeCurrentTab()"/>
|
||||
</xul:hbox>
|
||||
</content>
|
||||
<implementation>
|
||||
@ -2449,14 +2449,14 @@
|
||||
if (topic == "nsPref:changed") {
|
||||
switch (data) {
|
||||
case "browser.tabs.disableBackgroundClose":
|
||||
this._updateDisableBackgroundClose();
|
||||
this.tabbox._updateDisableBackgroundClose();
|
||||
break;
|
||||
case "browser.tabs.closeButtons":
|
||||
var pb2 =
|
||||
Components.classes['@mozilla.org/preferences-service;1'].
|
||||
getService(Components.interfaces.nsIPrefBranch2);
|
||||
this.mCloseButtons = pb2.getIntPref("browser.tabs.closeButtons");
|
||||
this.adjustTabstrip(false);
|
||||
this.tabbox.mCloseButtons = pb2.getIntPref("browser.tabs.closeButtons");
|
||||
this.tabbox.adjustTabstrip(false);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -65,7 +65,7 @@
|
||||
<xul:hbox class="tabs-closebutton-box" align="center" pack="end" anonid="tabstrip-closebutton">
|
||||
<xul:toolbarbutton ondblclick="event.stopPropagation();"
|
||||
class="close-button tabs-closebutton"
|
||||
oncommand="this.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.removeCurrentTab()"/>
|
||||
oncommand="this.parentNode.parentNode.parentNode.parentNode.parentNode.removeCurrentTab()"/>
|
||||
</xul:hbox>
|
||||
</xul:hbox>
|
||||
<xul:spacer class="tabs-bottom-spacer"/>
|
||||
|
Loading…
Reference in New Issue
Block a user