[Connection-Allowlist] [Preload] Fix parsing enforcement [chromium/src : main]

0 views
Skip to first unread message

Sarah Murphy (Gerrit)

unread,
Apr 16, 2026, 2:09:53 PM (13 days ago) Apr 16
to Mike West, Shivani Sharma, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin, alexmo...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, creis...@chromium.org, gavinp...@chromium.org, loading...@chromium.org, navigation...@chromium.org
Attention needed from Mike West and Shivani Sharma

Sarah Murphy voted

Auto-Submit+1
Commit-Queue+1
Open in Gerrit

Related details

Attention is currently required from:
  • Mike West
  • Shivani Sharma
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I78866819939bd28d65d2784a652f76163037ef9f
Gerrit-Change-Number: 7765667
Gerrit-PatchSet: 4
Gerrit-Owner: Sarah Murphy <mur...@microsoft.com>
Gerrit-Reviewer: Mike West <mk...@chromium.org>
Gerrit-Reviewer: Sarah Murphy <mur...@microsoft.com>
Gerrit-Reviewer: Shivani Sharma <shiva...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Shivani Sharma <shiva...@chromium.org>
Gerrit-Attention: Mike West <mk...@chromium.org>
Gerrit-Comment-Date: Thu, 16 Apr 2026 18:09:48 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Shivani Sharma (Gerrit)

unread,
Apr 16, 2026, 5:41:21 PM (13 days ago) Apr 16
to Sarah Murphy, android-bu...@system.gserviceaccount.com, Brandon Maslen, Mike West, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin, blink-revie...@chromium.org, alexmo...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, creis...@chromium.org, gavinp...@chromium.org, loading...@chromium.org, navigation...@chromium.org
Attention needed from Brandon Maslen, Mike West and Sarah Murphy

Shivani Sharma added 1 comment

Patchset-level comments
File-level comment, Patchset 6 (Latest):
Shivani Sharma . unresolved

Moving myself to cc as Mike is a blink owner.
It would be good to rebase this as a child branch of https://chromium-review.googlesource.com/c/chromium/src/+/7708601 so it only shows the diff from the parent branch.

Open in Gerrit

Related details

Attention is currently required from:
  • Brandon Maslen
  • Mike West
  • Sarah Murphy
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I78866819939bd28d65d2784a652f76163037ef9f
    Gerrit-Change-Number: 7765667
    Gerrit-PatchSet: 6
    Gerrit-Owner: Sarah Murphy <mur...@microsoft.com>
    Gerrit-Reviewer: Brandon Maslen <bra...@microsoft.com>
    Gerrit-Reviewer: Mike West <mk...@chromium.org>
    Gerrit-Reviewer: Sarah Murphy <mur...@microsoft.com>
    Gerrit-CC: Nate Chapin <jap...@chromium.org>
    Gerrit-CC: Shivani Sharma <shiva...@chromium.org>
    Gerrit-Attention: Brandon Maslen <bra...@microsoft.com>
    Gerrit-Attention: Sarah Murphy <mur...@microsoft.com>
    Gerrit-Attention: Mike West <mk...@chromium.org>
    Gerrit-Comment-Date: Thu, 16 Apr 2026 21:41:16 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Sarah Murphy (Gerrit)

    unread,
    Apr 16, 2026, 7:24:30 PM (13 days ago) Apr 16
    to Shivani Sharma, android-bu...@system.gserviceaccount.com, Brandon Maslen, Mike West, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin, blink-revie...@chromium.org, alexmo...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, creis...@chromium.org, gavinp...@chromium.org, loading...@chromium.org, navigation...@chromium.org
    Attention needed from Brandon Maslen, Mike West and Shivani Sharma

    Sarah Murphy voted and added 1 comment

    Votes added by Sarah Murphy

    Auto-Submit+1
    Commit-Queue+1

    1 comment

    Patchset-level comments
    File-level comment, Patchset 6:
    Shivani Sharma . resolved

    Moving myself to cc as Mike is a blink owner.
    It would be good to rebase this as a child branch of https://chromium-review.googlesource.com/c/chromium/src/+/7708601 so it only shows the diff from the parent branch.

    Sarah Murphy

    Done, thanks!

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Brandon Maslen
    • Mike West
    • Shivani Sharma
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I78866819939bd28d65d2784a652f76163037ef9f
      Gerrit-Change-Number: 7765667
      Gerrit-PatchSet: 8
      Gerrit-Owner: Sarah Murphy <mur...@microsoft.com>
      Gerrit-Reviewer: Brandon Maslen <bra...@microsoft.com>
      Gerrit-Reviewer: Mike West <mk...@chromium.org>
      Gerrit-Reviewer: Sarah Murphy <mur...@microsoft.com>
      Gerrit-CC: Nate Chapin <jap...@chromium.org>
      Gerrit-CC: Shivani Sharma <shiva...@chromium.org>
      Gerrit-Attention: Brandon Maslen <bra...@microsoft.com>
      Gerrit-Attention: Shivani Sharma <shiva...@chromium.org>
      Gerrit-Attention: Mike West <mk...@chromium.org>
      Gerrit-Comment-Date: Thu, 16 Apr 2026 23:24:21 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Comment-In-Reply-To: Shivani Sharma <shiva...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Mike West (Gerrit)

      unread,
      Apr 17, 2026, 8:51:52 AM (12 days ago) Apr 17
      to Sarah Murphy, Shivani Sharma, android-bu...@system.gserviceaccount.com, Brandon Maslen, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin, blink-revie...@chromium.org, alexmo...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, creis...@chromium.org, gavinp...@chromium.org, loading...@chromium.org, navigation...@chromium.org
      Attention needed from Brandon Maslen, Sarah Murphy and Shivani Sharma

      Mike West added 1 comment

      File third_party/blink/renderer/core/html/link_rel_attribute.cc
      Line 47, Patchset 8 (Latest): rel_copy.Replace('\f', ' ');
      Mike West . unresolved

      Hrm.

      I'd like for us to find a way to reuse `RelList` (`DOMTokenList`) rather than re-parsing this, as we already encode the ASCII whitespace characters in too many disparate places. Making `LinkRelAttribute` a subclass of `RelList` with member functions that call `this->contains()` seems like a simpler design overall. That said, that's a larger change given usage in the codebase. Perhaps add a TODO? It'd be good cleanup.

      For the moment, though, let's not scan the string 4 times. Consider using [`SplitOnASCIIWhitespace(...)`](https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/html/parser/html_parser_idioms.h;drc=d4203fb18d457eb93924af6bb2d24c954402978e;l=45) instead which already has the trimming behavior we want here and will only walk through the string once.

      (We could also lowercase the string here to avoid it when matching all the `EqualIgnoringAsciiCase` below. Might be a simple optimization.)

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Brandon Maslen
      • Sarah Murphy
      • Shivani Sharma
      Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not satisfiedCode-Owners
        • requirement is not satisfiedCode-Review
        • requirement is not satisfiedNo-Unresolved-Comments
        • requirement is not satisfiedReview-Enforcement
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I78866819939bd28d65d2784a652f76163037ef9f
        Gerrit-Change-Number: 7765667
        Gerrit-PatchSet: 8
        Gerrit-Owner: Sarah Murphy <mur...@microsoft.com>
        Gerrit-Reviewer: Brandon Maslen <bra...@microsoft.com>
        Gerrit-Reviewer: Mike West <mk...@chromium.org>
        Gerrit-Reviewer: Sarah Murphy <mur...@microsoft.com>
        Gerrit-CC: Nate Chapin <jap...@chromium.org>
        Gerrit-CC: Shivani Sharma <shiva...@chromium.org>
        Gerrit-Attention: Brandon Maslen <bra...@microsoft.com>
        Gerrit-Attention: Shivani Sharma <shiva...@chromium.org>
        Gerrit-Attention: Sarah Murphy <mur...@microsoft.com>
        Gerrit-Comment-Date: Fri, 17 Apr 2026 12:51:38 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Sarah Murphy (Gerrit)

        unread,
        Apr 23, 2026, 11:24:36 PM (6 days ago) Apr 23
        to Shivani Sharma, android-bu...@system.gserviceaccount.com, Brandon Maslen, Mike West, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin, blink-revie...@chromium.org, alexmo...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, creis...@chromium.org, gavinp...@chromium.org, loading...@chromium.org, navigation...@chromium.org
        Attention needed from Brandon Maslen and Mike West

        Sarah Murphy voted and added 1 comment

        Votes added by Sarah Murphy

        Auto-Submit+1
        Commit-Queue+2

        1 comment

        File third_party/blink/renderer/core/html/link_rel_attribute.cc
        Line 47, Patchset 8: rel_copy.Replace('\f', ' ');
        Mike West . resolved

        Hrm.

        I'd like for us to find a way to reuse `RelList` (`DOMTokenList`) rather than re-parsing this, as we already encode the ASCII whitespace characters in too many disparate places. Making `LinkRelAttribute` a subclass of `RelList` with member functions that call `this->contains()` seems like a simpler design overall. That said, that's a larger change given usage in the codebase. Perhaps add a TODO? It'd be good cleanup.

        For the moment, though, let's not scan the string 4 times. Consider using [`SplitOnASCIIWhitespace(...)`](https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/html/parser/html_parser_idioms.h;drc=d4203fb18d457eb93924af6bb2d24c954402978e;l=45) instead which already has the trimming behavior we want here and will only walk through the string once.

        (We could also lowercase the string here to avoid it when matching all the `EqualIgnoringAsciiCase` below. Might be a simple optimization.)

        Sarah Murphy

        This is good feedback! I've created crbug.com/505286910 for the clean-up work you called out, and lowercased the string as suggested. Thanks!

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Brandon Maslen
        • Mike West
        Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement is not satisfiedCode-Owners
          • requirement is not satisfiedCode-Review
          • requirement is not satisfiedReview-Enforcement
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: I78866819939bd28d65d2784a652f76163037ef9f
          Gerrit-Change-Number: 7765667
          Gerrit-PatchSet: 10
          Gerrit-Owner: Sarah Murphy <mur...@microsoft.com>
          Gerrit-Reviewer: Brandon Maslen <bra...@microsoft.com>
          Gerrit-Reviewer: Mike West <mk...@chromium.org>
          Gerrit-Reviewer: Sarah Murphy <mur...@microsoft.com>
          Gerrit-CC: Nate Chapin <jap...@chromium.org>
          Gerrit-CC: Shivani Sharma <shiva...@chromium.org>
          Gerrit-Attention: Brandon Maslen <bra...@microsoft.com>
          Gerrit-Attention: Mike West <mk...@chromium.org>
          Gerrit-Comment-Date: Fri, 24 Apr 2026 03:24:31 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: Yes
          Comment-In-Reply-To: Mike West <mk...@chromium.org>
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Mike West (Gerrit)

          unread,
          Apr 27, 2026, 2:09:55 AM (3 days ago) Apr 27
          to Sarah Murphy, Shivani Sharma, android-bu...@system.gserviceaccount.com, Brandon Maslen, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin, blink-revie...@chromium.org, alexmo...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, creis...@chromium.org, gavinp...@chromium.org, loading...@chromium.org, navigation...@chromium.org
          Attention needed from Brandon Maslen and Sarah Murphy

          Mike West voted and added 1 comment

          Votes added by Mike West

          Code-Review+1
          Commit-Queue+2

          1 comment

          Patchset-level comments
          File-level comment, Patchset 10 (Latest):
          Mike West . resolved

          Thanks for taking another pass!

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Brandon Maslen
          • Sarah Murphy
          Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement satisfiedCode-Owners
          • requirement is not satisfiedCode-Review
          • requirement is not satisfiedReview-Enforcement
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: I78866819939bd28d65d2784a652f76163037ef9f
          Gerrit-Change-Number: 7765667
          Gerrit-PatchSet: 10
          Gerrit-Owner: Sarah Murphy <mur...@microsoft.com>
          Gerrit-Reviewer: Brandon Maslen <bra...@microsoft.com>
          Gerrit-Reviewer: Mike West <mk...@chromium.org>
          Gerrit-Reviewer: Sarah Murphy <mur...@microsoft.com>
          Gerrit-CC: Nate Chapin <jap...@chromium.org>
          Gerrit-CC: Shivani Sharma <shiva...@chromium.org>
          Gerrit-Attention: Brandon Maslen <bra...@microsoft.com>
          Gerrit-Attention: Sarah Murphy <mur...@microsoft.com>
          Gerrit-Comment-Date: Mon, 27 Apr 2026 06:09:34 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: Yes
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Brandon Maslen (Gerrit)

          unread,
          Apr 27, 2026, 1:31:05 PM (2 days ago) Apr 27
          to Sarah Murphy, Mike West, Shivani Sharma, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin, blink-revie...@chromium.org, alexmo...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, creis...@chromium.org, gavinp...@chromium.org, loading...@chromium.org, navigation...@chromium.org
          Attention needed from Mike West and Sarah Murphy

          Brandon Maslen voted

          Code-Review+1
          Commit-Queue+2
          Open in Gerrit

          Related details

          Attention is currently required from:
          • Mike West
          • Sarah Murphy
          Submit Requirements:
            • requirement satisfiedCode-Coverage
            • requirement satisfiedCode-Owners
            • requirement satisfiedCode-Review
            • requirement satisfiedReview-Enforcement
            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
            Gerrit-MessageType: comment
            Gerrit-Project: chromium/src
            Gerrit-Branch: main
            Gerrit-Change-Id: I78866819939bd28d65d2784a652f76163037ef9f
            Gerrit-Change-Number: 7765667
            Gerrit-PatchSet: 10
            Gerrit-Owner: Sarah Murphy <mur...@microsoft.com>
            Gerrit-Reviewer: Brandon Maslen <bra...@microsoft.com>
            Gerrit-Reviewer: Mike West <mk...@chromium.org>
            Gerrit-Reviewer: Sarah Murphy <mur...@microsoft.com>
            Gerrit-CC: Nate Chapin <jap...@chromium.org>
            Gerrit-CC: Shivani Sharma <shiva...@chromium.org>
            Gerrit-Attention: Sarah Murphy <mur...@microsoft.com>
            Gerrit-Attention: Mike West <mk...@chromium.org>
            Gerrit-Comment-Date: Mon, 27 Apr 2026 17:30:56 +0000
            Gerrit-HasComments: No
            Gerrit-Has-Labels: Yes
            satisfied_requirement
            open
            diffy

            Chromium LUCI CQ (Gerrit)

            unread,
            Apr 27, 2026, 4:11:08 PM (2 days ago) Apr 27
            to Sarah Murphy, Brandon Maslen, Mike West, Shivani Sharma, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, Nate Chapin, blink-revie...@chromium.org, alexmo...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, creis...@chromium.org, gavinp...@chromium.org, loading...@chromium.org, navigation...@chromium.org

            Chromium LUCI CQ submitted the change

            Change information

            Commit message:
            [Connection-Allowlist] [Preload] Fix parsing enforcement

            Enable previously-disabled Connection-Allowlist test:

            1. WhitespaceInRelAttributeNormalized: verifies that <link rel>
            attributes containing tabs, carriage returns, or form feeds are
            correctly parsed for preconnect/dns-prefetch enforcement.

            Supporting production fixes:
            - link_rel_attribute.cc: normalize all ASCII whitespace (tab, CR, FF)
            to spaces before splitting rel tokens, per the HTML spec.
            Fixed: 388592302, 496821778
            Bug: 388592302, 496821778
            Change-Id: I78866819939bd28d65d2784a652f76163037ef9f
            Reviewed-by: Brandon Maslen <bra...@microsoft.com>
            Commit-Queue: Brandon Maslen <bra...@microsoft.com>
            Auto-Submit: Sarah Murphy <mur...@microsoft.com>
            Reviewed-by: Mike West <mk...@chromium.org>
            Cr-Commit-Position: refs/heads/main@{#1621261}
            Files:
            • M third_party/blink/renderer/core/html/link_rel_attribute.cc
            • M third_party/blink/renderer/core/loader/connection_allowlist_preload_test.cc
            • D third_party/blink/web_tests/external/wpt/html/semantics/document-metadata/the-link-element/link-rel-attribute-tokenization-expected.txt
            Change size: M
            Delta: 3 files changed, 32 insertions(+), 34 deletions(-)
            Branch: refs/heads/main
            Submit Requirements:
            • requirement satisfiedCode-Review: +1 by Brandon Maslen, +1 by Mike West
            Open in Gerrit
            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
            Gerrit-MessageType: merged
            Gerrit-Project: chromium/src
            Gerrit-Branch: main
            Gerrit-Change-Id: I78866819939bd28d65d2784a652f76163037ef9f
            Gerrit-Change-Number: 7765667
            Gerrit-PatchSet: 11
            Gerrit-Owner: Sarah Murphy <mur...@microsoft.com>
            Gerrit-Reviewer: Brandon Maslen <bra...@microsoft.com>
            Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
            Gerrit-Reviewer: Mike West <mk...@chromium.org>
            Gerrit-Reviewer: Sarah Murphy <mur...@microsoft.com>
            open
            diffy
            satisfied_requirement
            Reply all
            Reply to author
            Forward
            0 new messages