Created attachment 302630 [details] [diff] [review]
Working on making the cycle collector free closed DOM windows I found that the download status panel listener is never removed when the browser closes. This keeps all DOM windows open until the app shuts down and the download manager clears its listener list.
We need to figure out a generic way to prevent this sort of thing, but that's for another bug.
Wouldn't it be better to just unregister the listener on window unload?
onunload="BrowserShutdown()", so I think this is doing what you're talking about?
right, sorry. Missed that.
Comment on attachment 302630 [details] [diff] [review]
I would rather add an unit method to the listener object, instead of exposing isListening.
Created attachment 303159 [details] [diff] [review]
Ok, with uninit.
Comment on attachment 303159 [details] [diff] [review]
nit: remove the braces in uninit.
I even 100% remember this bug, it's fixed now.
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9b5pre) Gecko/2008030607 Minefield/3.0b5pre