Bug 247149

Summary: WebSocket: Allow relative URLs and http(s) scheme
Product: WebKit Reporter: me
Component: DOMAssignee: Anne van Kesteren <annevk>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, m.kurz+webkitbugs, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: All   
OS: All   

Attachments
Radar WebKit Bug Importer
Comment 1 2022-11-03 13:53:19 PDT
Alex Christensen
Comment 2 2022-11-04 14:05:47 PDT
This is significantly different than Firefox's approach. I think Anne's comment "If we accept HTTP(S) schemes though we probably first want to normalize them to ws/wss, for the sake of consistency with the existing url getter" is interesting and should be considered. Tests need updating.
me
Comment 3 2022-11-04 14:24:19 PDT
(In reply to Alex Christensen from comment #2) > This is significantly different than Firefox's approach. > > I think Anne's comment "If we accept HTTP(S) schemes though we probably > first want to normalize them to ws/wss, for the sake of consistency with the > existing url getter" is interesting and should be considered. > > Tests need updating. I tested both against the same site and they behaved as expected, although slight deviations may exist? I have a pr against WPT which should help with ensuring things are working as expected. I don't know the exact processes but once that is merged I'll need help rolling wpt so this patch can be tested properly. I thought it made more sense for the url getter to reflect the url that was passed in so it is not normalized. Do you feel strongly that it should be?
Anne van Kesteren
Comment 4 2023-05-11 03:07:30 PDT
EWS
Comment 5 2023-05-11 08:16:05 PDT
Committed 263968@main (b5e7897d6636): <https://commits.webkit.org/263968@main> Reviewed commits have been landed. Closing PR #13751 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.