On Sun, Dec 27, 2009 at 7:42 PM, FractalBob <[email protected]> wrote:
> My extension is called OpenComments; it's in the gallery if you want
> to try it out. Here's what to do:
>
> 1. After installing the extension, open two Chrome windows each with 1
> tab. The browser action icon in both windows should be a red circle
> with a line through it.
> 2. Navigate to www.google.com in the first window. The browser action
> icon should turn red.
> 3. Note that the icon in the second window has suddenly turned red
> also.

The icon never changes away from the red circle with a line through it
for me. There are some network errors in the console. Looks like maybe
you aren't requesting permission to the origin you're requesting.

http://code.google.com/chrome/extensions/xhr.html

> I can provide code (a lot of it, I'm afraid), but my question is kind
> of basic and shouldn't require any code. Namely, why should something
> happening in one window affect another? I didn't explicitly do
> something that should change anything in the second window.

The usual way to ask for support on this kind of group is to provide
some simple sample code that shows how you are trying to use the API.
That way people don't have to debug your entire program, just a small
example of the problem.

The browser action API can be used to change the icon per-tab or
globally. If you pass a tabId to setIcon(), it changes the icon for
all tabs. If you don't, it changes it for all tabs. Looks like you are
using the global form.

- a

--

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


Reply via email to