On Dec 27, 9:13 pm, Aaron Boodman <[email protected]> wrote:
> 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 towww.google.comin 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.
>
I was setting permissions, but not correctly: I needed an * at the end
of the URLs.
> 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.
You're absolutely right, of course, and I usually am able to provide
code snippets, but in this case, I had no idea what to clip out.
Besides, I did think that this was a bug in extensions because the
behavior was so strange.
>
> 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.
>
It makes sense, now that you mention it, because there needs to be a
way for the windows to communicate with each other.

Thank you very much for debugging my extension for me. I'll be better
prepared next time when I come to the group for help.
> - 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