| Summary: | WebSocket requests should include Sec-Fetch-Mode=websocket for FetchMetadata | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Patrick Griffis <pgriffis> | ||||
| Component: | WebCore Misc. | Assignee: | youenn fablet <youennf> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | annevk, webkit-bug-importer | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | WebKit Nightly Build | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=204744 | ||||||
| Bug Depends on: | 247696 | ||||||
| Bug Blocks: | 246508 | ||||||
| Attachments: |
|
||||||
|
Description
Patrick Griffis
2022-03-07 13:00:33 PST
Created attachment 456044 [details]
Test case
Attached is a test case for this, however running it Chromium does not attach any metadata to the websocket handshake request, the same as our current behavior. Firefox *does* attach metadata for this so there is an inconsistency there. Per Fetch they should be included. The handshake goes through the normal fetch algorithm after all and there's no special casing for setting these request headers. Pull request: https://github.com/WebKit/WebKit/pull/6296 Committed 256527@main (f05061a1e830): <https://commits.webkit.org/256527@main> Reviewed commits have been landed. Closing PR #6296 and removing active labels. |