Fix the settings page trying to create a popup window (#1341)
This commit is contained in:
parent
b0b201fc6a
commit
6218b0d8f7
@ -73,6 +73,7 @@ class PopupPreviewFrame {
|
|||||||
parentPopupId: null,
|
parentPopupId: null,
|
||||||
parentFrameId: null,
|
parentFrameId: null,
|
||||||
useProxyPopup: false,
|
useProxyPopup: false,
|
||||||
|
canUseWindowPopup: false,
|
||||||
pageType: 'web',
|
pageType: 'web',
|
||||||
allowRootFramePopupProxy: false,
|
allowRootFramePopupProxy: false,
|
||||||
childrenSupported: false,
|
childrenSupported: false,
|
||||||
|
@ -32,6 +32,7 @@ class Frontend {
|
|||||||
parentPopupId,
|
parentPopupId,
|
||||||
parentFrameId,
|
parentFrameId,
|
||||||
useProxyPopup,
|
useProxyPopup,
|
||||||
|
canUseWindowPopup=true,
|
||||||
allowRootFramePopupProxy,
|
allowRootFramePopupProxy,
|
||||||
childrenSupported=true,
|
childrenSupported=true,
|
||||||
hotkeyHandler
|
hotkeyHandler
|
||||||
@ -43,6 +44,7 @@ class Frontend {
|
|||||||
this._parentPopupId = parentPopupId;
|
this._parentPopupId = parentPopupId;
|
||||||
this._parentFrameId = parentFrameId;
|
this._parentFrameId = parentFrameId;
|
||||||
this._useProxyPopup = useProxyPopup;
|
this._useProxyPopup = useProxyPopup;
|
||||||
|
this._canUseWindowPopup = canUseWindowPopup;
|
||||||
this._allowRootFramePopupProxy = allowRootFramePopupProxy;
|
this._allowRootFramePopupProxy = allowRootFramePopupProxy;
|
||||||
this._childrenSupported = childrenSupported;
|
this._childrenSupported = childrenSupported;
|
||||||
this._hotkeyHandler = hotkeyHandler;
|
this._hotkeyHandler = hotkeyHandler;
|
||||||
@ -371,7 +373,7 @@ class Frontend {
|
|||||||
const currentPopup = this._popup;
|
const currentPopup = this._popup;
|
||||||
|
|
||||||
let popupPromise;
|
let popupPromise;
|
||||||
if (usePopupWindow) {
|
if (usePopupWindow && this._canUseWindowPopup) {
|
||||||
popupPromise = this._popupCache.get('window');
|
popupPromise = this._popupCache.get('window');
|
||||||
if (typeof popupPromise === 'undefined') {
|
if (typeof popupPromise === 'undefined') {
|
||||||
popupPromise = this._getPopupWindow();
|
popupPromise = this._getPopupWindow();
|
||||||
|
Loading…
Reference in New Issue
Block a user