Bug 1174987 - Disable GMPVideoDecoderTrialCreator when e10s is on. r=edwin

This commit is contained in:
Chris Pearce 2015-06-16 21:12:53 +12:00
parent 4a25317000
commit 8fde9bc26f

View File

@ -13,6 +13,7 @@
#include "GMPService.h"
#include "VideoUtils.h"
#include "nsPrintfCString.h"
#include "nsXULAppAPI.h"
namespace mozilla {
namespace dom {
@ -492,6 +493,12 @@ GMPVideoDecoderTrialCreator::MaybeAwaitTrialCreate(const nsAString& aKeySystem,
{
MOZ_ASSERT(NS_IsMainThread());
if (XRE_GetProcessType() == GeckoProcessType_Content) {
// Currently broken with e10s...
aPromisey->Resolve();
return;
}
if (!mTestCreate.Contains(aKeySystem)) {
mTestCreate.Put(aKeySystem, new TrialCreateData(aKeySystem));
}