specifying a specific tab when executing code in an add-on
mike durakovich <[email protected]> Mon, 22 Mar 2010 09:13:21 -0700 (PDT)
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <ac96d1cd-9dda-48fa-b985-f4243cf5dbf4@r27g2000yqn.googlegroups.com> |
I am creating an add-on that has an issue of focus. If I have
multiple tabs running in parallel that all trigger the add-on
simultaneously on load, all the code will be executed against the tab
that has focus.
Using the following to listen for the page load:
gBrowser.addEventListener("DOMContentLoaded", function(aEvent)
{always(aEvent);}, false);
So, the issue is that the code is being triggered on a tab load, but
isn't executing in the calling tab, just the tab with focus. How can
I specify a particular tab of unknown index to execute the code in,
regardless if that tab has focus or not?