File tree 1 file changed +6
-6
lines changed 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -548,6 +548,7 @@ enum E10sStatus {
548
548
static bool gBrowserTabsRemoteAutostart = false ;
549
549
static E10sStatus gBrowserTabsRemoteStatus ;
550
550
static bool gBrowserTabsRemoteAutostartInitialized = false ;
551
+ const char * kForceDisableE10sPref = " browser.e10s.disabled" ;
551
552
552
553
namespace mozilla {
553
554
@@ -572,12 +573,11 @@ bool BrowserTabsRemoteAutostart() {
572
573
// they are not in (at least) gtests (where we can't) and xpcshell.
573
574
// Long-term, hopefully we can make all tests e10s-friendly,
574
575
// then we could remove this automation-only env variable.
575
- if (gBrowserTabsRemoteAutostart && xpc::AreNonLocalConnectionsDisabled ()) {
576
- const char * forceDisable = PR_GetEnv (" MOZ_FORCE_DISABLE_E10S" );
577
- if (forceDisable && !strcmp (forceDisable, " 1" )) {
578
- gBrowserTabsRemoteAutostart = false ;
579
- status = kE10sForceDisabled ;
580
- }
576
+ if (gBrowserTabsRemoteAutostart &&
577
+ (Preferences::GetBool (kForceDisableE10sPref , false ) ||
578
+ EnvHasValue (" MOZ_FORCE_DISABLE_E10S" ))) {
579
+ gBrowserTabsRemoteAutostart = false ;
580
+ status = kE10sForceDisabled ;
581
581
}
582
582
583
583
gBrowserTabsRemoteStatus = status;
You can’t perform that action at this time.
0 commit comments