Block extension from specific hosts #701
Labels
needs-triage: chrome
Chrome needs to assess this issue for the first time
needs-triage: firefox
Firefox needs to assess this issue for the first time
supportive: safari
Supportive from Safari
Problem
Extensions host permissions are not granular enough:
permissions.request()
), there's no way to remove specific websites1host_permissions
orcontent_scripts.*.matches
), there's no way to withdraw it2Proposal: permission block list
Browsers already have the ability to disable some hosts, but this information is not clearly exposed to the extension author nor can it be expanded.
The extension could then ask for removal:
browser.permissions.blocked.remove(['https://banking.example.com/*'])
browser.permissions.blocked.add
, the action will proceed automatically.This ability could also be used by the extension author to enable/disable its own content scripts and user scripts as necessary, for example to:
Related
This was proposed in some form in #653, but this proposal applies to permissions more generically. Adding a website to the block list would also disable the injection of its content scripts.
#700 also has some overlap in capability, but intent and possibilities are very different.
Footnotes
Safari can do so via browser UI (screenshot), but not via API ↩
Safari and Chrome can do so via browser UI (screenshot), but not via API ↩
The text was updated successfully, but these errors were encountered: