Skip to content

fix: honor tabs permission for url and title in tabs.query results - #53353

Merged
MarshallOfSound merged 1 commit into
45-x-yfrom
trop/45-x-y-bp-fix-honor-tabs-permission-for-url-and-title-in-tabs-query-results-1788224369392
Sep 1, 2026
Merged

MarshallOfSound merged 1 commit into
45-x-yfrom
trop/45-x-y-bp-fix-honor-tabs-permission-for-url-and-title-in-tabs-query-results-1788224369392

Conversation

@trop

@trop trop Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Backport of #52597

See that PR for details.

Notes: Fixed chrome.tabs.query() returning tab url and title to extensions without the tabs permission or host access, aligning with tabs.get.

tabs.get and tabs.update only expose the privileged url and title
properties when the extension has the tabs permission or host access,
matching Chrome and our own tabs schema docs, but tabs.query populated
them unconditionally. Share one CanAccessPrivilegedTabFields check across
query, get and update, and evaluate it against the last committed URL.

Co-authored-by: Samuel Attard <[email protected]>
@trop
trop Bot requested a review from MarshallOfSound September 1, 2026 00:59
@trop trop Bot added 45-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Sep 1, 2026
@MarshallOfSound
MarshallOfSound enabled auto-merge (squash) September 1, 2026 01:02
@MarshallOfSound
MarshallOfSound merged commit 16e6103 into 45-x-y Sep 1, 2026
95 checks passed
@MarshallOfSound
MarshallOfSound deleted the trop/45-x-y-bp-fix-honor-tabs-permission-for-url-and-title-in-tabs-query-results-1788224369392 branch September 1, 2026 02:24
@release-clerk

release-clerk Bot commented Sep 1, 2026

Copy link
Copy Markdown

Release Notes Persisted

Fixed chrome.tabs.query() returning tab url and title to extensions without the tabs permission or host access, aligning with tabs.get.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

45-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant