Bug 716334 - Avoid making the browser window visible before the layout is rendered. r=felip

This commit is contained in:
Dão Gottwald 2012-03-06 23:28:09 +01:00
parent f6cdf26ec3
commit 0243028384

View File

@ -5374,6 +5374,7 @@ function setToolbarVisibility(toolbar, isVisible) {
var TabsOnTop = {
init: function TabsOnTop_init() {
this._initialized = true;
this.syncUI();
Services.prefs.addObserver(this._prefName, this, false);
},
@ -5387,6 +5388,9 @@ var TabsOnTop = {
},
syncUI: function () {
if (!this._initialized)
return;
let userEnabled = Services.prefs.getBoolPref(this._prefName);
let enabled = userEnabled && gBrowser.tabContainer.visible;