From 1e8a82f0e1ff327c8846cd20a056caaf1de8efff Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Tue, 24 May 2022 08:28:31 -0700 Subject: [PATCH] Try different way to disable Firefox 'welcome pages' (mkaply) Thanks to Mike Kaply in https://bugzilla.mozilla.org/show_bug.cgi?id=1703903#c18 , this should avoid Quick Suggest onboarding, "Total Cookie Protection" onboarding, and future annoying things using the same mechanisms without using the prefs mechanism or going after each one case by case. Signed-off-by: Adam Williamson --- lib/utils.pm | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/lib/utils.pm b/lib/utils.pm index 2eecd9e4..823b8a1f 100644 --- a/lib/utils.pm +++ b/lib/utils.pm @@ -418,15 +418,7 @@ sub disable_firefox_studies { # (god I am starting to hate this crap): # https://bugzilla.mozilla.org/show_bug.cgi?id=1703903 assert_script_run 'mkdir -p $(rpm --eval %_libdir)/firefox/distribution'; - assert_script_run 'printf \'{"policies": {"DisableFirefoxStudies": true, "OfferToSaveLogins": false}}\' > $(rpm --eval %_libdir)/firefox/distribution/policies.json'; - assert_script_run 'mkdir -p $(rpm --eval %_libdir)/firefox/browser/defaults/preferences'; - # it's not at all clear from the code which of these actually gets - # used, so we set them all just in case - assert_script_run 'printf "pref(\'browser.urlbar.quicksuggest.shouldShowOnboardingDialog\', false);\npref(\'quickSuggestShouldShowOnboardingDialog\', false);\npref(\'browser.urlbar.quickSuggestShouldShowOnboardingDialog\', false);\n" > $(rpm --eval %_libdir)/firefox/browser/defaults/preferences/openqa-overrides.js'; - # and disable the "Automated Cookie Protection" thing that showed - # up in Firefox 100 (thanks Ed Lee): - # https://bugzilla.mozilla.org/show_bug.cgi?id=1703903#c9 - assert_script_run 'echo "pref(\'privacy.restrict3rdpartystorage.rollout.enabledByDefault\', false);" >> $(rpm --eval %_libdir)/firefox/browser/defaults/preferences/openqa-overrides.js'; + assert_script_run 'printf \'{"policies": {"DisableFirefoxStudies": true, "OfferToSaveLogins": false, "OverrideFirstRunPage": "", "OverridePostUpdatePage: ""}}\' > $(rpm --eval %_libdir)/firefox/distribution/policies.json'; } sub repos_mirrorlist {