[webkit-changes] [WebKit/WebKit] 283528: The HTMLPreloadScanner ignores the referrerpolicy ...

Chris Dumez noreply at github.com
Thu Jun 15 19:24:22 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2835282d4f2190142498038dcc670c7562d1b1ae
      https://github.com/WebKit/WebKit/commit/2835282d4f2190142498038dcc670c7562d1b1ae
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2023-06-15 (Thu, 15 Jun 2023)

  Changed paths:
    M LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/document-write/img-src-referrerpolicy-no-referrer.tentative.sub-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/page-load/img-src-referrerpolicy-no-referrer.tentative-expected.txt
    M Source/WebCore/html/parser/HTMLPreloadScanner.cpp

  Log Message:
  -----------
  The HTMLPreloadScanner ignores the referrerpolicy attribute for img elements
https://bugs.webkit.org/show_bug.cgi?id=258164

Reviewed by Ryosuke Niwa.

Parse the referrerpolicy attribute for img tags inside the HTMLPreloadScanner,
like we already do for some other tags.

* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/document-write/img-src-referrerpolicy-no-referrer.tentative.sub-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/page-load/img-src-referrerpolicy-no-referrer.tentative-expected.txt:
* Source/WebCore/html/parser/HTMLPreloadScanner.cpp:
(WebCore::TokenPreloadScanner::StartTagScanner::processAttribute):

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




More information about the webkit-changes mailing list