Currently mozIDOMApplicationMgmt is implemented in JS, but it inherits builtinclass interface nsIDOMEventTarget. Code using nsIDOMEventTarget excepts it to be C++. I wonder if it is possible that the current setup leads to some random crashes.
(In reply to Olli Pettay [:smaug] from comment #0) > excepts expects
Olli: who should investigate this? If not you please find someone, if this is assigned to nobody it'll just rot.
(In reply to Daniel Veditz [:dveditz] from comment #2) > Olli: who should investigate this? If not you please find someone, if this > is assigned to nobody it'll just rot. I'll look at this some more.
The only problematic cases I found are chrome only. nsEventListenerService::Add/RemoveSystemEventListener, nsEventListenerService::HasListenersFor, nsEventListenerService::GetEventTargetChainFor nsDocShell::Get/SetChromeEventHandler Marking this WONTFIX, since mozIDOMApplicationMgmt was changed to not inherit nsIDOMEventTarget.
Calling it "fixed" because you did do the investigation this bug was filed to track.