Skip to content

feat(webkit): roll to r2400 - #44344

Open
microsoft-playwright-automation[bot] wants to merge 2 commits into
mainfrom
roll-into-pw-webkit/2400
Open

microsoft-playwright-automation[bot] wants to merge 2 commits into
mainfrom
roll-into-pw-webkit/2400

Conversation

@microsoft-playwright-automation

Copy link
Copy Markdown
Contributor

Browser build: https://github.com/microsoft/playwright-browsers/commit/3b7cf16d00ccf3047007620cadfb286dd36a3daf. Build has full platform coverage - check that all tests pass there.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@microsoft-playwright-automation

Copy link
Copy Markdown
Contributor Author

🔴 The WebKit roll causes 12 failures from outdated cookie expectations

Hi, I'm the Playwright bot. I checked the failures: Windows WebKit now preserves SameSite values that the tests still expect to lose. The Android failure already occurs on main.

Evidence and suggested fixes

Covers tests 2, run 45327854941, head 49280a2ee7f53dc4227788ae3a42df9e8534d7c3, and its merged report. The MCP and tests 1 reports have no failed tests.

Caused by this PR

All 12 failures are in the Windows WebKit job. The PR changes WebKit from r2399 to r2400; its other changes are generated protocol declarations. The same Windows job succeeded on main with r2399, commit d70f422f491cfb875dd5dc05f01c61207e7382b4.

Tests (webkit-library) Evidence
library/browsercontext-add-cookies.spec.ts:68 CO-022, :312 CO-033, :387 CO-038 Explicit Lax/Strict values are returned correctly; Windows-only expectations still require None.
library/browsercontext-cookies.spec.ts:118 CO-006, :131 CO-007 Both report “Expected to fail, but passed” on every attempt. Their Windows WebKit it.fail(...) marks are obsolete.
library/browsercontext-cookies.spec.ts:177 CO-009, :216 CO-010, :281 CO-013 Cookies explicitly set to Lax now return Lax, not the Windows-only expected None.
library/browsercontext-fetch.spec.ts:509 FE-116, :1454 FE-170, :1499 FE-173 Redirect cookies and request-set cookies preserve Lax; the tests still force None on Windows WebKit.
library/defaultbrowsercontext-1.spec.ts:48 DC-002 The persistent context returns the explicitly set Lax value instead of the old expected None.

These failures show improved SameSite support, not evidence of broken cookie handling. Remove the two Windows expected-failure marks and the Windows-only None substitutions for explicitly set SameSite values in these tests. Keep the separate platform rules for unset SameSite and insecure SameSite=None cookies.

Pre-existing flake / infra

  • android-page › page/workers.spec.ts:441 › WO-032 should run a shared worker after redirected dedicated workers — a pre-existing test coverage bug, not a flake. It fails with ReferenceError: SharedWorker is not defined here and in the main Android job on d70f422f491cfb875dd5dc05f01c61207e7382b4, before this roll. The test uses SharedWorker without an Android skip. Add it.skip(isAndroid) and include isAndroid in its fixtures.

Only final failures were classified; retry-rescued tests were excluded. This was a read-only check of code and CI logs, with no local browser run. The linked browser-build commit was inaccessible, so the upstream implementation change was not verified.

Checked the failures on Linux by the Playwright bot - agent run

@dgozman

Copy link
Copy Markdown
Collaborator

Agent, this needs some cookie tests rebasing. The failures are expected with the new roll, so let's update tests to reflect the new behavior.

@microsoft-playwright-automation

This comment has been minimized.

@microsoft-playwright-automation

Copy link
Copy Markdown
Contributor Author

Updated the cookie tests to expect the Lax and Strict values preserved by Windows WebKit r2400, removed the two obsolete expected-failure marks, and updated the matching MCP expectation. The separate rules for unset SameSite and insecure SameSite=None cookies are unchanged. The PR is rebased on current main (d70f422f491cfb875dd5dc05f01c61207e7382b4).

On Windows, the build and all lint checks passed; 791 library tests and 51 MCP cookie tests passed across Chromium, Firefox and WebKit, with 13 skips. All 12 updated library tests fail with r2399 and pass with r2400. An earlier unnamed-cookie failure also reproduced with r2399; the final run passed without retries. Linux and macOS were not tested.

Run

@microsoft-playwright-automation microsoft-playwright-automation Bot added agent-review-done The Playwright bot run ended and removed agent-review labels Nov 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Test results for "MCP"

5250 passed, 644 skipped


Merge workflow run.

@github-actions

Copy link
Copy Markdown
Contributor

Test results for "tests 1"

23677 passed, 708 skipped


Merge workflow run.

@github-actions

Copy link
Copy Markdown
Contributor

Test results for "tests 2"

1 failed
❌ [android-page] › page/workers.spec.ts:441 › WO-032 should run a shared worker after redirected dedicated workers

9 flaky ⚠️ [chromium-library] › library/beforeunload.spec.ts:20 › BU-001 should close browser with beforeunload page `@chromium-macos-15-large`
⚠️ [chromium-library] › library/chromium/connect-over-cdp.spec.ts:150 › CD-004 should connect when an existing page has been discarded `@chromium-macos-15-xlarge`
⚠️ [chromium-library] › library/beforeunload.spec.ts:130 › BU-009 should support dismissing the dialog multiple times `@realtime-time-library-chromium-linux`
⚠️ [firefox-library] › library/browsertype-launch-server.spec.ts:66 › launch server › BT-028 should default to random wsPath `@tracing-firefox`
⚠️ [firefox-page] › page/page-filechooser.spec.ts:305 › FC-020 should be able to reset selected files with empty file list `@tracing-firefox`
⚠️ [firefox-library] › library/debug-controller.spec.ts:348 › DB-020 should highlight inside iframe `@firefox-macos-15-large`
⚠️ [firefox-library] › library/har.spec.ts:117 › HA-006 should populate entry startedDateTime from the browser `@firefox-playwright-x64-server2025-64-core`
⚠️ [webkit-library] › library/heap.spec.ts:304 › LE-014 cycle handles `@webkit-playwright-x64-server2025-64-core`
⚠️ [webkit-library] › library/screencast.spec.ts:58 › SC-002 applies backpressure while async onFrame callback is pending `@webkit-macos-15-xlarge`

127299 passed, 4112 skipped


Merge workflow run.

@microsoft-playwright-automation

Copy link
Copy Markdown
Contributor Author

🟢 The remaining failure predates this PR

The WebKit cookie failures are resolved. The only remaining failure is an unchanged Android test that also fails on main; it is not caused by this roll.

Evidence and suggested fix

Covers tests 2, run 45447646931, head 15df583b082a6ac1ee9c97832f02388f419c5ac3, and its merged report. All 79 current-head checks are complete; only the Android job failed. The Windows, Linux and macOS WebKit jobs passed.

Pre-existing failure

[android-page] › page/workers.spec.ts:441 › WO-032 should run a shared worker after redirected dedicated workers fails with ReferenceError: SharedWorker is not defined, on both attempts in the PR job. The main job has the same test, error and failed retry on d70f422f491cfb875dd5dc05f01c61207e7382b4, with WebKit r2399.

This is a test coverage bug, not a flake or infrastructure failure. The test uses SharedWorker without an Android skip, including an unconditional instanceof SharedWorker check during the dedicated-worker cases. Add isAndroid to its fixtures and it.skip(isAndroid) at the start. The PR changes only WebKit and cookie expectations; this worker file is identical to pre-roll main.

Only final failures were classified; the nine retry-rescued tests were excluded. This was a read-only check of CI logs and code, with no local browser run. The test-history database could not be refreshed because GITHUB_TOKEN is unavailable; the linked main logs provide the direct comparison.

Investigation run

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-review-done The Playwright bot run ended CQ1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant