Re: Adding DOM Mutation listeners to different DOMs correspoding to each open tab in Firefox.

stony_dreams <[email protected]>
Newsgroups gmane.comp.mozilla.devel.dom
Message-ID <[email protected]>


Boris Zbarsky wrote:
> 
>  From a different document, you mean?  I'm not sure what the problem is
> here...
> 

Actually I am trying to capture the TabSelect event in its capturing phase
as follows:

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?
-- 
View this message in context: http://www.nabble.com/Adding-DOM-Mutation-listeners-to-different-DOMs-correspoding-to-each-open-tab-in-Firefox.-tp15091955p15092604.html
Sent from the Mozilla - DOM mailing list archive at Nabble.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.