<?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>253043</bug_id>
          
          <creation_ts>2023-02-27 16:53:12 -0800</creation_ts>
          <short_desc>HTTP/2 WPT layout tests actually run over HTTP/1.1</short_desc>
          <delta_ts>2023-03-09 22:13:09 -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>Tools / Tests</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=204469</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>
          
          <blocked>253533</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Ben Nham">nham</reporter>
          <assigned_to name="Ben Nham">nham</assigned_to>
          <cc>ap</cc>
    
    <cc>gsnedders</cc>
    
    <cc>jbedard</cc>
    
    <cc>nham</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1937238</commentid>
    <comment_count>0</comment_count>
    <who name="Ben Nham">nham</who>
    <bug_when>2023-02-27 16:53:12 -0800</bug_when>
    <thetext>There are a number of WPT tests that use &quot;h2&quot; in the filename to designate that they should be run over HTTP/2: https://web-platform-tests.org/writing-tests/server-features.html#tests-requiring-http-2-0

However, when I add logging to various h2 layout tests, I see that they&apos;re actually directed towards the plain-text HTTP/1.1 WPT server. For instance, `console.log(window.location)` in `imported/w3c/web-platform-tests/xhr/status.h2.window.html` produces this URL:

  http://localhost:8800/xhr/status.h2.window.html

It should actually produce this URL, since the h2 server runs on port 9000 by default:

  https://localhost:9000/xhr/status.h2.window.html

It looks like the issue might be that the `wpt_test_path_to_uri` method has to be updated to parse `h2` out of the test filename and direct the request to the HTTP/2 as necessary.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1937239</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-02-27 16:55:09 -0800</bug_when>
    <thetext>&lt;rdar://problem/106003603&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1937421</commentid>
    <comment_count>2</comment_count>
    <who name="Ben Nham">nham</who>
    <bug_when>2023-02-28 09:30:54 -0800</bug_when>
    <thetext>I was able to get the particular h2-only test I cared about to run over h2 by editing `wpt_test_path_to_uri` to run h2 tests on port 9000.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1937671</commentid>
    <comment_count>3</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2023-03-01 00:15:02 -0800</bug_when>
    <thetext>(In reply to Ben Nham from comment #2)
&gt; I was able to get the particular h2-only test I cared about to run over h2
&gt; by editing `wpt_test_path_to_uri` to run h2 tests on port 9000.

This is probably a reasonable fix for now, if you want to submit a PR for it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1938336</commentid>
    <comment_count>4</comment_count>
    <who name="Ben Nham">nham</who>
    <bug_when>2023-03-02 16:10:29 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/10974</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1940309</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-03-09 22:13:07 -0800</bug_when>
    <thetext>Committed 261489@main (7fb8f6320080): &lt;https://commits.webkit.org/261489@main&gt;

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

    </bug>

</bugzilla>