<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>247149</bug_id>
          
          <creation_ts>2022-10-27 13:52:43 -0700</creation_ts>
          <short_desc>WebSocket: Allow relative URLs and http(s) scheme</short_desc>
          <delta_ts>2023-08-14 06:54:18 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>Other</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>me</reporter>
          <assigned_to name="Anne van Kesteren">annevk</assigned_to>
          <cc>achristensen</cc>
    
    <cc>m.kurz+webkitbugs</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1908823</commentid>
    <comment_count>0</comment_count>
    <who name="">me</who>
    <bug_when>2022-10-27 13:52:43 -0700</bug_when>
    <thetext>See: https://github.com/whatwg/websockets/pull/37 &amp; https://github.com/whatwg/websockets/issues/20

WIP patch: https://github.com/WebKit/WebKit/pull/5875</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1910173</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-11-03 13:53:19 -0700</bug_when>
    <thetext>&lt;rdar://problem/101929623&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1910424</commentid>
    <comment_count>2</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2022-11-04 14:05:47 -0700</bug_when>
    <thetext>This is significantly different than Firefox&apos;s approach.

I think Anne&apos;s comment &quot;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&quot; is interesting and should be considered.

Tests need updating.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1910430</commentid>
    <comment_count>3</comment_count>
    <who name="">me</who>
    <bug_when>2022-11-04 14:24:19 -0700</bug_when>
    <thetext>(In reply to Alex Christensen from comment #2)
&gt; This is significantly different than Firefox&apos;s approach.
&gt; 
&gt; I think Anne&apos;s comment &quot;If we accept HTTP(S) schemes though we probably
&gt; first want to normalize them to ws/wss, for the sake of consistency with the
&gt; existing url getter&quot; is interesting and should be considered.
&gt; 
&gt; 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&apos;t know the exact processes but once that is merged I&apos;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?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1954658</commentid>
    <comment_count>4</comment_count>
    <who name="Anne van Kesteren">annevk</who>
    <bug_when>2023-05-11 03:07:30 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/13751</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1954708</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-05-11 08:16:05 -0700</bug_when>
    <thetext>Committed 263968@main (b5e7897d6636): &lt;https://commits.webkit.org/263968@main&gt;

Reviewed commits have been landed. Closing PR #13751 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>