From c3767681a9f6d9af799c2116741df6f42df6f37a Mon Sep 17 00:00:00 2001 From: Matheus Marinho Date: Fri, 6 Oct 2023 23:04:36 -0300 Subject: [PATCH] Correct overzealous GMP checks --- toolkit/xre/nsEmbedFunctions.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/toolkit/xre/nsEmbedFunctions.cpp b/toolkit/xre/nsEmbedFunctions.cpp index bcedaa7792..84cc3f6752 100644 --- a/toolkit/xre/nsEmbedFunctions.cpp +++ b/toolkit/xre/nsEmbedFunctions.cpp @@ -471,11 +471,9 @@ XRE_InitChildProcess(int aArgc, // Content processes need the XPCOM/chromium frankenventloop uiLoopType = MessageLoop::TYPE_MOZILLA_CHILD; break; -#ifdef MOZ_GMP case GeckoProcessType_GMPlugin: uiLoopType = MessageLoop::TYPE_DEFAULT; break; -#endif default: uiLoopType = MessageLoop::TYPE_UI; break; @@ -537,11 +535,13 @@ XRE_InitChildProcess(int aArgc, #endif break; -#ifdef MOZ_GMP case GeckoProcessType_GMPlugin: +#ifdef MOZ_GMP process = new gmp::GMPProcessChild(parentPID); - break; +#else + NS_RUNTIMEABORT("rebuild with Gecko Media Plugins enabled"); #endif + break; case GeckoProcessType_GPU: process = new gfx::GPUProcessImpl(parentPID);