зеркало из https://github.com/mozilla/gecko-dev.git
48b1ebeb71
The SpinEventLoopUntilOrShutdown is interrupted in the main process only at stage "xpcom-shutdown", which is too late. In a content process instead we interrupt it early enough, at "content-child-will-shutdown". This patch removes the current observer logic in nsThreadManager in favor of a current shutdown phase state machinery in AppShutdown and renames SpinEventLoopUntilOrShutdown to SpinEventLoopUntilOrQuit. It also ensures that SpinEventLoopUntilOrQuit breaks early (at "quit-application" in the main process). For a further possible cleanup around shutdown state in child and parent process please refer to bug 1697745. We have no automated test for this edge case, but we have diagnostic telemetry that will tell us if it helps. Differential Revision: https://phabricator.services.mozilla.com/D107619 |
||
---|---|---|
.. | ||
components.conf | ||
moz.build | ||
nsContentDLF.cpp | ||
nsContentDLF.h | ||
nsLayoutCID.h | ||
nsLayoutModule.cpp | ||
nsLayoutModule.h | ||
nsLayoutStatics.cpp | ||
nsLayoutStatics.h |