Do you have use cases besides these two?
In bug 845190 [1] we're seeing an issue which might be caused by an unexpected shutdown sequence. What seems to be happening is that a DOM worker thread is created very late during the test; once ShutdownXPCOM() is invoked the worker runtime service is supposed to tear down all remaining workers but in order to do so it has to wait for pending ones to finish loading and then stop. Unfortunately the said worker starts loading when many other subsystems have already been shut down (either by receiving a shutdown-xpcom or shutdown-xpcom-threads event) and trips over errors/assertions because of that.
Gabriele [1] https://bugzilla.mozilla.org/show_bug.cgi?id=845190 _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform