[Connection-Allowlist] Add iframe embedded enforcement [chromium/src : main]

0 views
Skip to first unread message

Giovanni Del Valle (Gerrit)

unread,
Jun 10, 2026, 4:35:25 PM (14 hours ago) Jun 10
to Brandon Maslen, Chromium IPC Reviews, Mike West, Adam Rice, Arthur Sonzogni, Dominic Farolino, Philip Rogers, chromium...@chromium.org, alexmo...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, creis...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, navigation...@chromium.org, network-ser...@chromium.org
Attention needed from Adam Rice, Arthur Sonzogni, Brandon Maslen, Chromium IPC Reviews, Dominic Farolino, Mike West and Philip Rogers

New activity on the change

Open in Gerrit

Related details

Attention is currently required from:
  • Adam Rice
  • Arthur Sonzogni
  • Brandon Maslen
  • Chromium IPC Reviews
  • Dominic Farolino
  • Mike West
  • Philip Rogers
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: Ib3450029f733649d2ac109f9f3cc34440b6076ee
Gerrit-Change-Number: 7920809
Gerrit-PatchSet: 3
Gerrit-Owner: Giovanni Del Valle <gdel...@microsoft.com>
Gerrit-Reviewer: Adam Rice <ri...@chromium.org>
Gerrit-Reviewer: Arthur Sonzogni <arthurs...@chromium.org>
Gerrit-Reviewer: Brandon Maslen <bra...@microsoft.com>
Gerrit-Reviewer: Chromium IPC Reviews <chrome-ip...@google.com>
Gerrit-Reviewer: Dominic Farolino <d...@chromium.org>
Gerrit-Reviewer: Mike West <mk...@chromium.org>
Gerrit-Reviewer: Philip Rogers <p...@chromium.org>
Gerrit-Attention: Brandon Maslen <bra...@microsoft.com>
Gerrit-Attention: Dominic Farolino <d...@chromium.org>
Gerrit-Attention: Philip Rogers <p...@chromium.org>
Gerrit-Attention: Mike West <mk...@chromium.org>
Gerrit-Attention: Arthur Sonzogni <arthurs...@chromium.org>
Gerrit-Attention: Chromium IPC Reviews <chrome-ip...@google.com>
Gerrit-Attention: Adam Rice <ri...@chromium.org>
Gerrit-Comment-Date: Wed, 10 Jun 2026 20:35:11 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

gwsq (Gerrit)

unread,
Jun 10, 2026, 4:50:36 PM (14 hours ago) Jun 10
to Giovanni Del Valle, Chromium IPC Reviews, Alex Gough, Andrew Verge, Brandon Maslen, Mike West, Adam Rice, Arthur Sonzogni, Dominic Farolino, Philip Rogers, chromium...@chromium.org, alexmo...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, creis...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, navigation...@chromium.org, network-ser...@chromium.org
Attention needed from Adam Rice, Alex Gough, Andrew Verge, Arthur Sonzogni, Brandon Maslen, Dominic Farolino, Mike West and Philip Rogers

Message from gwsq

From googleclient/chrome/chromium_gwsq/ipc/config.gwsq:
IPC: aj...@chromium.org, arthurs...@chromium.org, d...@chromium.org, mk...@chromium.org

📎 It looks like you’re making a possibly security-sensitive change! 📎 IPC security review isn’t a rubberstamp, so your friendly security reviewer will need a fair amount of context to review your CL effectively. Please review your CL description and code comments to make sure they provide context for someone unfamiliar with your project/area. Pay special attention to where data comes from and which processes it flows between (and their privilege levels). Feel free to point your security reviewer at design docs, bugs, or other links if you can’t reasonably make a self-contained CL description. (Also see https://cbea.ms/git-commit/).

IPC reviewer(s): aj...@chromium.org, arthurs...@chromium.org, d...@chromium.org, mk...@chromium.org


Reviewer source(s):
aj...@chromium.org is from context(googleclient/chrome/chromium_gwsq/ipc/config.gwsq)

Open in Gerrit

Related details

Attention is currently required from:
  • Adam Rice
  • Alex Gough
  • Andrew Verge
  • Arthur Sonzogni
  • Brandon Maslen
  • Dominic Farolino
  • Mike West
  • Philip Rogers
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: Ib3450029f733649d2ac109f9f3cc34440b6076ee
Gerrit-Change-Number: 7920809
Gerrit-PatchSet: 3
Gerrit-Owner: Giovanni Del Valle <gdel...@microsoft.com>
Gerrit-Reviewer: Adam Rice <ri...@chromium.org>
Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
Gerrit-Reviewer: Andrew Verge <ave...@chromium.org>
Gerrit-Reviewer: Arthur Sonzogni <arthurs...@chromium.org>
Gerrit-Reviewer: Brandon Maslen <bra...@microsoft.com>
Gerrit-Reviewer: Dominic Farolino <d...@chromium.org>
Gerrit-Reviewer: Mike West <mk...@chromium.org>
Gerrit-Reviewer: Philip Rogers <p...@chromium.org>
Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
Gerrit-CC: gwsq
Gerrit-Attention: Brandon Maslen <bra...@microsoft.com>
Gerrit-Attention: Andrew Verge <ave...@chromium.org>
Gerrit-Attention: Dominic Farolino <d...@chromium.org>
Gerrit-Attention: Philip Rogers <p...@chromium.org>
Gerrit-Attention: Mike West <mk...@chromium.org>
Gerrit-Attention: Arthur Sonzogni <arthurs...@chromium.org>
Gerrit-Attention: Adam Rice <ri...@chromium.org>
Gerrit-Attention: Alex Gough <aj...@chromium.org>
Gerrit-Comment-Date: Wed, 10 Jun 2026 20:49:58 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Giovanni Del Valle (Gerrit)

unread,
Jun 10, 2026, 5:00:03 PM (14 hours ago) Jun 10
to Dan Clark, Dominic Farolino, Chromium IPC Reviews, Alex Gough, Andrew Verge, Brandon Maslen, Mike West, Adam Rice, Arthur Sonzogni, chromium...@chromium.org, alexmo...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, creis...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, navigation...@chromium.org, network-ser...@chromium.org
Attention needed from Adam Rice, Alex Gough, Andrew Verge, Arthur Sonzogni, Brandon Maslen, Dan Clark, Dominic Farolino and Mike West

Giovanni Del Valle added 1 comment

Patchset-level comments
File-level comment, Patchset 3 (Latest):
Giovanni Del Valle . resolved

Adding @Andrew Verge and @Mike West for review of changes for connection allowlist. @Arthur for render host changes. @Adam for loader changes. Adding @Dominic Farolino to CC.
Tried adding relevant reviewers, if you think someone is a closer fit for some changes, please let me know. Thanks!

Open in Gerrit

Related details

Attention is currently required from:
  • Adam Rice
  • Alex Gough
  • Andrew Verge
  • Arthur Sonzogni
  • Brandon Maslen
  • Dan Clark
  • Dominic Farolino
  • 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: Ib3450029f733649d2ac109f9f3cc34440b6076ee
Gerrit-Change-Number: 7920809
Gerrit-PatchSet: 3
Gerrit-Owner: Giovanni Del Valle <gdel...@microsoft.com>
Gerrit-Reviewer: Adam Rice <ri...@chromium.org>
Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
Gerrit-Reviewer: Andrew Verge <ave...@chromium.org>
Gerrit-Reviewer: Arthur Sonzogni <arthurs...@chromium.org>
Gerrit-Reviewer: Brandon Maslen <bra...@microsoft.com>
Gerrit-Reviewer: Dan Clark <dan...@microsoft.com>
Gerrit-Reviewer: Mike West <mk...@chromium.org>
Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
Gerrit-CC: Dominic Farolino <d...@chromium.org>
Gerrit-CC: gwsq
Gerrit-Attention: Brandon Maslen <bra...@microsoft.com>
Gerrit-Attention: Andrew Verge <ave...@chromium.org>
Gerrit-Attention: Dominic Farolino <d...@chromium.org>
Gerrit-Attention: Mike West <mk...@chromium.org>
Gerrit-Attention: Dan Clark <dan...@microsoft.com>
Gerrit-Attention: Arthur Sonzogni <arthurs...@chromium.org>
Gerrit-Attention: Adam Rice <ri...@chromium.org>
Gerrit-Attention: Alex Gough <aj...@chromium.org>
Gerrit-Comment-Date: Wed, 10 Jun 2026 20:59:45 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Alex Gough (Gerrit)

unread,
Jun 10, 2026, 5:11:02 PM (14 hours ago) Jun 10
to Giovanni Del Valle, Chromium LUCI CQ, Dan Clark, Dominic Farolino, Chromium IPC Reviews, Alex Gough, Andrew Verge, Brandon Maslen, Mike West, Adam Rice, Arthur Sonzogni, chromium...@chromium.org, alexmo...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, creis...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, navigation...@chromium.org, network-ser...@chromium.org
Attention needed from Adam Rice, Andrew Verge, Arthur Sonzogni, Brandon Maslen, Dan Clark, Dominic Farolino, Giovanni Del Valle and Mike West

Alex Gough added 1 comment

File services/network/public/mojom/parsed_headers.mojom
Line 47, Patchset 3 (Latest): AllowCSPFromHeaderValue? allow_connection_allowlist_from;
Alex Gough . unresolved

does this type need renaming in a refactor before this CL?

Open in Gerrit

Related details

Attention is currently required from:
  • Adam Rice
  • Andrew Verge
  • Arthur Sonzogni
  • Brandon Maslen
  • Dan Clark
  • Dominic Farolino
  • Giovanni Del Valle
  • Mike West
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: Ib3450029f733649d2ac109f9f3cc34440b6076ee
    Gerrit-Change-Number: 7920809
    Gerrit-PatchSet: 3
    Gerrit-Owner: Giovanni Del Valle <gdel...@microsoft.com>
    Gerrit-Reviewer: Adam Rice <ri...@chromium.org>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Andrew Verge <ave...@chromium.org>
    Gerrit-Reviewer: Arthur Sonzogni <arthurs...@chromium.org>
    Gerrit-Reviewer: Brandon Maslen <bra...@microsoft.com>
    Gerrit-Reviewer: Dan Clark <dan...@microsoft.com>
    Gerrit-Reviewer: Giovanni Del Valle <gdel...@microsoft.com>
    Gerrit-Reviewer: Mike West <mk...@chromium.org>
    Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
    Gerrit-CC: Dominic Farolino <d...@chromium.org>
    Gerrit-CC: gwsq
    Gerrit-Attention: Brandon Maslen <bra...@microsoft.com>
    Gerrit-Attention: Andrew Verge <ave...@chromium.org>
    Gerrit-Attention: Dominic Farolino <d...@chromium.org>
    Gerrit-Attention: Giovanni Del Valle <gdel...@microsoft.com>
    Gerrit-Attention: Mike West <mk...@chromium.org>
    Gerrit-Attention: Dan Clark <dan...@microsoft.com>
    Gerrit-Attention: Arthur Sonzogni <arthurs...@chromium.org>
    Gerrit-Attention: Adam Rice <ri...@chromium.org>
    Gerrit-Comment-Date: Wed, 10 Jun 2026 21:10:53 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Arthur Sonzogni (Gerrit)

    unread,
    4:48 AM (2 hours ago) 4:48 AM
    to Giovanni Del Valle, Chromium LUCI CQ, Dan Clark, Dominic Farolino, Chromium IPC Reviews, Alex Gough, Andrew Verge, Brandon Maslen, Mike West, Adam Rice, chromium...@chromium.org, alexmo...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, creis...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, navigation...@chromium.org, network-ser...@chromium.org
    Attention needed from Adam Rice, Andrew Verge, Brandon Maslen, Dan Clark, Dominic Farolino, Giovanni Del Valle and Mike West

    Arthur Sonzogni added 10 comments

    Patchset-level comments
    Arthur Sonzogni . unresolved

    Thank you Giovanni!

    I let 9 comments below, but I would like a general agreement from @mk...@chromium.org about the web platform feature before doing a deeper code review.

    File content/browser/renderer_host/navigation_request.cc
    Line 8232, Patchset 3 (Latest):namespace {

    // A parsed Connection-Allowlist is usable for embedded enforcement only if it
    // did not hit a fatal parse error. A malformed header yields a present but
    // empty allowlist; treating that as a valid (maximally strict) assertion would
    // let a garbage header satisfy the embedded-enforcement handshake, so we reject
    // it.
    bool IsConnectionAllowlistUsable(
    const network::ConnectionAllowlist& allowlist) {
    return !std::ranges::contains(
    allowlist.issues,
    network::mojom::ConnectionAllowlistIssue::kInvalidHeader) &&
    !std::ranges::contains(
    allowlist.issues,
    network::mojom::ConnectionAllowlistIssue::kItemNotInnerList);
    }

    } // namespace
    Arthur Sonzogni . unresolved

    Move it to the preexisting anonymous namespace.

    Line 8255, Patchset 3 (Latest): // TODO(https://crbug.com/11129645): MHTML iframe not supported yet.
    Arthur Sonzogni . unresolved

    Can you please explain the difficulty? E.G. do we need to do something to support it?
    Do you foresee a future where this would be supported?

    Line 8266, Patchset 3 (Latest): const GURL& url = GetURL();
    Arthur Sonzogni . unresolved

    nit: Can we not create a "url" variable? Just use "GetURL()" below?

    Line 8279, Patchset 3 (Latest): network::ParseConnectionAllowlist(*frame_attribute, url);
    Arthur Sonzogni . unresolved

    Note: we generally avoid C++ parsers called from the browser process. Should we parse it from the renderer process instead before sending it to the browser process?

    I guess this one is fuzzers as a side effect of being part of ParsedHeaders. Unfortunately, the coverage seems to be zero at the moment:
    https://analysis.chromium.org/coverage/p/chromium/file?host=chromium.googlesource.com&project=chromium/src&ref=refs/heads/main&revision=1ce3f7eb2f4f9cc392edb04fc56fa2f432201ec6&path=//services/network/public/cpp/connection_allowlist_parser.cc&platform=fuzz&test_suite_type=any&modifier_id=0

    Line 8326, Patchset 3 (Latest): const GURL& url = GetURL();
    Arthur Sonzogni . unresolved

    ditto

    Line 8332, Patchset 3 (Latest): network::ParseConnectionAllowlist(*required_connection_allowlist_, url);
    Arthur Sonzogni . unresolved

    rule of two.

    File content/browser/renderer_host/render_frame_host_impl.cc
    Line 16671, Patchset 3 (Latest): // Store the required Connection-Allowlist (used when this frame embeds a
    Arthur Sonzogni . unresolved

    document

    File services/network/public/cpp/connection_allowlist_parser.cc
    Line 150, Patchset 3 (Latest): return ParseHeader(header_value, response_url);
    Arthur Sonzogni . unresolved

    Consider rename this ParseConnectionAllowlist and not introducing a new middleman function with no added value.

    File third_party/blink/public/mojom/frame/frame.mojom
    Line 242, Patchset 3 (Latest): string? required_connection_allowlist;
    Arthur Sonzogni . unresolved

    If possible, we would prefer the parsed value so that we don't have to parse it in C++ in the browser process.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Adam Rice
    • Andrew Verge
    Gerrit-Attention: Adam Rice <ri...@chromium.org>
    Gerrit-Comment-Date: Thu, 11 Jun 2026 08:47:52 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Mike West (Gerrit)

    unread,
    6:30 AM (1 hour ago) 6:30 AM
    to Giovanni Del Valle, Chromium LUCI CQ, Dan Clark, Dominic Farolino, Chromium IPC Reviews, Alex Gough, Andrew Verge, Brandon Maslen, Adam Rice, Arthur Sonzogni, chromium...@chromium.org, alexmo...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, creis...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, navigation...@chromium.org, network-ser...@chromium.org
    Attention needed from Adam Rice, Andrew Verge, Brandon Maslen, Dan Clark, Dominic Farolino and Giovanni Del Valle

    Mike West added 1 comment

    Patchset-level comments
    Mike West . resolved

    Hi Giovanni! Thanks for this submission. I'll dig into some detail of the CL shortly, but first I'd suggest that it would be best for you, Andrew, and I to align on the implementation and behavior with regard to connection allowlists before you loop in all the reviewers for specific areas of the codebase. It's somewhat likely that some things will change, and it would be ideal to only ask for OWNERS stamps once if possible.

    I'd also note that this is a pretty large change, and does more than a few things at once. It might be easier to review if you split it up. For example, you could split the parsing changes in //services/network from the behavioral changes, allowing reviewers to focus on those parts they're likely to know best and have the strongest opinions about.

    I'd also also note that since the behavior we're aiming for isn't yet well defined and specified, it would be ideal to put in another runtime enabled feature for this functionality, separate from the existing `ConnectionAllowlist` flag as we might want to keep iterating on this piece even while shipping the rest.

    I'll provide more detailed feedback shortly. Thanks!

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Adam Rice
    • Andrew Verge
    • Brandon Maslen
    • Dan Clark
    • Dominic Farolino
    • Giovanni Del Valle
    Gerrit-Attention: Dan Clark <dan...@microsoft.com>
    Gerrit-Attention: Adam Rice <ri...@chromium.org>
    Gerrit-Comment-Date: Thu, 11 Jun 2026 10:29:43 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages