[webkit-changes] [WebKit/WebKit] 258133: link rel=modulepreload should always use CORS pref...

Ryosuke Niwa noreply at github.com
Wed Feb 22 16:16:45 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2581333cdb03631d467c1538d6b7f7f0f8e1b1c8
      https://github.com/WebKit/WebKit/commit/2581333cdb03631d467c1538d6b7f7f0f8e1b1c8
  Author: Ryosuke Niwa <rniwa at webkit.org>
  Date:   2023-02-22 (Wed, 22 Feb 2023)

  Changed paths:
    M LayoutTests/imported/w3c/web-platform-tests/preload/modulepreload-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/preload/modulepreload.html
    M LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/preload/modulepreload-expected.txt
    M Source/WebCore/loader/LinkLoader.cpp

  Log Message:
  -----------
  link rel=modulepreload should always use CORS preflight for cross-origin requests
https://bugs.webkit.org/show_bug.cgi?id=252734

Reviewed by Yusuke Suzuki.

Implement the semantics for cross-origin modulepreload requests.

This patch also updates the relevant web platform test to count a resource timing entry
with 0-byte transfer size for cross-origin test cases since WebKit's resource timing
implementation returns 0 byte for all cross-origin requests.

* LayoutTests/imported/w3c/web-platform-tests/preload/modulepreload-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/preload/modulepreload.html:
* LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/preload/modulepreload-expected.txt:
* Source/WebCore/loader/LinkLoader.cpp:
(WebCore::LinkLoader::preloadIfNeeded):

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




More information about the webkit-changes mailing list