Smee
Smee

Reputation: 974

Do changing background permissions deactivate an existing chrome extension?

Question: Does Chrome deactivate an extension if the permissions only change to include background for background pages?

Backstory: I'm updating an existing chrome extension (that currently doesn't have a background page) to include one, and as such, I need to update the permissions inside the manifest.json.

I'm worried that Chrome will see the new permission in the updated extension and disable it for the existing users until they confirm the permissions update. However, when testing the new permissions, it doesn't seem that the permissions dialogue box that would show is any different (it just contains a list of URLs, just as before).

Upvotes: 1

Views: 768

Answers (1)

Akansh
Akansh

Reputation: 1785

Yes, Chrome disabled the extensions and show a popup mentioning the same. User has to re-enable the extension to use it again. To prevent this, you can use 'optional_permission' in manifest.json and can dynamically request user to accept additional permissions. This prevents default disabling.

You can read more about this here: https://developer.chrome.com/extensions/permissions

Upvotes: 3

Related Questions