Handle error if _waitForFrontendReady fails when creating a popup proxy (#760)
This commit is contained in:
parent
d8f488e28c
commit
4cd1676ddc
@ -357,7 +357,12 @@ class Frontend {
|
||||
|
||||
async _getIframeProxyPopup() {
|
||||
const targetFrameId = 0; // Root frameId
|
||||
try {
|
||||
await this._waitForFrontendReady(targetFrameId);
|
||||
} catch (e) {
|
||||
// Root frame not available
|
||||
return await this._getDefaultPopup();
|
||||
}
|
||||
|
||||
const {popupId} = await api.crossFrame.invoke(targetFrameId, 'getPopupInfo');
|
||||
if (popupId === null) {
|
||||
|
Loading…
Reference in New Issue
Block a user