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): disable background tasks and updater for firefox (#8773)

Andrey Lushnikov06b69f6a97c2
diff --git a/browser_patches/firefox-beta/BUILD_NUMBER b/browser_patches/firefox-beta/BUILD_NUMBER
index 6c8c4f0b87..e224f46766 100644
--- a/browser_patches/firefox-beta/BUILD_NUMBER
+++ b/browser_patches/firefox-beta/BUILD_NUMBER
@@ -1,2 +1,2 @@
-1289
-Changed: [email protected] Mon 6 Sep 2021 16:30:50 CEST
+1290
+Changed: [email protected] Wed 08 Sep 2021 05:57:14 AM PDT
diff --git a/browser_patches/firefox-beta/build.sh b/browser_patches/firefox-beta/build.sh
index 98623d7b9f..849d08615e 100755
--- a/browser_patches/firefox-beta/build.sh
+++ b/browser_patches/firefox-beta/build.sh
@@ -81,6 +81,12 @@ fi
OBJ_FOLDER="obj-build-playwright"
echo "mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/${OBJ_FOLDER}" >> .mozconfig
echo "ac_add_options --disable-crashreporter" >> .mozconfig
+echo "ac_add_options --disable-backgroundtasks" >> .mozconfig
+
+if [[ "$(uname)" == MINGW* || "$(uname)" == "Darwin" ]]; then
+ # This options is only available on win and mac.
+ echo "ac_add_options --disable-update-agent" >> .mozconfig
+fi
if [[ $1 != "--juggler" ]]; then
# TODO: rustup is not in the PATH on Windows
diff --git a/browser_patches/firefox/BUILD_NUMBER b/browser_patches/firefox/BUILD_NUMBER
index df1c2d4745..8785cd208f 100644
--- a/browser_patches/firefox/BUILD_NUMBER
+++ b/browser_patches/firefox/BUILD_NUMBER
@@ -1,2 +1,2 @@
-1292
-Changed: [email protected] Mon 6 Sep 2021 16:30:50 CEST
+1293
+Changed: [email protected] Wed 08 Sep 2021 05:57:14 AM PDT
diff --git a/browser_patches/firefox/build.sh b/browser_patches/firefox/build.sh
index 98623d7b9f..849d08615e 100755
--- a/browser_patches/firefox/build.sh
+++ b/browser_patches/firefox/build.sh
@@ -81,6 +81,12 @@ fi
OBJ_FOLDER="obj-build-playwright"
echo "mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/${OBJ_FOLDER}" >> .mozconfig
echo "ac_add_options --disable-crashreporter" >> .mozconfig
+echo "ac_add_options --disable-backgroundtasks" >> .mozconfig
+
+if [[ "$(uname)" == MINGW* || "$(uname)" == "Darwin" ]]; then
+ # This options is only available on win and mac.
+ echo "ac_add_options --disable-update-agent" >> .mozconfig
+fi
if [[ $1 != "--juggler" ]]; then
# TODO: rustup is not in the PATH on Windows