fune/browser/components/preferences
Shane Hughes 7810a6da05 Bug 1747343 - Add pref to set default action for new mimetypes. r=Gijs,fluent-reviewers,preferences-reviewers
When downloading a file, we check for existing mime types and construct
a new one if it's unrecognized. Mime types have a flag,
alwaysAskBeforeHandling, that determines whether the unknown content
type dialog should be opened before handling the file. Before bug
1733492, the default value for that flag was simply true. Since the new
downloads flow is intended to avoid unnecessary steps, the default value
was changed to the inverted value of the new downloads panel
improvements pref. This patch adds a new pref that the mime info
constructor will read in configuring the flag's value. If the
improvements pref is not enabled, then the flag will be true, so the UCT
dialog will open. If the improvements pref is enabled, then it'll use
the value of the new pref. Also add a an interface for the pref to the
about:preferences UI, and automatically migrate a false value for
browser.download.improvements_to_download_panel to a true value for this
pref. I'm updating some tangentially related test files since they
happen to be touched slightly by this change. Strictly speaking they
would still work, but if the pref value was somehow changed from the
default they would fail.

Differential Revision: https://phabricator.services.mozilla.com/D143002
2022-04-15 18:13:11 +00:00
..
dialogs Bug 1520913 - Allow password manager exceptions in policy. r=mstriemer,fluent-reviewers,flod,preferences-reviewers,Gijs 2022-04-14 19:41:32 +00:00
tests Bug 1747343 - Add pref to set default action for new mimetypes. r=Gijs,fluent-reviewers,preferences-reviewers 2022-04-15 18:13:11 +00:00
containers.inc.xhtml
containers.js Bug 1294999 - put module getters in preferences.js and de-duplicate them, r=jaws,preferences-reviewers 2021-12-01 16:35:25 +00:00
experimental.inc.xhtml
experimental.js Bug 1294999 - put module getters in preferences.js and de-duplicate them, r=jaws,preferences-reviewers 2021-12-01 16:35:25 +00:00
extensionControlled.js Bug 1507619 - Simplified the extension-controlled preference notice. r=jaws 2022-03-10 19:06:04 +00:00
findInPage.js Bug 1731442 - Track locally if there are any ranges added to the find-in-page selection and skip the interface querying if no ranges are present to prevent intermittent test failures. r=Gijs,preferences-reviewers 2022-02-28 18:43:25 +00:00
fxaPairDevice.js 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
fxaPairDevice.xhtml
home.inc.xhtml
home.js Bug 1711719 - Disable new tab menulist if preference is locked. r=Gijs,preferences-reviewers 2022-04-13 17:56:37 +00:00
jar.mn Bug 1736218 - Implement website appearance chooser. r=Gijs,fluent-reviewers,preferences-reviewers,flod 2022-03-17 14:44:04 +00:00
main.inc.xhtml Bug 1747343 - Add pref to set default action for new mimetypes. r=Gijs,fluent-reviewers,preferences-reviewers 2022-04-15 18:13:11 +00:00
main.js Bug 1747343 - Add pref to set default action for new mimetypes. r=Gijs,fluent-reviewers,preferences-reviewers 2022-04-15 18:13:11 +00:00
more-from-mozilla-qr-code-advanced.svg Bug 1740393 Update preffed off "More from Mozilla 96" experiment w/QR code & email link, r=preferences-reviewers,desktop-theme-reviewers,pdahiya,dao,mstriemer 2021-12-04 17:37:37 +00:00
more-from-mozilla-qr-code-simple-cn.svg Bug 1741795 - Make More from Mozilla content customizable by partner repacks r=preferences-reviewers,mviar,hectorz 2022-01-14 22:57:34 +00:00
more-from-mozilla-qr-code-simple.svg Bug 1740393 Update preffed off "More from Mozilla 96" experiment w/QR code & email link, r=preferences-reviewers,desktop-theme-reviewers,pdahiya,dao,mstriemer 2021-12-04 17:37:37 +00:00
moreFromMozilla.inc.xhtml Bug 1757353: Add browser usage telemetry for links in about:preferences. r=Gijs,preferences-reviewers 2022-03-14 21:54:03 +00:00
moreFromMozilla.js Bug 1758028 - Implement PBM modal content as per finalized design r=pdahiya,preferences-reviewers,flod 2022-03-23 14:03:18 +00:00
moz.build
preferences.js Bug 1751093 - Clean up Cloud Storage API and its usage in about:preferences r=preferences-reviewers,Gijs 2022-04-07 10:17:13 +00:00
preferences.xhtml Bug 371900, remove more now-unneeded empty oncommand attributes, r=bgrins,preferences-reviewers,Gijs 2022-01-11 20:02:30 +00:00
privacy.inc.xhtml Bug 1685575 - Removing browser.contentblocking.state-partitioning.mvp.ui.enabled because it’s always set to true. r=pbz 2022-03-22 12:47:49 +00:00
privacy.js Bug 1685575 - Removing browser.contentblocking.state-partitioning.mvp.ui.enabled because it’s always set to true. r=pbz 2022-03-22 12:47:49 +00:00
search.inc.xhtml Bug 1728430 - Part 2: Update the Firefox Suggest preferences UI. r=mak 2021-09-06 18:56:11 +00:00
search.js Bug 1499095 - Remove engines hidden by policy after restoring defaults. r=Standard8 2022-04-12 14:58:45 +00:00
searchResults.inc.xhtml
sync.inc.xhtml Bug 1710392 - Consolidate info boxes in about:preferences r=Gijs,preferences-reviewers 2021-09-21 18:14:52 +00:00
sync.js 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
web-appearance-dark.svg Bug 1736218 - Implement website appearance chooser. r=Gijs,fluent-reviewers,preferences-reviewers,flod 2022-03-17 14:44:04 +00:00
web-appearance-light.svg Bug 1736218 - Implement website appearance chooser. r=Gijs,fluent-reviewers,preferences-reviewers,flod 2022-03-17 14:44:04 +00:00