Loading
Bug 1399646: Part 2 - Use the async shutdown service for ServiceWorkerRegistrar. r=baku
The current shutdown handling code is susceptible to deadlocks, since it spins the event loop while it holds mMonitor, and other main thread methods which try to acquire mMonitor can be called from code that runs while the event loop is spinning. My initial solution was just to release mMonitor before spinning the event loop, but at this point I think it makes more sense to switch to the standardized AsyncShutdown routines, which provide better diagnostics and allow us to avoid one more nested event loop during shutdown. MozReview-Commit-ID: 1RtFN585IR7 --HG-- extra : rebase_source : 978f3bf7cef73e56b3e1c1c838c2bc6efcefb0c0 extra : amend_source : 2b7c9422004b58ad1d38d7dd705ad446bc47cb23 extra : histedit_source : 7a4e80de7d5aa48e074ea03821bb78e5e287842e%2C92c1119a131adaa33f5691c0e534bb243115817b