[Project_owners] browser progress listener not attaching on new
Michael Vincent van Rantwijk
mv_van_rantwijk at yahoo.com
Mon Oct 17 15:10:30 EDT 2005
Brian King wrote:
> 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.
I think that the best way you can do this is to extent browser.xml so
that you can add your progress listener in the constructor.
Note: failing extensions can break the constructor from completing!
More information about the Project_owners