Add null check on TabLifecycleUnitExternal before usage [chromium/src : main]

0 views
Skip to first unread message

Devlin Cronin (Gerrit)

unread,
Feb 4, 2026, 4:16:22 PMFeb 4
to Utkarsh Patankar, Patrick Monette, Devlin Cronin, Chromium LUCI CQ, AyeAye, chrome-gr...@chromium.org, extension...@chromium.org, chromium-a...@chromium.org
Attention needed from Patrick Monette and Utkarsh Patankar

Devlin Cronin added 1 comment

File chrome/browser/extensions/api/tabs/tabs_api.cc
Line 2328, Patchset 5: if (!tab_lifecycle_unit_external) {
Devlin Cronin . unresolved

in which scenario can this happen? Can we:
a) Document it in a comment
b) Add a regression test?

Utkarsh Patankar

I'm not sure in which scenario this can happen but I was able to add a regression test to simulate this scenario and test the fix.

Devlin Cronin

I think we should figure out if this is something that can happen in Chromium today (where extensions are only supported in android on the experimental desktop android build). If it is an issue there, we should fix it (and the fix might be different). Is this is only something that can happen because of the ways in which Edge leverages this code, I'm not sure it makes sense to upstream this patch.

Calder, you recently chimed in on the [similar CL here](https://chromium-review.googlesource.com/c/chromium/src/+/7509428); do you happen to know if we always expect TabLifecycle to be associated with a WebContents on desktop android?

Open in Gerrit

Related details

Attention is currently required from:
  • Patrick Monette
  • Utkarsh Patankar
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: Ib725f1cdf530eb45ed7e2d11dfa3ac02e89c7dc9
Gerrit-Change-Number: 7532728
Gerrit-PatchSet: 7
Gerrit-Owner: Utkarsh Patankar <utk...@microsoft.com>
Gerrit-Reviewer: Devlin Cronin <rdevlin...@chromium.org>
Gerrit-Reviewer: Patrick Monette <pmon...@chromium.org>
Gerrit-Reviewer: Utkarsh Patankar <utk...@microsoft.com>
Gerrit-Attention: Utkarsh Patankar <utk...@microsoft.com>
Gerrit-Attention: Patrick Monette <pmon...@chromium.org>
Gerrit-Comment-Date: Wed, 04 Feb 2026 21:16:11 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Devlin Cronin <rdevlin...@chromium.org>
Comment-In-Reply-To: Utkarsh Patankar <utk...@microsoft.com>
satisfied_requirement
unsatisfied_requirement
open
diffy
Reply all
Reply to author
Forward
0 new messages