Preventing a Firefox Extension's load event from triggering across tabs

Posted by lgomez on Stack Overflow See other posts from Stack Overflow or by lgomez
Published on 2010-05-14T19:31:21Z Indexed on 2010/05/14 19:34 UTC
Read the original article Hit count: 258

Filed under:
|
|
|
|

Hi,

I've been working on a Firefox extension that uses an iFrame to do some background scrapping. I have gone through a number of hoops to get it to trigger only once in the window/tab where it should but now when I open a different tab that tab triggers the load event.

I found this: https://developer.mozilla.org/en/Code_snippets/Progress_Listeners but the snippets are not there.

This was helpful before but doesn't solve the problem: https://developer.mozilla.org/en/Code_snippets/On_page_load

More frustrating is that if there is this: https://developer.mozilla.org/En/Listening_to_events_on_all_tabs why should I worry about the normal event listener triggering in more than one tab?

Any ideas or examples?

© Stack Overflow or respective owner

Related posts about firefox

Related posts about plugins