diff --git a/toolkit/mozapps/extensions/internal/XPIProvider.jsm b/toolkit/mozapps/extensions/internal/XPIProvider.jsm index 091c91f8cd0c..57f3ade693f9 100644 --- a/toolkit/mozapps/extensions/internal/XPIProvider.jsm +++ b/toolkit/mozapps/extensions/internal/XPIProvider.jsm @@ -4282,12 +4282,13 @@ this.XPIProvider = { let principal = Cc["@mozilla.org/systemprincipal;1"]. createInstance(Ci.nsIPrincipal); - - if (!aMultiprocessCompatible && Services.appinfo.browserTabsRemoteAutostart) { +#ifdef NIGHTLY_BUILD + 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] = diff --git a/toolkit/xre/nsXREDirProvider.cpp b/toolkit/xre/nsXREDirProvider.cpp index 9c7d539a5e37..6106d282deda 100644 --- a/toolkit/xre/nsXREDirProvider.cpp +++ b/toolkit/xre/nsXREDirProvider.cpp @@ -551,9 +551,7 @@ nsXREDirProvider::GetFiles(const char* aProperty, nsISimpleEnumerator** aResult) static void RegisterExtensionInterpositions(nsINIParser &parser) { - if (!mozilla::BrowserTabsRemoteAutostart()) - return; - +#ifdef NIGHTLY_BUILD nsCOMPtr interposition = do_GetService("@mozilla.org/addons/multiprocess-shims;1"); @@ -572,6 +570,7 @@ RegisterExtensionInterpositions(nsINIParser &parser) continue; } while (true); +#endif } static void