Remove unnecessary tabs permission from Tab to the next extension#27
Merged
Conversation
Agent-Logs-Url: https://github.com/wh5a/chrome/sessions/993d77e5-d354-49f8-8b11-f9efeb6beebc Co-authored-by: wh5a <81014+wh5a@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Remove unnecessary tabs permission from Tab to the next extension
Remove unnecessary May 20, 2026
tabs permission from Tab to the next extension
wh5a
reviewed
May 20, 2026
| }, | ||
| "permissions": [ | ||
| "storage", | ||
| "tabs" |
Owner
There was a problem hiding this comment.
@copilot How does the extension rearrange tabs without this permission? Can you explain with links to the code?
Contributor
Author
There was a problem hiding this comment.
Good question. It still works because the extension only uses tab operations + non-sensitive tab fields, which are allowed without the tabs permission.
Code paths:
- Query tabs by window (no sensitive fields):
getTabs()→background.js#L49-L51 - Initial cache from all tabs (only stores
id+active):background.js#L62-L76 - Reorder newly created tab with
chrome.tabs.move(...):background.js#L149-L160 - Activate adjacent tab on close with
chrome.tabs.update(..., { active: true }):background.js#L166-L194
It does not read restricted fields like url, title, favIconUrl, etc., so broad tabs permission is unnecessary here. The permission change is in commit 012afc9.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Chrome Web Store flagged Tab to the next for excessive permissions: the extension requested
tabseven though its implemented behavior does not require that permission. This PR narrows requested access to align with policy.Permission scope reduction
tab-to-the-right/manifest.jsonto removetabsfrompermissions.storageunchanged.Behavioral impact