From 06b69f6a97c203431c11588d207e1245533c1cb4 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Wed, 8 Sep 2021 16:15:22 +0300 Subject: [PATCH] browser(firefox): disable background tasks and updater for firefox (#8773) References #8536 --- browser_patches/firefox-beta/BUILD_NUMBER | 4 ++-- browser_patches/firefox-beta/build.sh | 6 ++++++ browser_patches/firefox/BUILD_NUMBER | 4 ++-- browser_patches/firefox/build.sh | 6 ++++++ 4 files changed, 16 insertions(+), 4 deletions(-) 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: max@schmitt.mx Mon 6 Sep 2021 16:30:50 CEST +1290 +Changed: aslushhnikov@gmail.com 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: max@schmitt.mx Mon 6 Sep 2021 16:30:50 CEST +1293 +Changed: aslushhnikov@gmail.com 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