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:
Dão Gottwald 2011-05-18 10:02:10 +02:00
parent 24127357de
commit 711cf8447b

View File

@ -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);
]]>