gecko-dev/toolkit
Drew Willcoxon 2745f694aa Bug 1752953 - Part 3: Don't update the Firefox Suggest scenario unnecessarily. r=daisuke
This modifies the Nimbus update observer in UrlbarPrefs so that it does not
update the Firefox Suggest scenario unnecessarily. The scenario and the prefs
related to the scenario only need to be updated when either of these happens:

* A relevant Nimbus variable changes
* The current default-branch value of a relevant pref is incorrect for the
  intended scenario

Currently, any time a pref changes that is declared as a fallback pref for a
Nimbus urlbar variable, we end up updating the scenario all over again even if
it was some totally unrelated variable like `bestMatchEnabled`.

We have very good test coverage for scenario updates, so I'm confident that this
revision works properly and that we can catch regressions when we modify related
code in the future.

While working on this, I found that the `quickSuggestNonSponsoredEnabled` was
accidentally removed by D130159 (https://hg.mozilla.org/mozilla-central/rev/ccda4432cdc4d7180a9304e05b52f046616bbf2b)
so I added it back. We haven't used this variable in any experiments or rollouts
so it was never a problem.

Differential Revision: https://phabricator.services.mozilla.com/D140425
2022-03-11 18:28:27 +00:00
..
actors Bug 1756718 - move pip texttracks when pip player controls appear to avoid overlap. r=mhowell,pip-reviewers 2022-03-11 00:52:01 +00:00
components Bug 1752953 - Part 3: Don't update the Firefox Suggest scenario unnecessarily. r=daisuke 2022-03-11 18:28:27 +00:00
content Bug 1758474 - Implement an ESLint rule to disallow passing {} as the target parameter for ChromeUtils.import. r=Gijs,mossop,perftest-reviewers,preferences-reviewers,sparky 2022-03-11 16:41:29 +00:00
crashreporter Backed out 2 changesets (bug 1756505) for causing hazard failures. CLOSED TREE 2022-03-04 00:10:46 +02:00
docs
library Bug 1681985 - P3. Implement CreditCardRuleset in C++ r=sgalich,emilio 2022-03-11 11:45:59 +00:00
locales Bug 1731523 - Part 1: Remove "Firefox 100 User-Agent String" setting UI. r=fluent-reviewers,preferences-reviewers,Gijs 2022-03-09 03:20:08 +00:00
modules Bug 1758474 - Implement an ESLint rule to disallow passing {} as the target parameter for ChromeUtils.import. r=Gijs,mossop,perftest-reviewers,preferences-reviewers,sparky 2022-03-11 16:41:29 +00:00
mozapps Bug 1758474 - Implement an ESLint rule to disallow passing {} as the target parameter for ChromeUtils.import. r=Gijs,mossop,perftest-reviewers,preferences-reviewers,sparky 2022-03-11 16:41:29 +00:00
profile Merge autoland to mozilla-central. a=merge 2022-02-23 19:49:43 -08:00
system Merge autoland to mozilla-central. a=merge 2022-02-10 23:30:17 +02:00
themes Bug 1756718 - move pip texttracks when pip player controls appear to avoid overlap. r=mhowell,pip-reviewers 2022-03-11 00:52:01 +00:00
xre Bug 1759167: Revert the CreatorsUpdate restriction on Win32k Lockdown r=bobowen 2022-03-11 17:01:56 +00:00
.eslintrc.js
l10n-registry.manifest
moz.build Bug 1743465: add XPCOM component for interacting with Windows PackageManager r=mhowell 2022-01-20 23:34:51 +00:00
moz.configure Bug 1752968 - Pre: Convert `MOZ_PACKAGER_MINIFY{_JS}` to `moz.configure`. r=firefox-build-system-reviewers,mhentges 2022-03-02 17:43:47 +00:00
toolkit.mozbuild Bug 1742437 - Move module loader files into a central folder; r=jonco 2022-02-21 15:39:08 +00:00