Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extension permissions #14

Open
bershanskiy opened this issue Jul 23, 2022 · 0 comments
Open

Extension permissions #14

bershanskiy opened this issue Jul 23, 2022 · 0 comments

Comments

@bershanskiy
Copy link
Contributor

bershanskiy commented Jul 23, 2022

Extension manifest contains multiple permissions that it does not need and which generate extra warnings during installation. If you are interested, I can make a PR to remove these.

  • downloads (twice, for some reason)
    • Install warning: "Manage your downloads"
    • Alternative: initiate regular downloads from popup page context or by creating a new tab. No permissions required at all. Update: turns out, with this method Chrome automatically attempts to install CRX packages instead of just downloading them. This permission might indeed be necessary.
  • Hot permissions *://clients2.google.com/service/update2/crx* and *://clients2.googleusercontent.com/crx/download/*
    • Install warning: "Read and change your data on..."
    • Alternative: these are not necessary if extension uses download method mentioned above.
  • tabs
    • Install warning: "Read your browsing history"
    • Alternative: use activeTab permission which is granted when user activates extension (opens extension popup or presses a shortcut). This permission does not produce any warnings at all.

This extension can be rewritten to require no special permissions and to generate no warnings upon installation only downloads permission.

Edit: I implemented proposed ideas in this MV3 prototype and it works with only downloads permission and allows you to download extensions from Chrome Web Store and Edge Addons store.

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

No branches or pull requests

1 participant