Re: Adding DOM Mutation listeners to different DOMs correspoding to each open tab in Firefox.
Boris Zbarsky <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Message-ID | <[email protected]> |
stony_dreams wrote:
> gBrowser.tabContainer.addEventListener("TabSelect", removeListeners, true);
>
> And as soon as I get this event, I am trying to remove the dom mutation
> listener on the content.document of this tab so that before the next tab is
> brought to focus, the listeners for the previously focussed tab are
> disabled. I do this to avoid getting mutation events from unactive tabs.
>
> Is this the proper way to do it?
That's a question better asked in m.d.a.firefox, since it relies on the details
of Firefox's tab-switching behavior....
-Boris