I've made an extension that works with many pages by modifying them. I
decided that it should have preferences so that it could work only on
domains at which I want them to work. I've built that configuration
panel into browser_action popup page. To save settings I use
localStorage which as it turns out is separate for popup and
content_script - to make settings accessible to content_script which
is executed on every page I've established communication between popup
page and content_script by using chrome.extension.onRequest event on
popup page and chrome.extension.sendRequest on content_script.

It's all working fine but the problem is that each time I click on my
extension icon and the popup shows up I get new active view in
chrome://extensions.
I don't know if it's a bug or it's my fault somehow. The side effect
which I found also is that every time the content_script is executed
it sends request to every active view and therefore is executed
multiple times.

--

You received this message because you are subscribed to the Google Groups 
"Chromium-extensions" group.
To post to this group, send email to chromium-extensi...@googlegroups.com.
To unsubscribe from this group, send email to 
chromium-extensions+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/chromium-extensions?hl=en.


Reply via email to