terminalPrivate: restrict setPrefs to Terminal SWA [chromium/src : main]

0 views
Skip to first unread message

Joel Hockey (Gerrit)

unread,
Jul 20, 2026, 8:15:16 PM (24 hours ago) Jul 20
to maciek swiech, Joel Hockey, Keigo Oka, Mike Frysinger, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
Attention needed from Keigo Oka and maciek swiech

Joel Hockey voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • Keigo Oka
  • maciek swiech
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not 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: I7d05f30e535623109844f3b77dcc664ece88e6fb
Gerrit-Change-Number: 8122798
Gerrit-PatchSet: 2
Gerrit-Owner: maciek swiech <drmas...@google.com>
Gerrit-Reviewer: Joel Hockey <joelh...@chromium.org>
Gerrit-Reviewer: Keigo Oka <o...@chromium.org>
Gerrit-Reviewer: maciek swiech <drmas...@google.com>
Gerrit-CC: Mike Frysinger <vap...@chromium.org>
Gerrit-Attention: Keigo Oka <o...@chromium.org>
Gerrit-Attention: maciek swiech <drmas...@google.com>
Gerrit-Comment-Date: Tue, 21 Jul 2026 00:14:44 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Keigo Oka (Gerrit)

unread,
1:45 AM (18 hours ago) 1:45 AM
to maciek swiech, Joel Hockey, Mike Frysinger, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
Attention needed from maciek swiech

Keigo Oka voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • maciek swiech
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: I7d05f30e535623109844f3b77dcc664ece88e6fb
Gerrit-Change-Number: 8122798
Gerrit-PatchSet: 2
Gerrit-Owner: maciek swiech <drmas...@google.com>
Gerrit-Reviewer: Joel Hockey <joelh...@chromium.org>
Gerrit-Reviewer: Keigo Oka <o...@chromium.org>
Gerrit-Reviewer: maciek swiech <drmas...@google.com>
Gerrit-CC: Mike Frysinger <vap...@chromium.org>
Gerrit-Attention: maciek swiech <drmas...@google.com>
Gerrit-Comment-Date: Tue, 21 Jul 2026 05:44:58 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Mike Frysinger (Gerrit)

unread,
2:03 AM (18 hours ago) 2:03 AM
to maciek swiech, Keigo Oka, Joel Hockey, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
Attention needed from maciek swiech

Mike Frysinger voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • maciek swiech
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: I7d05f30e535623109844f3b77dcc664ece88e6fb
Gerrit-Change-Number: 8122798
Gerrit-PatchSet: 2
Gerrit-Owner: maciek swiech <drmas...@google.com>
Gerrit-Reviewer: Joel Hockey <joelh...@chromium.org>
Gerrit-Reviewer: Keigo Oka <o...@chromium.org>
Gerrit-Reviewer: Mike Frysinger <vap...@chromium.org>
Gerrit-Reviewer: maciek swiech <drmas...@google.com>
Gerrit-Attention: maciek swiech <drmas...@google.com>
Gerrit-Comment-Date: Tue, 21 Jul 2026 06:03:21 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

maciek swiech (Gerrit)

unread,
11:41 AM (8 hours ago) 11:41 AM
to Mike Frysinger, Keigo Oka, Joel Hockey, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org

maciek swiech 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: I7d05f30e535623109844f3b77dcc664ece88e6fb
Gerrit-Change-Number: 8122798
Gerrit-PatchSet: 2
Gerrit-Owner: maciek swiech <drmas...@google.com>
Gerrit-Reviewer: Joel Hockey <joelh...@chromium.org>
Gerrit-Reviewer: Keigo Oka <o...@chromium.org>
Gerrit-Reviewer: Mike Frysinger <vap...@chromium.org>
Gerrit-Reviewer: maciek swiech <drmas...@google.com>
Gerrit-Comment-Date: Tue, 21 Jul 2026 15:41:39 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Chromium LUCI CQ (Gerrit)

unread,
11:46 AM (8 hours ago) 11:46 AM
to maciek swiech, Mike Frysinger, Keigo Oka, Joel Hockey, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org

Chromium LUCI CQ submitted the change

Change information

Commit message:
terminalPrivate: restrict setPrefs to Terminal SWA

The only writable pref, kGuestOsTerminalSettings, drives Terminal SWA
state such as hterm settings and shelf shortcut menu items, so setPrefs
is now rejected for callers other than chrome-untrusted://terminal
(crosh and the allowlisted extension IDs no longer need to write it).

Add a browser test covering both the crosh (rejected) and terminal
(accepted) paths, and update the extension api test to expect the new
rejection for extension contexts.

PATCH GENERATED VIA AI
Bug: b:520191142
Test: unit test
Change-Id: I7d05f30e535623109844f3b77dcc664ece88e6fb
Reviewed-by: Mike Frysinger <vap...@chromium.org>
Reviewed-by: Keigo Oka <o...@chromium.org>
Commit-Queue: maciek swiech <drmas...@google.com>
Reviewed-by: Joel Hockey <joelh...@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1665521}
Files:
  • M chrome/browser/extensions/BUILD.gn
  • M chrome/browser/extensions/api/terminal/terminal_private_api.cc
  • M chrome/browser/extensions/api/terminal/terminal_private_browsertest.cc
  • M chrome/test/data/extensions/api_test/terminal/component_extension/test.js
Change size: M
Delta: 4 files changed, 53 insertions(+), 34 deletions(-)
Branch: refs/heads/main
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by Joel Hockey, +1 by Keigo Oka, +1 by Mike Frysinger
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: I7d05f30e535623109844f3b77dcc664ece88e6fb
Gerrit-Change-Number: 8122798
Gerrit-PatchSet: 3
Gerrit-Owner: maciek swiech <drmas...@google.com>
Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Reviewer: Joel Hockey <joelh...@chromium.org>
Gerrit-Reviewer: Keigo Oka <o...@chromium.org>
Gerrit-Reviewer: Mike Frysinger <vap...@chromium.org>
Gerrit-Reviewer: maciek swiech <drmas...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages