<?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>229515</bug_id>
          
          <creation_ts>2021-08-25 14:06:10 -0700</creation_ts>
          <short_desc>[curl] REGRESSION(r281158): fetch(&apos;http://localhost/&apos;) from about:blank doesn&apos;t emit the console error message</short_desc>
          <delta_ts>2021-08-26 00:27:19 -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>WebKit2</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Fujii Hironori">fujii</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>kkinnunen</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1787303</commentid>
    <comment_count>0</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2021-08-25 14:06:10 -0700</bug_when>
    <thetext>[curl] REGRESSION(r281158): fetch(&apos;http://localhost/&apos;) from about:blank doesn&apos;t emit the console error message

See Bug#228095 Comment#18.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1787310</commentid>
    <comment_count>1</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2021-08-25 14:13:44 -0700</bug_when>
    <thetext>1. Start WinCairo WK2 MiniBrowser
2. Open a local file.  Go to file:///.../something.html
3. Open Web Inspector Console
4. Start a local web server
   Invoke &quot;python.exe .\Tools\Scripts\run-webkit-httpd&quot; as admin
5. Invoke &quot;fetch(&apos;http://localhost:8000/&apos;)&quot; in the Web Inspector console

Expected: the following error message should be shown

&gt; &gt; fetch(&apos;http://localhost:8000/&apos;)
&gt; &lt; Promise {status: &quot;pending&quot;}
&gt; [Error] Origin null is not allowed by Access-Control-Allow-Origin.
&gt; [Error] Fetch API cannot load http://localhost:8000/ due to access control checks.
&gt; [Error] Failed to load resource: Origin null is not allowed by Access-Control-Allow-Origin. (localhost, line 0)

Actual: No such error message</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1787489</commentid>
    <comment_count>2</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2021-08-26 00:26:07 -0700</bug_when>
    <thetext>Committed r281614 (240970@main): &lt;https://commits.webkit.org/240970@main&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1787490</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-08-26 00:27:19 -0700</bug_when>
    <thetext>&lt;rdar://problem/82377669&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>