зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1650118: Part 8 - Remove useMultiprocess; r=geckoview-reviewers,esawin
Differential Revision: https://phabricator.services.mozilla.com/D92481
This commit is contained in:
Родитель
58022b0f12
Коммит
dfaa438b97
|
@ -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,
|
||||
|
|
|
@ -151,7 +151,7 @@ var ModuleManager = {
|
|||
remoteTypeFor(aURI, currentType) {
|
||||
return E10SUtils.getRemoteTypeForURI(
|
||||
aURI,
|
||||
GeckoViewSettings.useMultiprocess,
|
||||
/* multiProcess */ true,
|
||||
/* useRemoteSubframes */ false,
|
||||
currentType,
|
||||
this.browser.currentURI
|
||||
|
@ -510,17 +510,15 @@ 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
|
||||
);
|
||||
if (pointerEventsEnabled) {
|
||||
Services.prefs.setBoolPref("dom.w3c_pointer_events.enabled", true);
|
||||
}
|
||||
browser.setAttribute("remote", "true");
|
||||
browser.setAttribute("remoteType", E10SUtils.DEFAULT_REMOTE_TYPE);
|
||||
const pointerEventsEnabled = Services.prefs.getBoolPref(
|
||||
"dom.w3c_pointer_events.multiprocess.android.enabled",
|
||||
false
|
||||
);
|
||||
if (pointerEventsEnabled) {
|
||||
Services.prefs.setBoolPref("dom.w3c_pointer_events.enabled", true);
|
||||
}
|
||||
browser.setAttribute("remote", "true");
|
||||
browser.setAttribute("remoteType", E10SUtils.DEFAULT_REMOTE_TYPE);
|
||||
|
||||
return browser;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче