зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1156613 - Fix e10s ifdef NIGHTLY_BUILD blocks with E10S_TESTING_ONLY. r=billm
This commit is contained in:
Родитель
410c397319
Коммит
5f485af9d6
|
@ -1863,7 +1863,7 @@ pref("browser.polaris.enabled", false);
|
|||
pref("privacy.trackingprotection.ui.enabled", false);
|
||||
#endif
|
||||
|
||||
#ifdef NIGHTLY_BUILD
|
||||
#ifdef E10S_TESTING_ONLY
|
||||
// At the moment, autostart.2 is used, while autostart.1 is unused.
|
||||
// We leave it here set to false to reset users' defaults and allow
|
||||
// us to change everybody to true in the future, when desired.
|
||||
|
@ -1871,7 +1871,7 @@ pref("browser.tabs.remote.autostart.1", false);
|
|||
pref("browser.tabs.remote.autostart.2", true);
|
||||
#endif
|
||||
|
||||
#ifdef NIGHTLY_BUILD
|
||||
#ifdef E10S_TESTING_ONLY
|
||||
// Enable e10s add-on interposition by default.
|
||||
pref("extensions.interposition.enabled", true);
|
||||
pref("extensions.interposition.prefetching", true);
|
||||
|
|
|
@ -179,7 +179,7 @@ pref("dom.url.encode_decode_hash", true);
|
|||
// Whether to run add-on code in different compartments from browser code. This
|
||||
// causes a separate compartment for each (addon, global) combination, which may
|
||||
// significantly increase the number of compartments in the system.
|
||||
#ifdef NIGHTLY_BUILD
|
||||
#ifdef E10S_TESTING_ONLY
|
||||
pref("dom.compartment_per_addon", true);
|
||||
#else
|
||||
pref("dom.compartment_per_addon", false);
|
||||
|
@ -2438,7 +2438,7 @@ pref("dom.ipc.plugins.unloadTimeoutSecs", 30);
|
|||
|
||||
// Asynchronous plugin initialization should only be enabled on non-e10s
|
||||
// channels until some remaining bugs are resolved.
|
||||
#ifdef NIGHTLY_BUILD
|
||||
#ifdef E10S_TESTING_ONLY
|
||||
pref("dom.ipc.plugins.asyncInit", false);
|
||||
#else
|
||||
pref("dom.ipc.plugins.asyncInit", true);
|
||||
|
|
|
@ -585,7 +585,7 @@ bool gSafeMode = false;
|
|||
* singleton.
|
||||
*/
|
||||
class nsXULAppInfo : public nsIXULAppInfo,
|
||||
#ifdef NIGHTLY_BUILD
|
||||
#ifdef E10S_TESTING_ONLY
|
||||
public nsIObserver,
|
||||
#endif
|
||||
#ifdef XP_WIN
|
||||
|
@ -603,7 +603,7 @@ public:
|
|||
NS_DECL_ISUPPORTS_INHERITED
|
||||
NS_DECL_NSIXULAPPINFO
|
||||
NS_DECL_NSIXULRUNTIME
|
||||
#ifdef NIGHTLY_BUILD
|
||||
#ifdef E10S_TESTING_ONLY
|
||||
NS_DECL_NSIOBSERVER
|
||||
#endif
|
||||
#ifdef MOZ_CRASHREPORTER
|
||||
|
@ -618,7 +618,7 @@ public:
|
|||
NS_INTERFACE_MAP_BEGIN(nsXULAppInfo)
|
||||
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIXULRuntime)
|
||||
NS_INTERFACE_MAP_ENTRY(nsIXULRuntime)
|
||||
#ifdef NIGHTLY_BUILD
|
||||
#ifdef E10S_TESTING_ONLY
|
||||
NS_INTERFACE_MAP_ENTRY(nsIObserver)
|
||||
#endif
|
||||
#ifdef XP_WIN
|
||||
|
@ -824,7 +824,7 @@ static bool gBrowserTabsRemoteAutostart = false;
|
|||
static nsString gBrowserTabsRemoteDisabledReason;
|
||||
static bool gBrowserTabsRemoteAutostartInitialized = false;
|
||||
|
||||
#ifdef NIGHTLY_BUILD
|
||||
#ifdef E10S_TESTING_ONLY
|
||||
NS_IMETHODIMP
|
||||
nsXULAppInfo::Observe(nsISupports *aSubject, const char *aTopic, const char16_t *aData) {
|
||||
if (!nsCRT::strcmp(aTopic, "getE10SBlocked")) {
|
||||
|
@ -4339,7 +4339,7 @@ XRE_IsParentProcess()
|
|||
return XRE_GetProcessType() == GeckoProcessType_Default;
|
||||
}
|
||||
|
||||
#ifdef NIGHTLY_BUILD
|
||||
#ifdef E10S_TESTING_ONLY
|
||||
static void
|
||||
LogE10sBlockedReason(const char *reason) {
|
||||
gBrowserTabsRemoteDisabledReason.Assign(NS_ConvertASCIItoUTF16(reason));
|
||||
|
@ -4381,7 +4381,7 @@ mozilla::BrowserTabsRemoteAutostart()
|
|||
} else {
|
||||
status = kE10sDisabledByUser;
|
||||
}
|
||||
#if !defined(NIGHTLY_BUILD)
|
||||
#if !defined(E10S_TESTING_ONLY)
|
||||
// When running tests with 'layers.offmainthreadcomposition.testing.enabled' and
|
||||
// autostart set to true, return enabled. These tests must be allowed to run
|
||||
// remotely. Otherwise remote isn't allowed in non-nightly builds.
|
||||
|
@ -4445,7 +4445,7 @@ mozilla::BrowserTabsRemoteAutostart()
|
|||
gBrowserTabsRemoteAutostart = false;
|
||||
|
||||
status = kE10sDisabledForMacGfx;
|
||||
#ifdef NIGHTLY_BUILD
|
||||
#ifdef E10S_TESTING_ONLY
|
||||
LogE10sBlockedReason("Hardware acceleration is disabled");
|
||||
#endif
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче