RESOLVED FIXED 237550
WebSocket requests should include Sec-Fetch-Mode=websocket for FetchMetadata
https://bugs.webkit.org/show_bug.cgi?id=237550
Summary WebSocket requests should include Sec-Fetch-Mode=websocket for FetchMetadata
Patrick Griffis
Reported 2022-03-07 13:00:33 PST
As part of the FetchMetadata spec they don't use the normal request modes they have a distinct one. I plan on working on this soon.
Attachments
Test case (1.30 KB, patch)
2022-03-29 11:03 PDT, Patrick Griffis
ews-feeder: commit-queue-
Radar WebKit Bug Importer
Comment 1 2022-03-10 10:22:16 PST
Patrick Griffis
Comment 2 2022-03-29 11:03:08 PDT
Created attachment 456044 [details] Test case
Patrick Griffis
Comment 3 2022-03-29 11:04:16 PDT
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.
Anne van Kesteren
Comment 4 2022-10-14 01:24:27 PDT
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.
youenn fablet
Comment 5 2022-11-09 03:37:29 PST
EWS
Comment 6 2022-11-10 04:25:42 PST
Committed 256527@main (f05061a1e830): <https://commits.webkit.org/256527@main> Reviewed commits have been landed. Closing PR #6296 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.