Felipe and I were having a discussion around a patch that uses
nsIMessageManager. Specifically, we create a <browser> element, then
call browser.messageManager.addMessageListener() with the requirement
that the listener live for as long as the browser element itself.
The question we had was whether it was necessary to explicitly call
removeMessageListener, or whether we can rely on automatic cleanup when
the browser element dies? It seems obvious to us that it *should* be
safe to rely on automatic cleanup, but searching both docs and mxr
didn't make it clear, so I figured it was better to ask rather than to
cargo-cult the addition of explicit cleanup code that wasn't necessary.
Thanks,
Mark
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform