Repository navigation
test(e2e): disable Firefox COOP process swap in starter Firefox projects - #8
Merged
Merged
Conversation
Playwright's Firefox driver (Juggler) can lose a protocol message when a navigation response carries Cross-Origin-Opener-Policy: same-origin and Firefox replaces the browsing context, so page.goto or the following evaluate hangs intermittently (microsoft/playwright#42731, fixed in Firefox r1551 shipped with Playwright 1.64.0, not yet installable under the 3-day minimumReleaseAge). Temporary workaround in the starter and bun-app Firefox projects: launch Firefox with browser.tabs.remote.useCrossOriginOpenerPolicy=false. The COOP header served by web-platform is unchanged; header assertions still run. Remove once @playwright/test >= 1.64.0. Local evidence (macOS arm64, --repeat-each=30, Firefox project): starter 1/150 failed before (page.goto timeout), 0/150 after; bun-app 1/90 failed before (page.goto timeout), 0/90 after. Claude-Session: https://claude.ai/code/session_01YGo2fqxeSVRfXjQErze6hP Signed-off-by: Constantin Jais <74049135+constantin-jais@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Temporary workaround for microsoft/playwright#42731 in the two starter Firefox Playwright projects (
packages/starter/starter,packages/starter/bun-app): launch Firefox withbrowser.tabs.remote.useCrossOriginOpenerPolicy=false, with aTODO(playwright-1.64)marker.Why
Juggler (Playwright's Firefox driver) can lose a protocol message when a navigation response carries
Cross-Origin-Opener-Policy: same-originand Firefox replaces the browsing context;page.gotoor the nextevaluatethen hangs until the test timeout. Fixed upstream in Firefox r1551, shipped with Playwright 1.64.0, whichminimumReleaseAge(3 days) blocks until 2026-10-10T20:42Z. The bump to 1.64.0 follows in a separate change that also removes this pref.Scope
web-platformstill servesCross-Origin-Opener-Policy: same-origin; no header changes.packages/uiFirefox project is not changed: its e2e loadsreference.htmloverfile://, so no COOP response is involved.Evidence (local, macOS arm64, Firefox project,
--repeat-each=30)page.gototimeout)page.gototimeout)The bun-app
reference.e2e.tsCSP header assertion andweb-platformunit tests (COOP/CSP) pass.https://claude.ai/code/session_01YGo2fqxeSVRfXjQErze6hP