Bug 1306327 - Avoid call to NS_DebugBreak from content_process_main(). r=billm
We want to avoid calls to XPCOM glue functions, in order to remove them
later on.
--- a/ipc/contentproc/plugin-container.cpp
+++ b/ipc/contentproc/plugin-container.cpp
@@ -107,12 +107,10 @@ content_process_main(int argc, char* arg
#if !defined(XP_LINUX) && defined(MOZ_PLUGIN_CONTAINER)
// On Windows and MacOS, the GMPLoader lives in plugin-container, so that its
// code can be covered by an EME/GMP vendor's voucher.
if (XRE_GetProcessType() == GeckoProcessType_GMPlugin) {
childData.gmpLoader = mozilla::gmp::CreateGMPLoader(MakeSandboxStarter());
}
#endif
nsresult rv = XRE_InitChildProcess(argc, argv, &childData);
- NS_ENSURE_SUCCESS(rv, 1);
-
- return 0;
+ return NS_FAILED(rv);
}