Skip to content
Merged
Show file tree
Hide file tree
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: 1 addition & 8 deletions packages/playwright-core/src/server/firefox/ffPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,18 +239,11 @@ export class FFPage implements PageDelegate {
}

_onNavigationCommitted(params: Protocol.Page.navigationCommittedPayload) {
if (!params.navigationId) {
// Firefox replays the current navigation without a navigationId during a process swap (e.g. when restoring a persistent profile).
// Treat these as same-document URL updates so they don't interrupt any in-flight new-document navigation in Frame.gotoImpl.
this._page.frameManager.frameCommittedSameDocumentNavigation(params.frameId, params.url);
return;
}

for (const [workerId, worker] of this._workers) {
if (worker.frameId === params.frameId)
this._onWorkerDestroyed({ workerId });
}
this._page.frameManager.frameCommittedNewDocumentNavigation(params.frameId, params.url, params.name || '', params.navigationId, false);
this._page.frameManager.frameCommittedNewDocumentNavigation(params.frameId, params.url, params.name || '', params.navigationId || '', false);
}

_onSameDocumentNavigation(params: Protocol.Page.sameDocumentNavigationPayload) {
Expand Down
5 changes: 4 additions & 1 deletion tests/library/defaultbrowsercontext-2.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,10 @@ it('should create userDataDir if it does not exist', async ({ createUserDataDir,

it('should goto about:blank on relaunched persistent context', {
annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/41216' },
}, async ({ browserType, createUserDataDir }) => {
}, async ({ browserType, createUserDataDir, browserName }) => {
it.fixme(browserName === 'firefox');
it.slow();

const userDataDir = await createUserDataDir();

const context1 = await browserType.launchPersistentContext(userDataDir);
Expand Down
Loading