gecko-dev/dom/url
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
..
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
URL.cpp
URL.h Bug 1673931 - Avoid including BindingDeclarations.h from header files. r=nika 2021-03-04 14:32:14 +00:00
URLMainThread.cpp Backed out changeset 5cdc1511d8ca (bug 1686200) for causing multiple perma failures. CLOSED TREE 2021-01-13 15:23:32 +02:00
URLMainThread.h
URLSearchParams.cpp Bug 1590068 - Add fuzzing target for StructuredCloneData. r=baku,sfink 2021-12-08 18:59:02 +00:00
URLSearchParams.h Bug 1679273 - Fix bustage when building without MOZ_GECKO_PROFILER. r=gerald 2020-12-07 14:21:28 +00:00
URLWorker.cpp Bug 1744025 - Replace include "mozilla/dom/WorkerPrivate.h" with include "mozilla/dom/WorkerScope.h" where WorkerPrivate->GlobalScope() is called. r=dom-worker-reviewers,smaug,jstutte 2022-01-25 08:53:03 +00:00
URLWorker.h
moz.build Bug 1590068 - Add fuzzing target for StructuredCloneData. r=baku,sfink 2021-12-08 18:59:02 +00:00