Skip to content

test(websocket): cover setExtraHTTPHeaders and locale on the handshake request - #42037

Open
dcrousso wants to merge 1 commit into
microsoft:mainfrom
dcrousso:fix-WebSocket-setExtraHTTPHeaders
Open

test(websocket): cover setExtraHTTPHeaders and locale on the handshake request#42037
dcrousso wants to merge 1 commit into
microsoft:mainfrom
dcrousso:fix-WebSocket-setExtraHTTPHeaders

Conversation

@dcrousso

@dcrousso dcrousso commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Network.setExtraHTTPHeaders and an emulated locale now reach the WebSocket handshake request, but nothing exercised either from the page or from inside a Worker

Chromium:

WebKit:

Chrome Stable and Edge Stable are both still on 150, which predates that Chromium work, so widen the existing guard to browserMajorVersion < 151 and reuse it on the new cases

Firefox drops the browsing context association when it opens the handshake channel, so the Worker cases stay it.fixme there until the bundled Firefox picks up https://phabricator.services.mozilla.com/D310690

fixes #13919
fixes #28948

…shake request

`Network.setExtraHTTPHeaders` and an emulated `locale` now reach the `WebSocket` handshake request, but nothing exercised either from the page or from inside a `Worker`

Chromium:
- <https://chromium-review.googlesource.com/c/chromium/src/+/7950740> (Network.setExtraHTTPHeaders should affect WebSocket handshake requests)
- <https://chromium-review.googlesource.com/c/chromium/src/+/8000530> (Network.setExtraHTTPHeaders should affect WebSocket requests in a Worker)

WebKit:
- <WebKit/WebKit#67097> (Web Inspector: Network.setExtraHTTPHeaders does not affect WebSocket)

Chrome Stable and Edge Stable are both still on 150, which predates that Chromium work, so widen the existing guard to `browserMajorVersion < 151` and reuse it on the new cases

Firefox drops the browsing context association when it opens the handshake channel, so the `Worker` cases stay `it.fixme` there until the bundled Firefox picks up <https://phabricator.services.mozilla.com/D310690>
@dcrousso
dcrousso requested a review from yury-s July 29, 2026 18:00
@github-actions

Copy link
Copy Markdown
Contributor

Test results for "MCP"

1 failed
❌ [firefox] › mcp/dashboard.spec.ts:108 › should activate session when show is called with -s @mcp-windows-latest-firefox

7807 passed, 1266 skipped


Merge workflow run.

@github-actions

Copy link
Copy Markdown
Contributor

🟢 CI is clear — the one failure is a pre-existing Firefox-on-Windows flake

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

The single failure — [firefox] › mcp/dashboard.spec.ts:108 › should activate session when show is called with -s on mcp-windows-latest-firefox — isn't caused by this PR. This is a test-only change to web-socket.spec.ts and browsercontext-locale.spec.ts; it doesn't touch the MCP dashboard or any code path that test exercises. And the same test has been failing on the mcp-windows-latest-firefox bot for weeks across unrelated SHAs and PRs. Green.

Details

Overall: 1 failed, 7807 passed, 1266 skipped. The one failure is a known pre-existing flake; nothing here looks caused by the PR.

Pre-existing flake / infra

Triaged by the Playwright bot - agent run

@github-actions

Copy link
Copy Markdown
Contributor

Test results for "tests 1"

5 flaky ⚠️ [chromium-library] › library/chromium/chromium.spec.ts:211 › should intercept service worker requests (main and within) `@frozen-time-library-chromium-linux`
⚠️ [chromium-library] › library/video.spec.ts:736 › screencast › should work with video+trace `@chromium-ubuntu-22.04-arm-node20`
⚠️ [chromium-library] › library/video.spec.ts:699 › screencast › should capture full viewport on hidpi `@realtime-time-library-chromium-linux`
⚠️ [chromium-library] › library/video.spec.ts:495 › screencast › should capture static page in persistent context @smoke `@chromium-ubuntu-22.04-node24`
⚠️ [chromium-library] › library/chromium/chromium.spec.ts:434 › should produce network events, routing, and annotations for Service Worker (advanced) `@chromium-ubuntu-22.04-node22`

50936 passed, 1190 skipped


Merge workflow run.

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

Labels

None yet

Projects

None yet

1 participant