зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1063156 - Enable e10s shims by default, even when browser.tabs.remote.autostart pref is false.r=billm
This commit is contained in:
Родитель
44ce9ce4dc
Коммит
b71a733652
|
@ -4282,12 +4282,13 @@ this.XPIProvider = {
|
|||
|
||||
let principal = Cc["@mozilla.org/systemprincipal;1"].
|
||||
createInstance(Ci.nsIPrincipal);
|
||||
|
||||
if (!aMultiprocessCompatible && Services.appinfo.browserTabsRemoteAutostart) {
|
||||
#if defined(NIGHTLY_BUILD) && defined(HAVE_SHIMS)
|
||||
if (!aMultiprocessCompatible) {
|
||||
let interposition = Cc["@mozilla.org/addons/multiprocess-shims;1"].
|
||||
getService(Ci.nsIAddonInterposition);
|
||||
Cu.setAddonInterposition(aId, interposition);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!aFile.exists()) {
|
||||
this.bootstrapScopes[aId] =
|
||||
|
|
|
@ -14,6 +14,9 @@ EXTRA_JS_MODULES.addons += [
|
|||
'SpellCheckDictionaryBootstrap.js',
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_BUILD_APP'] in ['browser']:
|
||||
DEFINES['HAVE_SHIMS'] = True
|
||||
|
||||
# Don't ship unused providers on Android
|
||||
if CONFIG['MOZ_WIDGET_TOOLKIT'] != 'android':
|
||||
EXTRA_JS_MODULES.addons += [
|
||||
|
|
|
@ -105,6 +105,9 @@ if CONFIG['MOZ_UPDATER']:
|
|||
|
||||
MSVC_ENABLE_PGO = True
|
||||
|
||||
if CONFIG['MOZ_BUILD_APP'] in ['browser']:
|
||||
DEFINES['HAVE_SHIMS'] = True
|
||||
|
||||
include('/ipc/chromium/chromium-config.mozbuild')
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
|
|
@ -551,9 +551,7 @@ nsXREDirProvider::GetFiles(const char* aProperty, nsISimpleEnumerator** aResult)
|
|||
static void
|
||||
RegisterExtensionInterpositions(nsINIParser &parser)
|
||||
{
|
||||
if (!mozilla::BrowserTabsRemoteAutostart())
|
||||
return;
|
||||
|
||||
#if defined(NIGHTLY_BUILD) && defined(HAVE_SHIMS)
|
||||
nsCOMPtr<nsIAddonInterposition> interposition =
|
||||
do_GetService("@mozilla.org/addons/multiprocess-shims;1");
|
||||
|
||||
|
@ -572,6 +570,7 @@ RegisterExtensionInterpositions(nsINIParser &parser)
|
|||
continue;
|
||||
}
|
||||
while (true);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Загрузка…
Ссылка в новой задаче