mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 688389 - Multiple tabs in Pop-up windows (created through Panorama) r=tim
This commit is contained in:
parent
85daa266bc
commit
fa0ac48cce
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user