Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Upgrading permissions of a Chrome Extensions

We currently have an extension in the Chrome Web Store with many users. We currently request access to foo.site.com but now we'd like to update our permissions so that we can get bar.site.com.

As I understand it now, if we push a new update (new extension version to the Chrome Web Store) requiring these two permissions, existing users will have their extension disabled until they manually re-enable. New users who download the extension after the update will be fine and have both permissions. However, disabling our current users is not an option.

Any way to get around this?

We've looked into optional permissions, which would solve the issue for existing users (we would just ask them to click a button to upgrade the permissions and be on our way). However for new users, they would not only have to install the extension but also accept the optional permissions which sucks. Is there any way for new users to accept all the permission (optional and required) at install time?

like image 881
aloo Avatar asked Nov 30 '12 20:11

aloo


People also ask

How do I change permissions on Google extensions?

If you right-click on one of your extensions' icons and hover “This can read and change site data”, you'll see three options that will allow you to quickly change the extension's permissions: When you click the extension. On the site you're currently on. On all sites.

How do I see Chrome extension permissions?

To view the permissions of any installed extension, unpacked or from the store, open chrome://extensions page and click the details button on that extension's card. The circled part is for API permissions.

How do I change ownership of a Chrome extension?

Transfers of ownership have to be done manually by someone internally. The extension's owner will need to send an email to the "chromium-extensions" group explaining the situation, and someone from the extensions team will get back with you relatively soon to get the details.


1 Answers

Yes, there is solution. You set the new permissions as optional, and then you request the permission before the user using the new feature. The is work 100%.

This is what you add to your manifest:

"permissions": ["tabs","http://*/*","https://*/*"], 

After that you can use:

chrome.permissions.request  

and

chrome.permissions.contains 
like image 150
Aminadav Glickshtein Avatar answered Sep 20 '22 16:09

Aminadav Glickshtein