Bug 1561178 - Shutdown video bridge for all processes that might be using it. r=jya

Differential Revision: https://phabricator.services.mozilla.com/D36000

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Matt Woodrow 2019-06-28 06:33:00 +00:00
parent 3e1eacd221
commit f07980eb66
2 changed files with 3 additions and 0 deletions

View File

@ -208,6 +208,8 @@ void RDDParent::ActorDestroy(ActorDestroyReason aWhy) {
}
#endif
RemoteDecoderManagerParent::ShutdownVideoBridge();
CrashReporterClient::DestroySingleton();
XRE_ShutdownChildProcess();
}

View File

@ -75,6 +75,7 @@ class RemoteDecoderManagerThreadShutdownObserver : public nsIObserver {
const char16_t* aData) override {
MOZ_ASSERT(strcmp(aTopic, NS_XPCOM_SHUTDOWN_OBSERVER_ID) == 0);
RemoteDecoderManagerParent::ShutdownVideoBridge();
RemoteDecoderManagerParent::ShutdownThreads();
return NS_OK;
}