Bug 1189887: Enable async plugin init by default except when e10s is on; r=jimm

This commit is contained in:
Aaron Klotz
2015-07-31 13:39:42 -06:00
parent cf90ef42d5
commit 8f9cc57f9b
2 changed files with 5 additions and 7 deletions

View File

@@ -33,6 +33,7 @@
#include "nsCRT.h"
#include "nsIFile.h"
#include "nsIObserverService.h"
#include "nsIXULRuntime.h"
#include "nsNPAPIPlugin.h"
#include "nsPrintfCString.h"
#include "prsystem.h"
@@ -641,7 +642,9 @@ PluginModuleParent::PluginModuleParent(bool aIsChrome)
, mAsyncNewRv(NS_ERROR_NOT_INITIALIZED)
{
#if defined(XP_WIN) || defined(XP_MACOSX) || defined(MOZ_WIDGET_GTK)
mIsStartingAsync = Preferences::GetBool(kAsyncInitPref, false);
// Until some e10s bugs are resolved, disable asyncInit with e10s
mIsStartingAsync = Preferences::GetBool(kAsyncInitPref, false) &&
!BrowserTabsRemoteAutostart();
#if defined(MOZ_CRASHREPORTER)
CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("AsyncPluginInit"),
mIsStartingAsync ?