<?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>237550</bug_id>
          
          <creation_ts>2022-03-07 13:00:33 -0800</creation_ts>
          <short_desc>WebSocket requests should include Sec-Fetch-Mode=websocket for FetchMetadata</short_desc>
          <delta_ts>2022-11-10 04:25:45 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=204744</see_also>
          <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>
          <dependson>247696</dependson>
          <blocked>246508</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Patrick Griffis">pgriffis</reporter>
          <assigned_to name="youenn fablet">youennf</assigned_to>
          <cc>annevk</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1848912</commentid>
    <comment_count>0</comment_count>
    <who name="Patrick Griffis">pgriffis</who>
    <bug_when>2022-03-07 13:00:33 -0800</bug_when>
    <thetext>As part of the FetchMetadata spec they don&apos;t use the normal request modes they have a distinct one.

I plan on working on this soon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1850170</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-03-10 10:22:16 -0800</bug_when>
    <thetext>&lt;rdar://problem/90106854&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1856094</commentid>
    <comment_count>2</comment_count>
      <attachid>456044</attachid>
    <who name="Patrick Griffis">pgriffis</who>
    <bug_when>2022-03-29 11:03:08 -0700</bug_when>
    <thetext>Created attachment 456044
Test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1856095</commentid>
    <comment_count>3</comment_count>
    <who name="Patrick Griffis">pgriffis</who>
    <bug_when>2022-03-29 11:04:16 -0700</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1905558</commentid>
    <comment_count>4</comment_count>
    <who name="Anne van Kesteren">annevk</who>
    <bug_when>2022-10-14 01:24:27 -0700</bug_when>
    <thetext>Per Fetch they should be included. The handshake goes through the normal fetch algorithm after all and there&apos;s no special casing for setting these request headers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1911228</commentid>
    <comment_count>5</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2022-11-09 03:37:29 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/6296</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1911504</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-11-10 04:25:42 -0800</bug_when>
    <thetext>Committed 256527@main (f05061a1e830): &lt;https://commits.webkit.org/256527@main&gt;

Reviewed commits have been landed. Closing PR #6296 and removing active labels.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>456044</attachid>
            <date>2022-03-29 11:03:08 -0700</date>
            <delta_ts>2022-03-29 12:30:17 -0700</delta_ts>
            <desc>Test case</desc>
            <filename>bug-237550-20220329130307.patch</filename>
            <type>text/plain</type>
            <size>1329</size>
            <attacher name="Patrick Griffis">pgriffis</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjkxNjE3CmRpZmYgLS1naXQgYS9MYXlvdXRUZXN0cy9odHRw
L3dwdC9mZXRjaC9mZXRjaC1tZXRhZGF0YS13ZWJzb2NrZXQuaHRtbCBiL0xheW91dFRlc3RzL2h0
dHAvd3B0L2ZldGNoL2ZldGNoLW1ldGFkYXRhLXdlYnNvY2tldC5odG1sCm5ldyBmaWxlIG1vZGUg
MTAwNjQ0CmluZGV4IDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAuLjJk
NDM3NmQwZjg5ZmIzNzg5ZDE2ODBhNTllMDcyZGVlYWVjN2MwOWYKLS0tIC9kZXYvbnVsbAorKysg
Yi9MYXlvdXRUZXN0cy9odHRwL3dwdC9mZXRjaC9mZXRjaC1tZXRhZGF0YS13ZWJzb2NrZXQuaHRt
bApAQCAtMCwwICsxLDI3IEBACis8IURPQ1RZUEUgaHRtbD4KKworPGxpbmsgcmVsPSJhdXRob3Ii
IGhyZWY9Im10cnpvc0Bnb29nbGUuY29tIiB0aXRsZT0iTWFjaWVrIFRyem9zIj4KKzxzY3JpcHQg
c3JjPS9yZXNvdXJjZXMvdGVzdGhhcm5lc3MuanM+PC9zY3JpcHQ+Cis8c2NyaXB0IHNyYz0vcmVz
b3VyY2VzL3Rlc3RoYXJuZXNzcmVwb3J0LmpzPjwvc2NyaXB0PgorPHNjcmlwdCBzcmM9L2ZldGNo
L21ldGFkYXRhL3Jlc291cmNlcy9oZWxwZXIuanM+PC9zY3JpcHQ+Cis8c2NyaXB0IHNyYz0vY29t
bW9uL3V0aWxzLmpzPjwvc2NyaXB0PgorPGJvZHk+PC9ib2R5PgorPHNjcmlwdD4KKyAgbGV0IG5v
bmNlID0gdG9rZW4oKTsKKworICBwcm9taXNlX3Rlc3QodCA9PiB7CisgICAgcmV0dXJuIG5ldyBQ
cm9taXNlKChyZXNvbHZlLCByZWplY3QpID0+IHsKKyAgICAgIGxldCBrZXkgPSAid2Vic29ja2V0
LSIgKyBub25jZTsKKworICAgICAgbGV0IHdzID0gbmV3IFdlYlNvY2tldCgid3M6Ly9sb2NhbGhv
c3Q6ODgwMC9mZXRjaC9tZXRhZGF0YS9yZXNvdXJjZXMvcmVjb3JkLWhlYWRlci5weT9maWxlPSIg
KyBrZXkpOworICAgICAgbGV0IGV4cGVjdGVkID0geyJzaXRlIjogInNhbWUtb3JpZ2luIiwgInVz
ZXIiOiAiIiwgIm1vZGUiOiAid2Vic29ja2V0IiwgImRlc3QiOiAid2Vic29ja2V0In07CisKKyAg
ICAgIC8vIFRoaXMgaXMgZXhwZWN0ZWQgdG8gZmFpbCBidXQgd2lsbCBzdGlsbCByZWNvcmQgdGhl
IGhlYWRlcnMgZnJvbSB0aGUgaGFuZHNoYWtlLgorICAgICAgd3MuYWRkRXZlbnRMaXN0ZW5lcigi
ZXJyb3IiLCBlID0+IHsKKyAgICAgICAgdmFsaWRhdGVfZXhwZWN0YXRpb25zKGtleSwgZXhwZWN0
ZWQpCisgICAgICAgICAgLnRoZW4oXyA9PiByZXNvbHZlKCkpCisgICAgICAgICAgLmNhdGNoKGUg
PT4gcmVqZWN0KGUpKTsKKyAgICAgIH0pOworICAgIH0pCisgIH0sICJXZWJzb2NrZXQgSGFuZHNo
YWtlIik7Cis8L3NjcmlwdD4K
</data>
<flag name="commit-queue"
          id="484229"
          type_id="3"
          status="-"
          setter="ews-feeder"
    />
          </attachment>
      

    </bug>

</bugzilla>