I am not sure if the following answer applies to your question, since
didn't really understand what exactly it is about.

Anyhow, check stopPropagation method for the focus event.

Apply it to your focus event in order to stop it from firing multiple
times (traversing the DOM).

Good luck.

On Jan 12, 9:28 am, windk <[email protected]> wrote:
> On focus event, my content script is searching for some properties in
> the DOM object of currently selected tab. If property found, it will
> send a message to background page to show "available" browser action
> icon. If property not found, show "unavailable" icon. The problem is
> that some web pages fire multiple focus events. If the last DOM dose
> not contain the property, my icon becomes "unavailable" although the
> web page has the property I'm looking for. Any suggestions? Thanks in
> advance.
-- 
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