Repository navigation
feat(firefox): roll to r1564 - #43494
Conversation
Test results for "MCP"5154 passed, 614 skipped Merge workflow run. |
Test results for "tests 1"1 failed 1 flaky23578 passed, 712 skipped Merge workflow run. |
|
Hi, I'm the Playwright bot and I took a first look at the CI failures. 🟢 The failure is a confirmed pre-existing flakeThe Chromium screencast failure is not likely caused by this Firefox roll. DetailsOverall assessment This PR changes the Firefox revision and Firefox-specific patches. It does not change the Chromium screencast or trace paths exercised by the failing test. Pre-existing flake / infra
Triaged by the Playwright bot - agent run |
Test results for "tests 2"10 failed 31 flaky126737 passed, 4061 skipped Merge workflow run. |
|
Hi, I'm the Playwright bot and I took a first look at the CI failures. 🟢 All failures are pre-existing and not caused by this PRThe same failures occur on the base SHA or on unrelated #43491. This Firefox roll is clear. DetailsOverall assessment This PR updates the Firefox revision and Firefox-specific patches. The Chromium proxy, cross-browser clock, and Android page-error failures all have matching failures outside this PR. Pre-existing failure / infra
Triaged by the Playwright bot - agent run |
…ame whose judgement never completes (#5530) #5803 moved the suite to Playwright 1.65.0, whose Firefox build no longer loses frames. This raises the dev group's Playwright floor to 1.65, since on 1.64.1 the frames Playwright loses would now fail their test (measured below). The `[project]` dependency serves Chrome only and stays at 1.64. `judge_watches` asked each Firefox child frame `wait_for_function("() => true")` with the 120 s suite deadline, and read the timeout as "Playwright lost this frame, nothing to judge". Each lost frame cost the full deadline. The feature gallery's Firefox console test took 1,614 s on [daily run 42014155473](https://github.com/max-sixty/leaf/actions/runs/42014155473), 1.1x under the per-test limit. This PR removes that probe (`_reachable`). Every frame is judged the same way in every engine, through one bounded `wait_for_function` that starts the drain on its first reading and returns when the drain completes. When that deadline expires, the test fails with a note naming the frame, rather than skipping the frame. No wait left in `judge_watches` decides a result by expiring (`tests/AGENTS.md`, "Functional results do not depend on execution speed"; #5522). ## Why frames were lost The frames are lost by Playwright's Firefox (Juggler), not by Leaf. Juggler learns that a frame's navigation has started from an observer whose subject is the frame's docShell, passed as a bare `nsISupports`. Its `FrameTree` read `docShell.browsingContext` without `QueryInterface(Ci.nsIDocShell)`. In one run, the lookup found the frame for the early navigations and returned nothing for the later ones, and those navigation starts were dropped. When the new document's element is inserted, Juggler finds no pending navigation, so it never commits the document, never creates its execution context and never runs init scripts there. Firefox itself loads the document normally, and the sample becomes ready. Why the unqueried read works at first is inferred, not observed: XPConnect reuses an earlier reflector of the docShell that was queried for `nsIDocShell`, until garbage collection frees it. Pages of window samples trigger the loss: 18 `window` samples lost 2 to 11 frames per run, and 12 plain samples lost none. Upstream fixed it in Firefox r1564 ([microsoft/playwright#43494](microsoft/playwright#43494), `const docShell = subject.QueryInterface(Ci.nsIDocShell)`). Playwright 1.65.0 ships r1572. Evidence: - A copy of Juggler patched to log its observer printed `frame=null` without the `QueryInterface`, and the right frame with it, for every lost navigation. A second observer on the same topic fired for all 18 loads. - A plain Playwright page with 12 sandboxed iframes navigated in batches of three lost none. ## Before and after The feature-gallery Firefox console test on this Mac, `-n 0 -p no:randomly`: | Harness | Firefox | Time | Child frames | |---|---|---|---| | main | r1555 (Playwright 1.64.1) | 1,213 s | 10 of 18 timed out at 120 s each; 8 answered in 0.01 s | | main | r1572 (Playwright 1.65.0) | 14 s | 18 answered | | this PR | r1572 | 17 s | all judged; slowest 0.03 s | | this PR on Playwright 1.65.0 | r1572 | 22 s | passes | | this PR | r1555 | fails after 136 s | `Timeout 120000ms exceeded`, "judging the watches in about:blank" | The r1572 rows drive the downloaded r1572 build from this tree's Playwright 1.64.1 client through `executable_path`. ## Control `test_words_in_a_firefox_frame_its_page_hides_fail_when_judged` types words into an opaque Firefox frame, as a sample's is, and then the page hides the frame. A hidden frame paints nothing, so only the judgement reports the loss. With Firefox child frames skipped in `_judge_frame_watches`, the test fails with no finding. `test_health_judgement_releases_a_frame_removed_inside_its_evaluation` now watches the one `wait_for_function` call, since judgement no longer calls `evaluate`. The comment in `input_work_watch.js` no longer cites lost Firefox frames as the reason a port message carries its source as an extra field. A worker, which runs no init script, still reads past that field. ## Checks - `tests/journeys/test_render_gate.py -k firefox_console_warnings`: all 48 corpus pages pass on r1572 (44.75 s, `-n 3`). - `tests/browser/test_render_shift_watch.py -k "frame or deadline"` with `test_a_wait_takes_the_suites_deadline`: 20 passed. - `tests/browser/test_render_words_watch.py -k frame`: 4 passed. - `dev/tests/browser/test_browser_diagnostics.py`: 7 passed. - `pre-commit run --files` on the changed files. - On Playwright 1.65.0's own client, after merging main: the feature-gallery Firefox console test (22 s, `-n 0`), the hidden-frame control and `-k health_judgement` pass. Not verified locally: Linux, and the Firefox browser tests outside the corpus console sweep and the control; the pull request's `test` job runs them. > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Browser build: https://github.com/microsoft/playwright-browsers/commit/15f107545726278768ba2cdd133976db89d43477. Build has full platform coverage - check that all tests pass there.