Bug 229515 - [curl] REGRESSION(r281158): fetch('http://localhost/') from about:blank doesn't emit the console error message
Summary: [curl] REGRESSION(r281158): fetch('http://localhost/') from about:blank doesn...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-08-25 14:06 PDT by Fujii Hironori
Modified: 2021-08-26 00:27 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fujii Hironori 2021-08-25 14:06:10 PDT
[curl] REGRESSION(r281158): fetch('http://localhost/') from about:blank doesn't emit the console error message

See Bug#228095 Comment#18.
Comment 1 Fujii Hironori 2021-08-25 14:13:44 PDT
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 "python.exe .\Tools\Scripts\run-webkit-httpd" as admin
5. Invoke "fetch('http://localhost:8000/')" in the Web Inspector console

Expected: the following error message should be shown

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

Actual: No such error message
Comment 2 Fujii Hironori 2021-08-26 00:26:07 PDT
Committed r281614 (240970@main): <https://commits.webkit.org/240970@main>
Comment 3 Radar WebKit Bug Importer 2021-08-26 00:27:19 PDT
<rdar://problem/82377669>