Bug 688389 - Multiple tabs in Pop-up windows (created through Panorama) r=tim

This commit is contained in:
Raymond Lee 2011-10-05 00:53:56 +08:00
parent 85daa266bc
commit fa0ac48cce

View File

@ -92,6 +92,12 @@ let TabView = {
// ----------
init: function TabView_init() {
// disable the ToggleTabView command for popup windows
if (!window.toolbar.visible) {
goSetCommandEnabled("Browser:ToggleTabView", false);
return;
}
if (this._initialized)
return;
@ -169,6 +175,10 @@ let TabView = {
_initFrame: function TabView__initFrame(callback) {
let hasCallback = typeof callback == "function";
// prevent frame to be initialized for popup windows
if (!window.toolbar.visible)
return;
if (this._window) {
if (hasCallback)
callback();