[webkit-changes] [WebKit/WebKit] 57c8f3: The HTMLPreloadScanner should not preload scripts ...
Chris Dumez
noreply at github.com
Fri Jun 16 09:46:34 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 57c8f39eb66bd91bed113fe08c5264d0fd94b95d
https://github.com/WebKit/WebKit/commit/57c8f39eb66bd91bed113fe08c5264d0fd94b95d
Author: Chris Dumez <cdumez at apple.com>
Date: 2023-06-16 (Fri, 16 Jun 2023)
Changed paths:
M LayoutTests/TestExpectations
M LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/document-write/script-src-unsupported-type.tentative.sub-expected.txt
M LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/page-load/script-src-unsupported-type.tentative-expected.txt
M Source/WebCore/dom/ScriptElement.cpp
M Source/WebCore/dom/ScriptElement.h
M Source/WebCore/html/parser/HTMLPreloadScanner.cpp
Log Message:
-----------
The HTMLPreloadScanner should not preload scripts with unsupported types
https://bugs.webkit.org/show_bug.cgi?id=258159
Reviewed by Darin Adler and Ryosuke Niwa.
The HTMLPreloadScanner should not preload scripts with unsupported types
to avoid wasting resources unnecessarily.
This aligns our behavior with Chrome and Firefox.
* LayoutTests/TestExpectations:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/document-write/script-src-unsupported-type.tentative.sub-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/page-load/script-src-unsupported-type.tentative-expected.txt:
* Source/WebCore/html/parser/HTMLPreloadScanner.cpp:
(WebCore::TokenPreloadScanner::StartTagScanner::processAttribute):
(WebCore::TokenPreloadScanner::StartTagScanner::shouldPreload):
Canonical link: https://commits.webkit.org/265247@main
More information about the webkit-changes
mailing list