Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ba2a851809a33013068ec8511883055cabd239be
      
https://github.com/WebKit/WebKit/commit/ba2a851809a33013068ec8511883055cabd239be
  Author: Alex Christensen <[email protected]>
  Date:   2023-07-13 (Thu, 13 Jul 2023)

  Changed paths:
    M 
LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/preload/modulepreload-expected.txt
    M Source/WebCore/loader/LinkLoader.cpp
    M Tools/TestWebKitAPI/Tests/WebKitCocoa/WKURLSchemeHandler-1.mm

  Log Message:
  -----------
  REGRESSION (iOS 17 beta): "Origin" field is missing in the request when using 
"Link modulepreload"
https://bugs.webkit.org/show_bug.cgi?id=258863
rdar://111800089

Reviewed by Ryosuke Niwa.

260709@main forgot to add the updateRequestForAccessControl call from
createPotentialAccessControlRequest.  The Origin header is added in the network
process for network loads, but for loads through WKURLSchemeHandler we never
get an Origin header any more.  This adds it back.

* Source/WebCore/loader/LinkLoader.cpp:
(WebCore::LinkLoader::preloadIfNeeded):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/WKURLSchemeHandler-1.mm:

Canonical link: https://commits.webkit.org/266054@main


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to