<?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>267868</bug_id>
          
          <creation_ts>2024-01-22 11:02:16 -0800</creation_ts>
          <short_desc>Check curl version for HTTP/3 support</short_desc>
          <delta_ts>2025-05-27 19:09:55 -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>CMake</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</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>
          <dependson>268138</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Don Olmstead">don.olmstead</reporter>
          <assigned_to name="Don Olmstead">don.olmstead</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>kenji.shukuwa</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2006600</commentid>
    <comment_count>0</comment_count>
    <who name="Don Olmstead">don.olmstead</who>
    <bug_when>2024-01-22 11:02:16 -0800</bug_when>
    <thetext>Not experimental since 8.5.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2006605</commentid>
    <comment_count>1</comment_count>
    <who name="Don Olmstead">don.olmstead</who>
    <bug_when>2024-01-22 11:15:02 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/23056</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2007623</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-01-25 11:09:23 -0800</bug_when>
    <thetext>Committed 273520@main (561efe11068f): &lt;https://commits.webkit.org/273520@main&gt;

Reviewed commits have been landed. Closing PR #23056 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2007818</commentid>
    <comment_count>3</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2024-01-25 19:21:36 -0800</bug_when>
    <thetext>Re-opened since this is blocked by bug 268138</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2008558</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-01-29 11:03:38 -0800</bug_when>
    <thetext>&lt;rdar://problem/121868520&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2119202</commentid>
    <comment_count>5</comment_count>
    <who name="Kenji Shukuwa">kenji.shukuwa</who>
    <bug_when>2025-05-22 22:41:44 -0700</bug_when>
    <thetext>The reason why LayoutTests failed, as reported in bug 268138, was because the CURLE_RECV_ERROR(56) error was returned
when there was a certificate error . Before this patch , the CURLE_PEER_FAILED_VERIFICATION(60) error was returned
when there was a certificate error, and resources could be obtained after the server trust evaluation process. However,
because the CURLE_RECV_ERROR error was returned, this process was not performed, and resources could not be obtained.

The reason why CURLE_PEER_FAILED_VERIFICATION was returned was because CURLOPT_HTTP_VERSION was set to
CURL_HTTP_VERSION_3. Normally, the decision on whether to use HTTP/3 communication should be based on the alt-svc
settings, but when CURL_HTTP_VERSION_3 is set, the initial communication will be performed in HTTP/3 regardless of the
alt-svc settings. The curl uses ngtcp2 internally when performing HTTP/3 communication, but ngtcp2 functions continue
to be used even after falling down to HTTP/2 communication. In this case, an error occurs in the ngtcp2 function during
processing after detecting a certificate error, which causes the CURLE_RECV_ERROR error to be returned.

To follow the Alt-Svc settings, set CURLOPT_HTTP_VERSION to CURL_HTTP_VERSION_NONE. This will allow curl to
communicate with the appropriate HTTP version based on information from ALPN, alt-svc, etc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2119203</commentid>
    <comment_count>6</comment_count>
    <who name="Kenji Shukuwa">kenji.shukuwa</who>
    <bug_when>2025-05-22 22:43:31 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/45817</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2119206</commentid>
    <comment_count>7</comment_count>
    <who name="Kenji Shukuwa">kenji.shukuwa</who>
    <bug_when>2025-05-22 23:09:10 -0700</bug_when>
    <thetext>Don, could you please assign a reviewer?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2120030</commentid>
    <comment_count>8</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-05-27 19:09:53 -0700</bug_when>
    <thetext>Committed 295483@main (be42ad9a0ba6): &lt;https://commits.webkit.org/295483@main&gt;

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

    </bug>

</bugzilla>