mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 644746 - Call updateVisibility when constructing the tabs container rather than when addProgressListener is called for the first time. r=gavin
--HG-- extra : rebase_source : e6ccbfe8274217fdca48ee5c53e5bf2eeca2d066
This commit is contained in:
parent
24127357de
commit
711cf8447b
@ -151,9 +151,6 @@
|
||||
false
|
||||
#endif
|
||||
</field>
|
||||
<field name="mAddProgressListenerWasCalled">
|
||||
false
|
||||
</field>
|
||||
<field name="_browsers">
|
||||
null
|
||||
</field>
|
||||
@ -1853,11 +1850,6 @@
|
||||
"608628.");
|
||||
}
|
||||
|
||||
if (!this.mAddProgressListenerWasCalled) {
|
||||
this.mAddProgressListenerWasCalled = true;
|
||||
this.tabContainer.updateVisibility();
|
||||
}
|
||||
|
||||
this.mProgressListeners.push(aListener);
|
||||
]]>
|
||||
</body>
|
||||
@ -2696,6 +2688,7 @@
|
||||
Services.prefs.addObserver("browser.tabs.", this._prefObserver, false);
|
||||
window.addEventListener("resize", this, false);
|
||||
|
||||
this.updateVisibility();
|
||||
if (window.TabsInTitlebar)
|
||||
TabsInTitlebar.allowedBy("tabs-visible", this.visible);
|
||||
]]>
|
||||
|
Loading…
Reference in New Issue
Block a user