PoC: Skip extension initialization for per-navigation [chromium/src : main]

0 views
Skip to first unread message

Eriko Kurimoto (Gerrit)

unread,
Feb 19, 2026, 12:30:16 AM (yesterday) Feb 19
to Rakina Zata Amni, Chromium LUCI CQ, AyeAye, creis...@chromium.org, blink-...@chromium.org, blink-re...@chromium.org, kinuko...@chromium.org, extension...@chromium.org, alexmo...@chromium.org, chromium-a...@chromium.org, navigation...@chromium.org
Attention needed from Rakina Zata Amni

Eriko Kurimoto added 1 comment

Patchset-level comments
File-level comment, Patchset 2 (Latest):
Eriko Kurimoto . resolved

@rak...@chromium.org May I ask you for an initial review?
This cl aims to disable extension per-navigation only for our navigation, and I'm judging the navigation.

Open in Gerrit

Related details

Attention is currently required from:
  • Rakina Zata Amni
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: I25098837ab2055cd7cb7f39ae2f2e7958843cc3e
Gerrit-Change-Number: 7588414
Gerrit-PatchSet: 2
Gerrit-Owner: Eriko Kurimoto <elk...@chromium.org>
Gerrit-Reviewer: Eriko Kurimoto <elk...@chromium.org>
Gerrit-Reviewer: Rakina Zata Amni <rak...@chromium.org>
Gerrit-Attention: Rakina Zata Amni <rak...@chromium.org>
Gerrit-Comment-Date: Thu, 19 Feb 2026 05:29:54 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Eriko Kurimoto (Gerrit)

unread,
Feb 19, 2026, 12:43:29 AM (yesterday) Feb 19
to Rakina Zata Amni, Chromium LUCI CQ, AyeAye, creis...@chromium.org, blink-...@chromium.org, blink-re...@chromium.org, kinuko...@chromium.org, extension...@chromium.org, alexmo...@chromium.org, chromium-a...@chromium.org, navigation...@chromium.org
Attention needed from Rakina Zata Amni

Eriko Kurimoto added 1 comment

Patchset-level comments
Eriko Kurimoto . resolved

@rak...@chromium.org May I ask you for an initial review?
This cl aims to disable extension per-navigation only for our navigation, and I'm judging the navigation.

Eriko Kurimoto

ops, i sent the message in the middle of the text.

I'm judging the navigation by `IsInitialWebUINavigation`

Open in Gerrit

Related details

Attention is currently required from:
  • Rakina Zata Amni
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: I25098837ab2055cd7cb7f39ae2f2e7958843cc3e
Gerrit-Change-Number: 7588414
Gerrit-PatchSet: 2
Gerrit-Owner: Eriko Kurimoto <elk...@chromium.org>
Gerrit-Reviewer: Eriko Kurimoto <elk...@chromium.org>
Gerrit-Reviewer: Rakina Zata Amni <rak...@chromium.org>
Gerrit-Attention: Rakina Zata Amni <rak...@chromium.org>
Gerrit-Comment-Date: Thu, 19 Feb 2026 05:42:58 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Eriko Kurimoto <elk...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Rakina Zata Amni (Gerrit)

unread,
Feb 19, 2026, 10:53:42 PM (4 hours ago) Feb 19
to Eriko Kurimoto, Chromium LUCI CQ, AyeAye, creis...@chromium.org, blink-...@chromium.org, blink-re...@chromium.org, kinuko...@chromium.org, extension...@chromium.org, alexmo...@chromium.org, chromium-a...@chromium.org, navigation...@chromium.org
Attention needed from Eriko Kurimoto

Rakina Zata Amni added 5 comments

Patchset-level comments
Rakina Zata Amni . resolved

Thanks!

File chrome/browser/chrome_content_browser_client.cc
Line 6421, Patchset 2 (Latest): if (!skip_extensions) {
Rakina Zata Amni . unresolved

Is this still needed with the in-renderer resource loading flag?

File extensions/browser/extension_web_contents_observer.cc
Line 208, Patchset 2 (Latest):void ExtensionWebContentsObserver::ReadyToCommitNavigation(
Rakina Zata Amni . unresolved

I wonder if ReadyToCommit is a bit too close to commit. How long does the extension startup take on the renderer? Is it possible that would delay the commit? (If so maybe you should move it to DidStartNavigation?)

File extensions/browser/renderer_startup_helper.cc
Line 235, Patchset 2 (Latest): // We initialize extension on ReadyToCommitNavigation.
Rakina Zata Amni . unresolved

Doing this for every process can potentially slow done all process creations. I think you should only skip when the RPH is a topchrome (includes non-initial WebUI too) process. Currently we don't have a way to tell that, but we can change this [flag](https://source.chromium.org/chromium/chromium/src/+/main:content/browser/renderer_host/render_process_host_impl.cc;l=1575;drc=95ff298d19036fea0323de0cc8f4ba0921bd9d11) (which is currently wrong because if other topchrome creates the process first before initial WebUI) to be "is topchrome process" flag (which will be correctly set regardless of which topchrome navigates to it, which includes initial WebUI and non-initial WebUI).

File third_party/blink/public/mojom/navigation/navigation_params.mojom
Line 735, Patchset 2 (Latest): bool should_skip_extensions = false;
Rakina Zata Amni . unresolved

There's no need for this to be in the CommitNavigationParams since the renderer doesn't need the information. You can just save it as a member of NavigationRequest, or maybe even just expose `IsInitialWebUINavigation()`

Open in Gerrit

Related details

Attention is currently required from:
  • Eriko Kurimoto
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: I25098837ab2055cd7cb7f39ae2f2e7958843cc3e
    Gerrit-Change-Number: 7588414
    Gerrit-PatchSet: 2
    Gerrit-Owner: Eriko Kurimoto <elk...@chromium.org>
    Gerrit-Reviewer: Eriko Kurimoto <elk...@chromium.org>
    Gerrit-Reviewer: Rakina Zata Amni <rak...@chromium.org>
    Gerrit-Attention: Eriko Kurimoto <elk...@chromium.org>
    Gerrit-Comment-Date: Fri, 20 Feb 2026 03:53:21 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages