The popup should not persist like the background page  - think of it like a
new tab that is closed when the popup is not being shown. Are you seeing
that the number of active views shown on the chrome://extensions page keeps
increasing the more times you hit the browser action?




On Thu, Dec 10, 2009 at 6:20 AM, JarekP <ja...@pendowski.com> wrote:

> 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<chromium-extensions%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/chromium-extensions?hl=en.
>
>
>

--

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