[Fetch] Handle whitespace normalization for forbidden header values. [chromium/src : main]

0 views
Skip to first unread message

Mike West (Gerrit)

unread,
Apr 1, 2026, 7:36:21 AM (3 days ago) Apr 1
to Daniel Vogelheim, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin, blink-revie...@chromium.org, blink-...@chromium.org, gavinp...@chromium.org, kinuko...@chromium.org, loading...@chromium.org
Attention needed from Daniel Vogelheim

Mike West added 1 comment

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

WDYT of this change, Daniel?

Open in Gerrit

Related details

Attention is currently required from:
  • Daniel Vogelheim
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: I035e50f28dd5fc03335bb30fc93fb615611f7d55
Gerrit-Change-Number: 7718003
Gerrit-PatchSet: 1
Gerrit-Owner: Mike West <mk...@chromium.org>
Gerrit-Reviewer: Daniel Vogelheim <voge...@chromium.org>
Gerrit-Reviewer: Mike West <mk...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Daniel Vogelheim <voge...@chromium.org>
Gerrit-Comment-Date: Wed, 01 Apr 2026 11:36:06 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Daniel Vogelheim (Gerrit)

unread,
Apr 1, 2026, 8:38:08 AM (3 days ago) Apr 1
to Mike West, Daniel Vogelheim, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin, blink-revie...@chromium.org, blink-...@chromium.org, gavinp...@chromium.org, kinuko...@chromium.org, loading...@chromium.org
Attention needed from Mike West

Daniel Vogelheim voted and added 3 comments

Votes added by Daniel Vogelheim

Code-Review+1

3 comments

Patchset-level comments
Daniel Vogelheim . resolved

LGTM, w/ a testing nitpick.

I couldn't find the spec that governs this. Any links?

File third_party/blink/web_tests/external/wpt/fetch/api/headers/headers-forbidden-override.any.js
Line 16, Patchset 1 (Latest):];
Daniel Vogelheim . unresolved

Given the `.Latin1()` normalization, maybe there should be one example with a non-ASCII Latin1 character, and one with a non-Latin1? E.g., "GËT" and "GЭT".

Line 41, Patchset 1 (Latest):];
Daniel Vogelheim . unresolved

permittedValues should maybe have an example with whitespace in it, like `" get "`.

Open in Gerrit

Related details

Attention is currently required from:
  • Mike West
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • 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: I035e50f28dd5fc03335bb30fc93fb615611f7d55
    Gerrit-Change-Number: 7718003
    Gerrit-PatchSet: 1
    Gerrit-Owner: Mike West <mk...@chromium.org>
    Gerrit-Reviewer: Daniel Vogelheim <voge...@chromium.org>
    Gerrit-Reviewer: Mike West <mk...@chromium.org>
    Gerrit-CC: Nate Chapin <jap...@chromium.org>
    Gerrit-Attention: Mike West <mk...@chromium.org>
    Gerrit-Comment-Date: Wed, 01 Apr 2026 12:37:51 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Mike West (Gerrit)

    unread,
    Apr 1, 2026, 9:47:16 AM (2 days ago) Apr 1
    to Daniel Vogelheim, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin, blink-revie...@chromium.org, blink-...@chromium.org, gavinp...@chromium.org, kinuko...@chromium.org, loading...@chromium.org

    Mike West voted and added 3 comments

    Votes added by Mike West

    Commit-Queue+1

    3 comments

    Patchset-level comments
    Daniel Vogelheim . resolved

    LGTM, w/ a testing nitpick.

    I couldn't find the spec that governs this. Any links?

    Mike West

    It's defined in step 3 of https://fetch.spec.whatwg.org/#forbidden-request-header. I'll add it to the CL description.

    File third_party/blink/web_tests/external/wpt/fetch/api/headers/headers-forbidden-override.any.js
    Line 16, Patchset 1:];
    Daniel Vogelheim . resolved

    Given the `.Latin1()` normalization, maybe there should be one example with a non-ASCII Latin1 character, and one with a non-Latin1? E.g., "GËT" and "GЭT".

    Mike West

    These are good suggestions. `\nGËT` actually crashes the renderer... I'm going to deal with these in a subsequent CL.

    Line 41, Patchset 1:];
    Daniel Vogelheim . resolved

    permittedValues should maybe have an example with whitespace in it, like `" get "`.

    Mike West

    Done

    Open in Gerrit

    Related details

    Attention set is empty
    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: I035e50f28dd5fc03335bb30fc93fb615611f7d55
      Gerrit-Change-Number: 7718003
      Gerrit-PatchSet: 2
      Gerrit-Owner: Mike West <mk...@chromium.org>
      Gerrit-Reviewer: Daniel Vogelheim <voge...@chromium.org>
      Gerrit-Reviewer: Mike West <mk...@chromium.org>
      Gerrit-CC: Nate Chapin <jap...@chromium.org>
      Gerrit-Comment-Date: Wed, 01 Apr 2026 13:47:03 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Comment-In-Reply-To: Daniel Vogelheim <voge...@chromium.org>
      satisfied_requirement
      open
      diffy

      Blink W3C Test Autoroller (Gerrit)

      unread,
      Apr 1, 2026, 10:05:28 AM (2 days ago) Apr 1
      to Mike West, Daniel Vogelheim, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin, blink-revie...@chromium.org, blink-...@chromium.org, gavinp...@chromium.org, kinuko...@chromium.org, loading...@chromium.org

      Message from Blink W3C Test Autoroller

      Exportable changes to web-platform-tests were detected in this CL and a pull request in the upstream repo has been made: https://github.com/web-platform-tests/wpt/pull/58911.

      When this CL lands, the bot will automatically merge the PR on GitHub if the required GitHub checks pass; otherwise, ecosystem-infra@ team will triage the failures and may contact you.

      WPT Export docs:
      https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_platform_tests.md#Automatic-export-process

      Open in Gerrit

      Related details

      Attention set is empty
      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: I035e50f28dd5fc03335bb30fc93fb615611f7d55
      Gerrit-Change-Number: 7718003
      Gerrit-PatchSet: 2
      Gerrit-Owner: Mike West <mk...@chromium.org>
      Gerrit-Reviewer: Daniel Vogelheim <voge...@chromium.org>
      Gerrit-Reviewer: Mike West <mk...@chromium.org>
      Gerrit-CC: Blink W3C Test Autoroller <blink-w3c-te...@chromium.org>
      Gerrit-CC: Nate Chapin <jap...@chromium.org>
      Gerrit-Comment-Date: Wed, 01 Apr 2026 14:02:28 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: No
      satisfied_requirement
      open
      diffy

      Mike West (Gerrit)

      unread,
      Apr 1, 2026, 11:24:21 AM (2 days ago) Apr 1
      to Blink W3C Test Autoroller, Daniel Vogelheim, Chromium LUCI CQ, chromium...@chromium.org, Nate Chapin, blink-revie...@chromium.org, blink-...@chromium.org, gavinp...@chromium.org, kinuko...@chromium.org, loading...@chromium.org

      Mike West voted Commit-Queue+2

      Commit-Queue+2
      Open in Gerrit

      Related details

      Attention set is empty
      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: I035e50f28dd5fc03335bb30fc93fb615611f7d55
      Gerrit-Change-Number: 7718003
      Gerrit-PatchSet: 2
      Gerrit-Owner: Mike West <mk...@chromium.org>
      Gerrit-Reviewer: Daniel Vogelheim <voge...@chromium.org>
      Gerrit-Reviewer: Mike West <mk...@chromium.org>
      Gerrit-CC: Blink W3C Test Autoroller <blink-w3c-te...@chromium.org>
      Gerrit-CC: Nate Chapin <jap...@chromium.org>
      Gerrit-Comment-Date: Wed, 01 Apr 2026 15:24:06 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Chromium LUCI CQ (Gerrit)

      unread,
      Apr 1, 2026, 11:28:47 AM (2 days ago) Apr 1
      to Mike West, Blink W3C Test Autoroller, Daniel Vogelheim, chromium...@chromium.org, Nate Chapin, blink-revie...@chromium.org, blink-...@chromium.org, gavinp...@chromium.org, kinuko...@chromium.org, loading...@chromium.org

      Chromium LUCI CQ submitted the change

      Unreviewed changes

      1 is the latest approved patch-set.
      No files were changed between the latest approved patch-set and the submitted one.

      Change information

      Commit message:
      [Fetch] Handle whitespace normalization for forbidden header values.

      We should pass the normalized header value to the network-level
      forbidden method checks, not the raw values.

      https://fetch.spec.whatwg.org/#forbidden-request-header
      Bug: 498408346
      Change-Id: I035e50f28dd5fc03335bb30fc93fb615611f7d55
      Commit-Queue: Mike West <mk...@chromium.org>
      Reviewed-by: Daniel Vogelheim <voge...@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#1608547}
      Files:
      • M third_party/blink/renderer/platform/loader/cors/cors.cc
      • A third_party/blink/web_tests/external/wpt/fetch/api/headers/headers-forbidden-override.any.js
      Change size: M
      Delta: 2 files changed, 54 insertions(+), 1 deletion(-)
      Branch: refs/heads/main
      Submit Requirements:
      • requirement satisfiedCode-Review: +1 by Daniel Vogelheim
      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: I035e50f28dd5fc03335bb30fc93fb615611f7d55
      Gerrit-Change-Number: 7718003
      Gerrit-PatchSet: 3
      Gerrit-Owner: Mike West <mk...@chromium.org>
      Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
      Gerrit-Reviewer: Daniel Vogelheim <voge...@chromium.org>
      Gerrit-Reviewer: Mike West <mk...@chromium.org>
      Gerrit-CC: Blink W3C Test Autoroller <blink-w3c-te...@chromium.org>
      open
      diffy
      satisfied_requirement

      Blink W3C Test Autoroller (Gerrit)

      unread,
      Apr 1, 2026, 12:06:31 PM (2 days ago) Apr 1
      to Chromium LUCI CQ, Mike West, Daniel Vogelheim, chromium...@chromium.org, Nate Chapin, blink-revie...@chromium.org, blink-...@chromium.org, gavinp...@chromium.org, kinuko...@chromium.org, loading...@chromium.org

      Message from Blink W3C Test Autoroller

      The WPT PR for this CL has been merged upstream! https://github.com/web-platform-tests/wpt/pull/58911

      Open in Gerrit

      Related details

      Attention set is empty
      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: I035e50f28dd5fc03335bb30fc93fb615611f7d55
      Gerrit-Change-Number: 7718003
      Gerrit-PatchSet: 3
      Gerrit-Owner: Mike West <mk...@chromium.org>
      Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
      Gerrit-Reviewer: Daniel Vogelheim <voge...@chromium.org>
      Gerrit-Reviewer: Mike West <mk...@chromium.org>
      Gerrit-CC: Blink W3C Test Autoroller <blink-w3c-te...@chromium.org>
      Gerrit-CC: Nate Chapin <jap...@chromium.org>
      Gerrit-Comment-Date: Wed, 01 Apr 2026 16:06:24 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: No
      satisfied_requirement
      open
      diffy
      Reply all
      Reply to author
      Forward
      0 new messages