Pass the AgentClusterKey from the browser process [chromium/src : main]

0 views
Skip to first unread message

AI Code Reviewer (Gerrit)

unread,
Oct 14, 2025, 12:08:41 PMOct 14
to Camille Lamy, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, Kentaro Hara, Nate Chapin, Raphael Kubo da Costa, Hiroki Nakagawa, alexmo...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, blink-work...@chromium.org, creis...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, ipc-securi...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, navigation...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org

AI Code Reviewer added 3 comments

File third_party/blink/renderer/core/execution_context/agent.h
Line 100, Patchset 2 (Latest): AgentClusterKey* agent_cluster_key);
AI Code Reviewer . unresolved

Blink Style Guide: Naming - May leave obvious parameter names out of function declarations. The parameter name `agent_cluster_key` can be omitted from the function declaration in the header file as the type `AgentClusterKey*` is self-descriptive.

_To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
**Done** | **Won't fix**: reason | **b/<bug_id>** | **Invalid:** reason

This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent).AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve.[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_

File third_party/blink/renderer/core/execution_context/window_agent.h
Line 38, Patchset 2 (Latest): WindowAgent(AgentGroupScheduler& agent_group_scheduler,
AI Code Reviewer . unresolved

Blink Style Guide: Naming - May leave obvious parameter names out of function declarations. The parameter name `agent_cluster_key` can be omitted from the function declaration in the header file as the type `AgentClusterKey*` is self-descriptive.

_To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
**Done** | **Won't fix**: reason | **b/<bug_id>** | **Invalid:** reason

This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent).AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve.[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_

File third_party/blink/renderer/core/execution_context/window_agent_factory.h
Line 42, Patchset 2 (Latest): WindowAgent* GetAgentForAgentClusterKey(
AI Code Reviewer . unresolved

Blink Style Guide: Prefer enums or StrongAliases to bare bools for function parameters. Consider using an enum for `has_potential_universal_access_privilege` to improve clarity at call sites, for example: `enum class UniversalAccessPrivilege { kNo, kYes };`.

_To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
**Done** | **Won't fix**: reason | **b/<bug_id>** | **Invalid:** reason

This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent).AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve.[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_

Open in Gerrit

Related details

Attention set is empty
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: Ibb98071005816e53e766fbcbe3fbcb642ee17592
Gerrit-Change-Number: 7041044
Gerrit-PatchSet: 2
Gerrit-Owner: Camille Lamy <cl...@chromium.org>
Gerrit-Reviewer: Camille Lamy <cl...@chromium.org>
Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
Gerrit-CC: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-CC: Kentaro Hara <har...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
Gerrit-Comment-Date: Tue, 14 Oct 2025 16:08:36 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Camille Lamy (Gerrit)

unread,
Oct 24, 2025, 10:38:57 AM (9 days ago) Oct 24
to AI Code Reviewer, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, Kentaro Hara, Nate Chapin, Raphael Kubo da Costa, Hiroki Nakagawa, alexmo...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, blink-work...@chromium.org, creis...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, ipc-securi...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, navigation...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org

Camille Lamy added 3 comments

File third_party/blink/renderer/core/execution_context/agent.h
Line 100, Patchset 2: AgentClusterKey* agent_cluster_key);
AI Code Reviewer . resolved

Blink Style Guide: Naming - May leave obvious parameter names out of function declarations. The parameter name `agent_cluster_key` can be omitted from the function declaration in the header file as the type `AgentClusterKey*` is self-descriptive.

_To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
**Done** | **Won't fix**: reason | **b/<bug_id>** | **Invalid:** reason

This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent).AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve.[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_

Camille Lamy

Done

File third_party/blink/renderer/core/execution_context/window_agent.h
Line 38, Patchset 2: WindowAgent(AgentGroupScheduler& agent_group_scheduler,
AI Code Reviewer . resolved

Blink Style Guide: Naming - May leave obvious parameter names out of function declarations. The parameter name `agent_cluster_key` can be omitted from the function declaration in the header file as the type `AgentClusterKey*` is self-descriptive.

_To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
**Done** | **Won't fix**: reason | **b/<bug_id>** | **Invalid:** reason

This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent).AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve.[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_

Camille Lamy

Done

File third_party/blink/renderer/core/execution_context/window_agent_factory.h
Line 42, Patchset 2: WindowAgent* GetAgentForAgentClusterKey(
AI Code Reviewer . resolved

Blink Style Guide: Prefer enums or StrongAliases to bare bools for function parameters. Consider using an enum for `has_potential_universal_access_privilege` to improve clarity at call sites, for example: `enum class UniversalAccessPrivilege { kNo, kYes };`.

_To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
**Done** | **Won't fix**: reason | **b/<bug_id>** | **Invalid:** reason

This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent).AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve.[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_

Camille Lamy

Acknowledged

Open in Gerrit

Related details

Attention set is empty
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: Ibb98071005816e53e766fbcbe3fbcb642ee17592
    Gerrit-Change-Number: 7041044
    Gerrit-PatchSet: 12
    Gerrit-Owner: Camille Lamy <cl...@chromium.org>
    Gerrit-Reviewer: Camille Lamy <cl...@chromium.org>
    Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
    Gerrit-CC: Hiroki Nakagawa <nhi...@chromium.org>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Nate Chapin <jap...@chromium.org>
    Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
    Gerrit-Comment-Date: Fri, 24 Oct 2025 14:38:44 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Camille Lamy (Gerrit)

    unread,
    Oct 24, 2025, 11:27:58 AM (9 days ago) Oct 24
    to Alex Moshchuk, Daniel Cheng, AI Code Reviewer, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, Kentaro Hara, Nate Chapin, Raphael Kubo da Costa, Hiroki Nakagawa, alexmo...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, blink-work...@chromium.org, creis...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, ipc-securi...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, navigation...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org
    Attention needed from Alex Moshchuk and Daniel Cheng

    Camille Lamy added 4 comments

    Patchset-level comments
    File-level comment, Patchset 13 (Latest):
    Camille Lamy . resolved

    @Alex: PTAL. This is moving the agent cluster decision in the browser process and passing it to the renderer process. I have taken the option to try to use the AgentClusterKey from SiteInfo as much as possible, as I think we want to move to using it most of the time eventually. However, if we want to keep closer to the current code, we could also just check whether we have an origin-keyed/site-keyed/COI key and always update the origin/site of the key.

    File content/browser/renderer_host/navigation_request.cc
    Line 4011, Patchset 13 (Latest): // Now build the appropriate AgentClusterKey for commit, starting with the
    Camille Lamy . unresolved

    I have been considering moving all the code below to SiteInfo, as it essentially undoes all the special cases of GetAgentClusterKeyForURL, so maybe having the two in the same place to compare would be nice.

    Line 4136, Patchset 13 (Latest): bool is_navigation_to_existing_entry =
    Camille Lamy . unresolved

    I still have one test failing for this specific case. I think it's a case of a subframe navigation to an existing subframe NavigationEntry. I'm not sure how to write the condition for it.

    File third_party/blink/public/web/web_agent_cluster_key.h
    Line 23, Patchset 13 (Latest): mojom::CrossOriginIsolationMode cross_origin_isolation_mode)
    Camille Lamy . unresolved

    The presubmit checks complain about non-Blink mojom usage, but since this is the public interface that seems to be the correct thing to do to eventually translate into Blink mojom types. I'm not sure where I need to authorize this as I would have imagined that third_party/blink/public/web would not be covered by the check.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Alex Moshchuk
    • Daniel Cheng
    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: Ibb98071005816e53e766fbcbe3fbcb642ee17592
      Gerrit-Change-Number: 7041044
      Gerrit-PatchSet: 13
      Gerrit-Owner: Camille Lamy <cl...@chromium.org>
      Gerrit-Reviewer: Alex Moshchuk <ale...@chromium.org>
      Gerrit-Reviewer: Camille Lamy <cl...@chromium.org>
      Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
      Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
      Gerrit-CC: Hiroki Nakagawa <nhi...@chromium.org>
      Gerrit-CC: Kentaro Hara <har...@chromium.org>
      Gerrit-CC: Nate Chapin <jap...@chromium.org>
      Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
      Gerrit-Attention: Alex Moshchuk <ale...@chromium.org>
      Gerrit-Attention: Daniel Cheng <dch...@chromium.org>
      Gerrit-Comment-Date: Fri, 24 Oct 2025 15:27:41 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Daniel Cheng (Gerrit)

      unread,
      Oct 27, 2025, 7:09:19 PM (6 days ago) Oct 27
      to Camille Lamy, Alex Moshchuk, Daniel Cheng, AI Code Reviewer, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, Kentaro Hara, Nate Chapin, Raphael Kubo da Costa, Hiroki Nakagawa, alexmo...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, blink-work...@chromium.org, creis...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, ipc-securi...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, navigation...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org
      Attention needed from Alex Moshchuk and Camille Lamy

      Daniel Cheng added 10 comments

      File content/browser/service_worker/service_worker_test_utils.cc
      Line 284, Patchset 13 (Latest): commit_params->agent_cluster_key = blink::mojom::AgentClusterKey::New();
      Daniel Cheng . unresolved

      Should `blink::CreateCommitNavigationParams()` also just set this? Seems like it's not really optional anyway.

      (Though I guess it becomes messy if we make the agent cluster key a union as I suggested below–does the agent cluster key actually have three distinct states? Site, origin, and neither? Though based off the WebAgentClusterKey class... I'm not actually sure)

      File content/public/test/render_view_test.cc
      Line 758, Patchset 13 (Latest): commit_params->agent_cluster_key = blink::mojom::AgentClusterKey::New();
      Daniel Cheng . resolved

      And that would help with some of the boilerplate elsewhere I think

      File third_party/blink/public/mojom/frame/agent_cluster_key.mojom
      Line 10, Patchset 13 (Latest):// Indicates if cross-origin isolation gives access to cross-origin isolated
      Daniel Cheng . unresolved

      Nit: extra space

      Line 24, Patchset 13 (Latest): // when cross-origin sioaltion is enabled by COOP + COEP. When cross-origin
      Daniel Cheng . unresolved

      Nit: isolation.

      Line 42, Patchset 13 (Latest): // Additionally, the AgentClusterKey might have a CrossOriginIsolationKey is
      Daniel Cheng . unresolved

      if

      Line 37, Patchset 13 (Latest): // The AgentClusterKey has either a site URL or an origin. In the first case,
      // the AgentClusterKey is site keyed, in the second case, it is origin keyed.
      url.mojom.Url? url;
      url.mojom.Origin? origin;

      // Additionally, the AgentClusterKey might have a CrossOriginIsolationKey is
      // the context is cross-origin isolated. In this case, the AgentClusterKey
      // must be origin-keyed.
      // https://wicg.github.io/document-isolation-policy/#coi-agent-cluster-key
      CrossOriginIsolationKey? isolation_key;
      Daniel Cheng . unresolved

      It seems like maybe this should be a union consisting of either a `url.mojom.Url` or a `OriginKeyedAgentClusterKey` struct containing a `url.mojom.Origin` and a `CrossOriginIsolationKey` (not sure if the COI key is required in the case of origin-keyed origins)

      File third_party/blink/public/web/web_agent_cluster_key.h
      Line 40, Patchset 13 (Latest): std::optional<WebCrossOriginIsolationKey> isolation_key;
      Daniel Cheng . unresolved

      As noted above, can we restructure this so it's a variant of a WebURL and a struct containing a WebSecurityOrigin and an optional key?

      Line 23, Patchset 13 (Latest): mojom::CrossOriginIsolationMode cross_origin_isolation_mode)
      Camille Lamy . unresolved

      The presubmit checks complain about non-Blink mojom usage, but since this is the public interface that seems to be the correct thing to do to eventually translate into Blink mojom types. I'm not sure where I need to authorize this as I would have imagined that third_party/blink/public/web would not be covered by the check.

      Daniel Cheng

      I agree this is fine; can you link me to an example of the presubmit warning?

      File third_party/blink/renderer/core/execution_context/agent_cluster_key.h
      Line 33, Patchset 13 (Latest): AgentClusterKey();
      Daniel Cheng . unresolved

      What does this create by default? Is it site keyed, origin keyed, or neither?

      File third_party/blink/renderer/platform/weborigin/security_origin.h
      Line 414, Patchset 13 (Latest): // the custom HashTraits defined at the end of this file.
      Daniel Cheng . unresolved

      I don't think we should have both--or at the very least, one should delegate to the other.
      Can you file a TODO to clean this up? Is there a failing test someone can run when they are trying to figure out what's going wrong here?

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Alex Moshchuk
      • Camille Lamy
      Gerrit-Attention: Camille Lamy <cl...@chromium.org>
      Gerrit-Comment-Date: Mon, 27 Oct 2025 23:09:10 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Camille Lamy <cl...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Alex Moshchuk (Gerrit)

      unread,
      Oct 31, 2025, 8:20:11 PM (2 days ago) Oct 31
      to Camille Lamy, Code Review Nudger, Daniel Cheng, AI Code Reviewer, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, Kentaro Hara, Nate Chapin, Raphael Kubo da Costa, Hiroki Nakagawa, alexmo...@chromium.org, blink-re...@chromium.org, blink-revie...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, blink-work...@chromium.org, creis...@chromium.org, gavinp...@chromium.org, horo+...@chromium.org, ipc-securi...@chromium.org, kinuko+ser...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, navigation...@chromium.org, servicewor...@chromium.org, shimazu+se...@chromium.org
      Attention needed from Camille Lamy

      Alex Moshchuk added 11 comments

      Patchset-level comments
      Alex Moshchuk . resolved

      Thanks! I'll defer to Daniel on the blink changes; a few comments on the content side.

      File content/browser/agent_cluster_key.h
      Line 36, Patchset 13 (Latest):class CONTENT_EXPORT AgentClusterKey {
      Alex Moshchuk . unresolved

      I guess I'm a bit worried that we now have 3-4 places that define AgentClusterKeys (here, mojo, WebAgentClusterKey, and blink::AgentClusterKey), and they might get out of sync. Maybe it's intentional that the browser-side and renderer-side keys aren't going to be identical (e.g., the renderer doesn't need oac_status_), though we could at least add comments reminding what else must be updated when someone wants to add something to the AgentClusterKey? And maybe we could use LINT.IfChange to enforce that things stay updated together where it makes sense?

      Line 35, Patchset 13 (Latest):// SiteInfo, as it will only duplicate the information in AgentClusterKey.
      Alex Moshchuk . unresolved

      Might be worth updating this documentation to mention the other definitions of agent cluster key used in the renderer (and for sending this key to the renderer), and how they differ practically from this key.

      File content/browser/renderer_host/navigation_request.cc
      Line 4011, Patchset 13 (Latest): // Now build the appropriate AgentClusterKey for commit, starting with the
      Camille Lamy . unresolved

      I have been considering moving all the code below to SiteInfo, as it essentially undoes all the special cases of GetAgentClusterKeyForURL, so maybe having the two in the same place to compare would be nice.

      Alex Moshchuk

      Yes, it might be worth moving this code into a separate helper, and maybe SiteInfo is a better place for it, as this function is getting long. It might be worth keeping the focus of this function on the OAC stuff as before, and then computing the key_to_commit as a separate step.

      One high-level concern I have with the content/browser side of this CL is indeed about introducing another place for handling these special cases, and moreover trying to reconstruct how we computed a SiteInfo based on the AgentClusterKey after the fact, which seems fragile (and potentially hard to maintain for future changes to the process model). Do you think it could be better to compute both the agent cluster key for SiteInfo and the agent cluster key to send to the renderer in the same place in GetAgentClusterKeyForURL? Basically, have all the special cases in one place, but computing two keys? Or at least compute the should_update_origin_or_site bit there, so that we know that the site URL we ended up with in SiteInfo is a Chrome-process-model specific URL and not what the actual agent cluster key should be per spec.

      (I'm not sure this is better or even feasible, just curious if it's worth thinking about at all.)

      Line 4019, Patchset 13 (Latest): // isolation key. Currently, pages cross-origin isolated through COOP and COEP
      // are not given a cross-origin isolated AgentClusterKey. Override the
      Alex Moshchuk . unresolved

      It seems that this will be addressed by your https://chromium-review.googlesource.com/c/chromium/src/+/6516176? Will you be landing this CL before or after that?

      Line 4022, Patchset 13 (Latest): // the document already as a cross-origin isolated AgentClusterKey, which
      Alex Moshchuk . unresolved

      has

      Line 4122, Patchset 13 (Latest): origin.scheme())) {
      Alex Moshchuk . unresolved

      Is this to undo the case [here](https://source.chromium.org/chromium/chromium/src/+/main:content/browser/site_info.cc;l=791;drc=7ce25d3420a0eb77c46618536b3434f7b9ceef66)? Does it matter that this only applies to top-chrome WebUIs and not all WebUIs? Should it be more restricted to IsWebUIAndUsesTLDForProcessLockURL cases?

      Line 4129, Patchset 13 (Latest): should_update_origin_or_site = true;
      Alex Moshchuk . unresolved

      I guess we don't have this problem with features::kDefaultSiteInstanceGroups?

      Line 4134, Patchset 13 (Latest): // redirect causes the response URL to no longer match the original
      // SiteInstance. In that case, create a new AgentClusterKey.
      Alex Moshchuk . unresolved

      Is this actually intended behavior and not a bug? I think we try to disqualify the original SiteInstance in the NavigationEntry from being reused if it's no longer suitable for the redirected URL, with things like RenderFrameHostManager::CanUseDestinationInstance(). I'm surprised it would need its own condition here, as it seems like it might be violating our SiteInstance assignment rules.

      Line 4166, Patchset 13 (Latest): if (key_to_commit.IsSiteKeyed()) {
      Alex Moshchuk . unresolved

      Can there be some sort of conversion function to populate a mojo AgentClusterKey from a normal one, ideally in agent_cluster_key.*?

      File content/browser/renderer_host/render_process_host_impl.cc
      Line 3370, Patchset 13 (Latest): process_lock.agent_cluster_key().IsCrossOriginIsolated();
      Alex Moshchuk . unresolved

      Can this be cleaned up independently, or does it depend on something in this CL?

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Camille Lamy
      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: Ibb98071005816e53e766fbcbe3fbcb642ee17592
      Gerrit-Change-Number: 7041044
      Gerrit-PatchSet: 13
      Gerrit-Owner: Camille Lamy <cl...@chromium.org>
      Gerrit-Reviewer: Alex Moshchuk <ale...@chromium.org>
      Gerrit-Reviewer: Camille Lamy <cl...@chromium.org>
      Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
      Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
      Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
      Gerrit-CC: Hiroki Nakagawa <nhi...@chromium.org>
      Gerrit-CC: Kentaro Hara <har...@chromium.org>
      Gerrit-CC: Nate Chapin <jap...@chromium.org>
      Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
      Gerrit-Attention: Camille Lamy <cl...@chromium.org>
      Gerrit-Comment-Date: Sat, 01 Nov 2025 00:20:00 +0000
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy
      Reply all
      Reply to author
      Forward
      0 new messages