This repo demonstrates what happens when you add a content script to an extension that is published on the Chrome Web Store.
Warnings for new content scripts or content script match patterns are not documented in Google's Chrome extension docs.
Our supposition is:
- Given that an extension is published on the Chrome Web Store
- and a user has installed that extension
- When you add a content script that matches a broader range of urls
- Then Chrome will require the user to approve these changes
We will conduct an experiment to verify this, following this method after each iteration:
- Pack and install the extension using the Chrome extensions dashboard
- Document the warnings
- Create a simple extension with a content script with narrow host permissions
- Broaden the content script host permissions
- Add a second content script with host permissions for all urls
Our supposition was correct. After each update, the extension was disabled and Chrome displayed a warning with the new permissions, requiring user consent before re-enabling the extension.