Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions packages/playwright-core/src/server/chromium/crPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,13 @@ class FrameSession {
if (!this._page.isStorageStatePage && hasUIWindow &&
!this._crPage._browserContext._browser.isClank() &&
!this._crPage._browserContext._options.noDefaultViewport) {
const { windowId } = await this._client.send('Browser.getWindowForTarget');
this._windowId = windowId;
try {
const { windowId } = await this._client.send('Browser.getWindowForTarget');
this._windowId = windowId;
} catch {
// Some pages in Edge, like internal UIs, are mis-classified as "page", but do
// not actually have a browser window. That's fine, we won't resize them.
}
}

if (this._isMainFrame() && hasUIWindow && !this._page.isStorageStatePage)
Expand Down
Loading