Skip to content

Comments

Removing "tabs" permission (firefox)#21

Merged
ettoolong merged 1 commit intoettoolong:masterfrom
denilsonsa:patch-2
Jul 16, 2020
Merged

Removing "tabs" permission (firefox)#21
ettoolong merged 1 commit intoettoolong:masterfrom
denilsonsa:patch-2

Conversation

@denilsonsa
Copy link
Contributor

According to the documentation, tabs permission is only needed when reading URL, title or favicon from a tab. None of this is required for this extension, so this permission can be safely removed. After this change, the browser will tell the user this extension doesn't need any special permission.

If this extension ever needs such kind of privilege, it should instead declare activeTab permission, that grants extra access only to the current tab and only when the extension is used.

Bonus: for convenience, I've also bumped the version number to 0.1.0.

This commit is the firefox version of the pull-request #20

Sidenote: it would be nice to merge both firefox and chrome codebases into a single branch.

According to the documentation, `tabs` permission is only needed when reading URL, title or favicon from a tab. None of this is required for this extension, so this permission can be safely removed. After this change, the browser will tell the user this extension doesn't need any special permission.

If this extension ever needs such kind of privilege, it should instead declare `activeTab` permission, that grants extra access only to the current tab and only when the extension is used.

* https://developer.chrome.com/extensions/windows
* https://developer.chrome.com/extensions/tabs
* https://developer.chrome.com/extensions/activeTab
* https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs
* https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/permissions#activeTab_permission

Bonus: for convenience, I've also bumped the version number to 0.1.0.

This commit is the firefox version of the pull-request #20

Sidenote: it would be nice to merge both firefox and chrome codebases into a single branch.
@ettoolong ettoolong merged commit 208737f into ettoolong:master Jul 16, 2020
@ettoolong
Copy link
Owner

v0.1.0 updated, thanks.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants