Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

browser(firefox): use separate web processes for different contexts (#1975)

Yury Semikhatskya43eac38092b
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);