Commit 36ba3257 authored by Agi Sferro's avatar Agi Sferro
Browse files

Bug 1650118: Part 8 - Remove useMultiprocess; r=geckoview-reviewers,esawin

parent 49a1e8f3
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -42,12 +42,6 @@ class WebBrowserChromeChild extends GeckoViewActorChild {
  ) {
    debug`shouldLoadURI ${aURI.displaySpec}`;

    if (!GeckoViewSettings.useMultiprocess) {
      // If we're in non-e10s mode there's no other process we can load this
      // page in.
      return true;
    }

    if (!E10SUtils.shouldLoadURI(aDocShell, aURI, aHasPostData)) {
      E10SUtils.redirectLoad(
        aDocShell,
+9 −11
Original line number Diff line number Diff line
@@ -151,7 +151,7 @@ var ModuleManager = {
  remoteTypeFor(aURI, currentType) {
    return E10SUtils.getRemoteTypeForURI(
      aURI,
      GeckoViewSettings.useMultiprocess,
      /* multiProcess */ true,
      /* useRemoteSubframes */ false,
      currentType,
      this.browser.currentURI
@@ -510,7 +510,6 @@ function createBrowser() {
  browser.setAttribute("flex", "1");
  browser.setAttribute("maychangeremoteness", "true");

  if (GeckoViewSettings.useMultiprocess) {
  const pointerEventsEnabled = Services.prefs.getBoolPref(
    "dom.w3c_pointer_events.multiprocess.android.enabled",
    false
@@ -520,7 +519,6 @@ function createBrowser() {
  }
  browser.setAttribute("remote", "true");
  browser.setAttribute("remoteType", E10SUtils.DEFAULT_REMOTE_TYPE);
  }

  return browser;
}
+0 −4
Original line number Diff line number Diff line
@@ -48,10 +48,6 @@ const DISPLAY_MODE_FULLSCREEN = 3;

// Handles GeckoSession settings.
class GeckoViewSettings extends GeckoViewModule {
  static get useMultiprocess() {
    return Services.prefs.getBoolPref("browser.tabs.remote.autostart", true);
  }

  onInit() {
    debug`onInit`;
    this._userAgentMode = USER_AGENT_MODE_MOBILE;