[Project_owners] browser progress listener not attaching on new tab

Brian King brian at mozdev.org
Sat Oct 15 23:50:14 EDT 2005

I've added a load event listener to the browser (Firefox, a function 
overlaying browser.xul). This listener fires a function which then adds 
a progress listener to the browser content ("content").

The progress listener works fine, *except* when a new tab loads where it 
appears to not be attached. A reload in the new tab sets it off again.

Has anyone seen something similar, and found the 'correct' solution. The 
workaround I have at the moment is to add the progress listener 
explicitely via the onLocationChange (which is called on a new tab) of 
the previous tab. But this seems like a hack.

Brian King
www.mozdev.org - free project hosting for the Mozilla community

More information about the Project_owners mailing list