From a43eac38092b74119cc3b5f00ebf96e3eb5dbdbd Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Fri, 24 Apr 2020 17:55:08 -0700 Subject: [PATCH] browser(firefox): use separate web processes for different contexts (#1975) --- browser_patches/firefox/BUILD_NUMBER | 2 +- browser_patches/firefox/preferences/playwright.cfg | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/browser_patches/firefox/BUILD_NUMBER b/browser_patches/firefox/BUILD_NUMBER index 75864bc505..669ca49ff5 100644 --- a/browser_patches/firefox/BUILD_NUMBER +++ b/browser_patches/firefox/BUILD_NUMBER @@ -1 +1 @@ -1086 +1087 diff --git a/browser_patches/firefox/preferences/playwright.cfg b/browser_patches/firefox/preferences/playwright.cfg index 7b8fc256e4..3b3c19e34e 100644 --- a/browser_patches/firefox/preferences/playwright.cfg +++ b/browser_patches/firefox/preferences/playwright.cfg @@ -3,6 +3,13 @@ // Use light theme by default. pref("ui.systemUsesDarkTheme", 0); +// Increase max number of child web processes so that new pages +// get a new process by default and we have a process isolation +// between pages from different contexts. If this becomes a performance +// issue we can povide custom '@mozilla.org/ipc/processselector;1' +// +pref("dom.ipc.processCount", 60000); + // Do not use system colors - they are affected by themes. pref("ui.use_standins_for_native_colors", true);