mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Revert "Issue #2301 - Make Gecko Media Plugins optional when not building EME or WebRTC"
This reverts commit 9e7d1492e6.
This commit is contained in:
parent
7e50abda7d
commit
119feb053c
54 changed files with 30 additions and 314 deletions
|
|
@ -18,14 +18,12 @@ LOCAL_INCLUDES += [
|
|||
|
||||
# We link GMPLoader into plugin-container on desktop so that its code is
|
||||
# covered by the desktop DRM vendor's voucher.
|
||||
if CONFIG['MOZ_GMP']:
|
||||
SOURCES += [
|
||||
'../../dom/media/gmp/GMPLoader.cpp',
|
||||
]
|
||||
|
||||
USE_LIBS += [
|
||||
'rlz',
|
||||
]
|
||||
SOURCES += [
|
||||
'../../dom/media/gmp/GMPLoader.cpp',
|
||||
]
|
||||
USE_LIBS += [
|
||||
'rlz',
|
||||
]
|
||||
|
||||
# DELAYLOAD_DLLS in this block ensures that the DLL blocklist is functional
|
||||
if CONFIG['OS_ARCH'] == 'WINNT':
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@
|
|||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifdef MOZ_GMP
|
||||
#include "GMPLoader.h"
|
||||
|
||||
mozilla::gmp::SandboxStarter*
|
||||
|
|
@ -27,7 +26,6 @@ MakeSandboxStarter()
|
|||
{
|
||||
return nullptr;
|
||||
}
|
||||
#endif
|
||||
|
||||
int
|
||||
content_process_main(int argc, char* argv[])
|
||||
|
|
@ -38,9 +36,7 @@ content_process_main(int argc, char* argv[])
|
|||
return 3;
|
||||
}
|
||||
|
||||
#ifdef MOZ_GMP
|
||||
XREChildData childData;
|
||||
#endif
|
||||
|
||||
XRE_SetProcessType(argv[--argc]);
|
||||
|
||||
|
|
@ -54,19 +50,15 @@ content_process_main(int argc, char* argv[])
|
|||
}
|
||||
#endif
|
||||
#ifdef MOZ_PLUGIN_CONTAINER
|
||||
#ifdef MOZ_GMP
|
||||
// On desktop, the GMPLoader lives in plugin-container, so that its
|
||||
// code can be covered by an EME/GMP vendor's voucher.
|
||||
nsAutoPtr<mozilla::gmp::SandboxStarter> starter(MakeSandboxStarter());
|
||||
if (XRE_GetProcessType() == GeckoProcessType_GMPlugin) {
|
||||
childData.gmpLoader = mozilla::gmp::CreateGMPLoader(starter);
|
||||
}
|
||||
#endif
|
||||
nsresult rv = XRE_InitChildProcess(argc, argv, &childData);
|
||||
#else
|
||||
nsresult rv = XRE_InitChildProcess(argc, argv);
|
||||
#endif
|
||||
NS_ENSURE_SUCCESS(rv, 1);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue