4 ms·
For any Extension developers, there are some workarounds to avoid asking for the "tabs" permission. If you just need to know when a tab is visible for your con
by cickpass_broken 14y ago
For any Extension developers, there are some workarounds to avoid asking for the "tabs" permission.
If you just need to know when a tab is visible for your content scripts to do things, use the Page Visibility API[1].
If you want your Extensions background scripts to notify all content scripts of something, you can rely on `chrome.storage.onChanged` event. The storage API does not warn users about permissions[2]
If anyone's interested in code samples, I could through some snippets in a gist.
[1] http://www.w3.org/TR/2011/WD-page-visibility-20110602/#sec-page-visibility http://www.w3.org/TR/2011/WD-page-visibility-20110602/#sec-p...
[2] http://developer.chrome.com/extensions/permission_warnings.html#nowarning http://developer.chrome.com/extensions/permission_warnings.h...