Skip to content

feat(firefox): roll to r1564 - #43494

Merged
Dmitry Gozman (dgozman) merged 1 commit into
mainfrom
roll-into-pw-firefox/1564
Oct 19, 2026
Merged

Dmitry Gozman (dgozman) merged 1 commit into
mainfrom
roll-into-pw-firefox/1564

Conversation

@microsoft-playwright-automation

Copy link
Copy Markdown
Contributor

@github-actions

Copy link
Copy Markdown
Contributor

Test results for "MCP"

5154 passed, 614 skipped


Merge workflow run.

@github-actions

Copy link
Copy Markdown
Contributor

Test results for "tests 1"

1 failed
❌ [chromium-library] › library/video.spec.ts:762 › screencast › VI-030 should work with video+trace @chromium-playwright-x64-ubuntu24-64-core-node22

1 flaky ⚠️ [chromium-library] › library/chromium/chromium.spec.ts:281 › CR-015 should report intercepted service worker requests in HAR `@chromium-playwright-x64-ubuntu24-64-core-node22`

23578 passed, 712 skipped


Merge workflow run.

@github-actions

Copy link
Copy Markdown
Contributor

Hi, I'm the Playwright bot and I took a first look at the CI failures.

🟢 The failure is a confirmed pre-existing flake

The Chromium screencast failure is not likely caused by this Firefox roll.

Details

Overall 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

  • [chromium-library] › library/video.spec.ts:762 › screencast › VI-030 should work with video+trace — the test failed because the trace contained no screencast-frame, producing TypeError: Cannot read properties of undefined (reading 'file'). On the same chromium-playwright-x64-ubuntu24-64-core-node22 bot, 5 of 8 recent runs unrelated to this PR needed retries for this exact test with the same error, including #43491 and #43488. It also failed once and passed on retry on another Chromium shard in this PR's run.

Triaged by the Playwright bot - agent run

@github-actions

Copy link
Copy Markdown
Contributor

Test results for "tests 2"

10 failed
❌ [chromium-library] › library/proxy.spec.ts:144 › PR-007 should authenticate @msedge-dev-windows-latest
❌ [chromium-library] › library/proxy.spec.ts:144 › PR-007 should authenticate @chrome-ubuntu-22.04
❌ [chromium-library] › library/proxy.spec.ts:144 › PR-007 should authenticate @msedge-windows-latest
❌ [chromium-library] › library/page-clock.spec.ts:147 › runFor › CK-011 passes 2 hours, 34 minutes and 10 seconds @chromium-macos-15-large
❌ [chromium-library] › library/proxy.spec.ts:144 › PR-007 should authenticate @chrome-windows-latest
❌ [chromium-library] › library/proxy.spec.ts:144 › PR-007 should authenticate @chrome-beta-ubuntu-22.04
❌ [chromium-library] › library/proxy.spec.ts:144 › PR-007 should authenticate @chrome-macos-latest
❌ [firefox-library] › library/page-clock.spec.ts:147 › runFor › CK-011 passes 2 hours, 34 minutes and 10 seconds @firefox-macos-15-large
❌ [webkit-library] › library/page-clock.spec.ts:147 › runFor › CK-011 passes 2 hours, 34 minutes and 10 seconds @webkit-macos-15-large
❌ [android-page] › page/page-event-pageerror.spec.ts:20 › ER-001 should fire

31 flaky ⚠️ [chromium-library] › library/browsertype-connect.spec.ts:928 › run-server › socks proxy › BT-082 should proxy ipv6 localhost requests Radoslav Kirilov (@smoke) `@frozen-time-library-chromium-linux`
⚠️ [chromium-library] › library/browsercontext-user-agent.spec.ts:110 › UA-006 should work for navigator.userAgentData and sec-ch-ua headers `@msedge-dev-windows-latest`
⚠️ [chromium-library] › library/chromium/chromium.spec.ts:353 › CR-017 should produce network events, routing, and annotations for Service Worker `@chrome-ubuntu-22.04`
⚠️ [chromium-library] › library/browsercontext-user-agent.spec.ts:110 › UA-006 should work for navigator.userAgentData and sec-ch-ua headers `@msedge-windows-latest`
⚠️ [chromium-library] › library/chromium/chromium.spec.ts:159 › CR-010 serviceWorker(), and fromServiceWorker() work `@chromium-macos-15-large`
⚠️ [chromium-library] › library/chromium/chromium.spec.ts:193 › CR-011 should intercept service worker requests (main and within) `@chromium-macos-15-large`
⚠️ [chromium-library] › library/chromium/chromium.spec.ts:416 › CR-018 should produce network events, routing, and annotations for Service Worker (advanced) `@chromium-macos-15-large`
⚠️ [chromium-library] › library/chromium/css-coverage.spec.ts:112 › CV-015 should report stylesheets across navigations `@chromium-macos-15-large`
⚠️ [chromium-library] › library/chromium/chromium.spec.ts:353 › CR-017 should produce network events, routing, and annotations for Service Worker `@chromium-macos-15-xlarge`
⚠️ [chromium-library] › library/chromium/oopif.spec.ts:179 › OO-012 should take screenshot `@chromium-macos-15-xlarge`
⚠️ [chromium-library] › library/trace-viewer.spec.ts:1937 › TV-087 should not leak recorders `@chromium-macos-15-xlarge`
⚠️ [chromium-library] › library/video.spec.ts:762 › screencast › VI-030 should work with video+trace `@chromium-macos-15-xlarge`
⚠️ [chromium-library] › library/chromium/connect-over-cdp.spec.ts:427 › CD-014 should keep URL parameters when adding json/version `@chromium-ubuntu-22.04-node26`
⚠️ [chromium-library] › library/chromium/connect-over-cdp.spec.ts:439 › CD-015 should append /json/version with a slash if there isnt one `@chromium-ubuntu-22.04-node26`
⚠️ [chromium-library] › library/chromium/connect-over-cdp.spec.ts:563 › CD-021 should report an expected error when the endpoint URL JSON webSocketDebuggerUrl is undefined `@chromium-ubuntu-22.04-node26`
⚠️ [chromium-library] › library/chromium/chromium.spec.ts:281 › CR-015 should report intercepted service worker requests in HAR `@chromium-ubuntu-22.04-node24`
⚠️ [chromium-library] › library/webmcp.spec.ts:216 › WM-012 should scope tools to their frame `@chromium-ubuntu-22.04-node24`
⚠️ [chromium-library] › library/chromium/chromium.spec.ts:159 › CR-010 serviceWorker(), and fromServiceWorker() work `@chrome-beta-ubuntu-22.04`
⚠️ [chromium-library] › library/chromium/chromium.spec.ts:281 › CR-015 should report intercepted service worker requests in HAR `@chrome-beta-ubuntu-22.04`
⚠️ [chromium-library] › library/chromium/chromium.spec.ts:353 › CR-017 should produce network events, routing, and annotations for Service Worker `@chrome-beta-ubuntu-22.04`
⚠️ [chromium-library] › library/video.spec.ts:113 › screencast › VI-003 should capture static page `@chrome-macos-latest`
⚠️ [firefox-library] › library/inspector/cli-codegen-csharp.spec.ts:202 › CG-157 should not print context options method override in nunit if no options were passed `@firefox-macos-15-large`
⚠️ [firefox-library] › library/inspector/cli-codegen-csharp.spec.ts:271 › CG-162 should print a valid basic program in nunit `@firefox-macos-15-large`
⚠️ [firefox-library] › library/inspector/cli-codegen-java.spec.ts:125 › CG-149 should print a valid basic program in junit `@firefox-macos-15-large`
⚠️ [firefox-library] › library/trace-viewer.spec.ts:177 › TV-005 should open simple trace viewer `@firefox-macos-15-large`
⚠️ [firefox-library] › library/inspector/cli-codegen-python-async.spec.ts:37 › CG-129 should print the correct context options for custom settings `@firefox-windows-latest`
⚠️ [firefox-library] › library/proxy.spec.ts:303 › PR-011 should bypass proxy for 127.0.0.1 when 127.0.0.1 is in bypass list `@firefox-windows-latest`
⚠️ [firefox-library] › library/signals.spec.ts:25 › SI-001 should close the browser when the node process closes `@firefox-windows-latest`
⚠️ [firefox-library] › library/trace-viewer.spec.ts:1937 › TV-087 should not leak recorders `@firefox-macos-15-xlarge`
⚠️ [webkit-library] › library/trace-viewer.spec.ts:2009 › TV-089 canvas disabled title `@webkit-macos-15-xlarge`
⚠️ [webkit-page] › page/wheel.spec.ts:154 › MO-022 should scroll horizontally `@webkit-macos-15-xlarge`

126737 passed, 4061 skipped


Merge workflow run.

@github-actions

Copy link
Copy Markdown
Contributor

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 PR

The same failures occur on the base SHA or on unrelated #43491. This Firefox roll is clear.

Details

Overall 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

  • [chromium-library] › library/proxy.spec.ts:144 › PR-007 should authenticate — failed on all six Chrome and Edge bots with the same authentication errors in the base-SHA run (6bbe2475) and #43491's run. This PR does not change Chromium proxy authentication.
  • [chromium-library/firefox-library/webkit-library] › library/page-clock.spec.ts:147 › runFor › CK-011 passes 2 hours, 34 minutes and 10 seconds — exceeded the same two-second wall-clock limit for all three browsers in #43491's run. Chromium also failed and Firefox needed retries on the base-SHA run, so the Firefox failure is part of existing macOS timing noise rather than this roll.
  • [android-page] › page/page-event-pageerror.spec.ts:20 › ER-001 should fire — produced the same stack-format mismatch on the base-SHA run and #43491's run. This PR does not change Android.

Triaged by the Playwright bot - agent run

@dgozman
Dmitry Gozman (dgozman) merged commit 41e6a18 into main Oct 19, 2026
@dgozman
Dmitry Gozman (dgozman) deleted the roll-into-pw-firefox/1564 branch October 19, 2026 09:20
Maximilian Roos (max-sixty) added a commit to max-sixty/leaf that referenced this pull request Nov 10, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant