fune/browser/components/preferences/tests
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
..
addons
engine1
engine2
siteData Bug 1723574 - Migrate Windows 10 mochitest-browser-chrome suite from AWS to Azure r=jmaher,preferences-reviewers 2021-08-20 20:55:02 +00:00
.eslintrc.js
browser.ini Bug 1520913 - Allow password manager exceptions in policy. r=mstriemer,fluent-reviewers,flod,preferences-reviewers,Gijs 2022-04-14 19:41:32 +00:00
browser_advanced_update.js Bug 1602940 - Automated replacements to use Services.uuid. r=Gijs,necko-reviewers,preferences-reviewers,kershaw 2021-09-06 09:53:52 +00:00
browser_applications_selection.js Bug 1753696 - Automatic rewrite: replace add_task(setup with add_setup in browser mochitest, r=Standard8,webcompat-reviewers,twisniewski 2022-03-30 16:16:42 +00:00
browser_basic_rebuild_fonts_test.js Bug 1722561 - Avoid calling document.querySelectorAll repeatedly when loading about:preferences, r=Gijs,preferences-reviewers. 2021-07-28 11:21:13 +00:00
browser_browser_languages_subdialog.js Bug 1740067 - Add live language reloading tests; r=mstriemer,preferences-reviewers 2022-01-20 21:42:28 +00:00
browser_bug410900.js
browser_bug731866.js Bug 1690276 - Remove unused pref browser.preferences.exposeHTTPSOnly r=ckerschb,Gijs 2021-02-04 16:48:42 +00:00
browser_bug795764_cachedisabled.js Bug 1690276 - Remove unused pref browser.preferences.exposeHTTPSOnly r=ckerschb,Gijs 2021-02-04 16:48:42 +00:00
browser_bug1018066_resetScrollPosition.js
browser_bug1020245_openPreferences_to_paneContent.js Bug 1730702 - When switching to an already open but lazy/unloaded about:preferences tab and highlighting a section in it, wait for it to load first. r=dao 2021-09-15 15:01:37 +00:00
browser_bug1184989_prevent_scrolling_when_preferences_flipped.js
browser_bug1184989_prevent_scrolling_when_preferences_flipped.xhtml
browser_bug1547020_lockedDownloadDir.js
browser_bug1579418.js
browser_cert_export.js
browser_change_app_handler.js Bug 1704948 - Give XULCommandEvent a button property. r=smaug,preferences-reviewers 2021-04-20 17:44:16 +00:00
browser_checkspelling.js
browser_connection.js Bug 1720379 - Clear TRR mode and URI prefs after tests that accept the Connection Settings dialog. r=preferences-reviewers,Gijs 2021-07-16 18:25:55 +00:00
browser_connection_bug388287.js Bug 1720379 - Clear TRR mode and URI prefs after tests that accept the Connection Settings dialog. r=preferences-reviewers,Gijs 2021-07-16 18:25:55 +00:00
browser_connection_bug1445991.js
browser_connection_bug1505330.js
browser_connection_dnsoverhttps.js Bug 1667220 - Extend the timeout request on browser_connection_dnsoverhttps.js in lieu of splitting it up. r=sfoster,preferences-reviewers,Gijs 2022-03-03 22:33:28 +00:00
browser_containers_name_input.js Bug 1753696 - Automatic rewrite: replace add_task(setup with add_setup in browser mochitest, r=Standard8,webcompat-reviewers,twisniewski 2022-03-30 16:16:42 +00:00
browser_contentblocking.js Bug 1734328 - Part 4: Add disallow relaxing referrer policies for top navigation to the ETP strict list. r=anti-tracking-reviewers,preferences-reviewers,pbz 2022-03-28 10:32:52 +00:00
browser_contentblocking_categories.js Bug 1734328 - Part 4: Add disallow relaxing referrer policies for top navigation to the ETP strict list. r=anti-tracking-reviewers,preferences-reviewers,pbz 2022-03-28 10:32:52 +00:00
browser_contentblocking_standard_tcp_toggle.js Bug 1741597 - Revert cookie behavior to initial default value when dFPI rollout pref is set to false. r=timhuang 2022-04-14 16:32:34 +00:00
browser_cookie_exceptions_addRemove.js Bug 1677652 - request a longer timeout for tsan and debug runs of browser_cookie_exceptions_addRemove.js, r=pbz 2021-07-05 11:42:37 +00:00
browser_cookies_exceptions.js Bug 970675 - Hide private browsing session permissions in dialogs/permissions.js. r=johannh 2021-07-12 15:04:23 +00:00
browser_defaultbrowser_alwayscheck.js Bug 1689742 - Stop using XUL <deck> for #setDefaultPane. r=preferences-reviewers,Gijs 2021-01-30 16:31:53 +00:00
browser_engines.js Bug 1753696 - Automatic rewrite: replace add_task(setup with add_setup in browser mochitest, r=Standard8,webcompat-reviewers,twisniewski 2022-03-30 16:16:42 +00:00
browser_experimental_features.js
browser_experimental_features_filter.js Bug 1676524 - fix intermittent failures in browser_experimental_features_filter.js due to fluent races r=emilio 2021-08-16 12:57:29 +00:00
browser_experimental_features_hidden_when_not_public.js Bug 1667858, preference search filter should hide experiments that don't match the search terms, r=preferences-reviewers,Gijs 2020-11-10 16:36:23 +00:00
browser_experimental_features_resetall.js Bug 1646177, add button to reset all experimental features in preferences, r=Gijs,fluent-reviewers,preferences-reviewers,jaws 2020-11-10 23:10:38 +00:00
browser_extension_controlled.js Bug 1507619 - Simplified the extension-controlled preference notice. r=jaws 2022-03-10 19:06:04 +00:00
browser_filetype_dialog.js Bug 1753696 - Automatic rewrite: replace add_task(setup with add_setup in browser mochitest, r=Standard8,webcompat-reviewers,twisniewski 2022-03-30 16:16:42 +00:00
browser_fluent.js
browser_healthreport.js
browser_homepage_default.js
browser_homepages_filter_aboutpreferences.js
browser_homepages_use_bookmark.js Bug 1753696 - Automatic rewrite: replace add_task(setup with add_setup in browser mochitest, r=Standard8,webcompat-reviewers,twisniewski 2022-03-30 16:16:42 +00:00
browser_hometab_restore_defaults.js
browser_https_only_exceptions.js Bug 1662710 - Added UI to manage HTTPS-Only Mode exceptions from about:preferences. r=flod,Gijs 2021-05-27 20:07:32 +00:00
browser_https_only_section.js Bug 1671122 - Fixed bug where second click on HTTPS-Only Mode enable-checkbox disables it again. r=ckerschb,preferences-reviewers,Gijs 2020-10-15 19:54:31 +00:00
browser_ignore_invalid_capability.js Bug 1724690 - Check for invalid combination of capability and type. r=pbz,preferences-reviewers,Gijs 2022-02-10 15:53:46 +00:00
browser_languages_subdialog.js Bug 1674135 - Don't destroy frames from hideDialog() as we rely on printing hidden frames. r=Gijs,preferences-reviewers 2020-11-04 11:03:48 +00:00
browser_layersacceleration.js
browser_localSearchShortcuts.js Bug 1665049 - Remove browser.urlbar.update2. r=harry 2020-12-18 10:01:24 +00:00
browser_moreFromMozilla.js Bug 1754110 - Update Send email link in MoreFromMozilla r=preferences-reviewers,mstriemer 2022-02-18 17:48:22 +00:00
browser_moreFromMozilla_locales.js Bug 1747149 - Consolidate logic for when to show VPN promo and add BrowserUtils test r=dmose,preferences-reviewers,prathiksha,Gijs 2022-02-14 14:21:04 +00:00
browser_newtab_menu.js Bug 1704948 - Give XULCommandEvent a button property. r=smaug,preferences-reviewers 2021-04-20 17:44:16 +00:00
browser_notifications_do_not_disturb.js
browser_open_download_preferences.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
browser_password_management.js Bug 1608272 - Remove 'this' as the second argument to 'ChromeUtils.import', use object destructuring instead (test-only changes). r=Gijs 2021-02-11 22:02:15 +00:00
browser_pdf_disabled.js Bug 1759984, always show pdf in applications list even when the internal pdf viewer is disabled, r=Gijs,preferences-reviewers 2022-04-12 16:02:28 +00:00
browser_performance.js Bug 1685961 - Hide Content Process Limit UI r=Gijs 2021-03-01 18:23:31 +00:00
browser_performance_content_process_limit.js Bug 1685961 - Hide Content Process Limit UI r=Gijs 2021-03-01 18:23:31 +00:00
browser_performance_e10srollout.js
browser_performance_non_e10s.js
browser_permissions_checkPermissionsWereAdded.js Bug 1662710 - Added UI to manage HTTPS-Only Mode exceptions from about:preferences. r=flod,Gijs 2021-05-27 20:07:32 +00:00
browser_permissions_dialog.js Bug 1667781 - Refactored permission preferences dialog to use dialog element. r=Gijs,fluent-reviewers,preferences-reviewers 2020-10-07 18:41:35 +00:00
browser_permissions_dialog_default_perm.js Bug 1753696 - Automatic rewrite: replace add_task(setup with add_setup in browser mochitest, r=Standard8,webcompat-reviewers,twisniewski 2022-03-30 16:16:42 +00:00
browser_permissions_urlFieldHidden.js
browser_primaryPassword.js Bug 1653486 - Replace all non-user-facing references to "master" password. r=dimi,tgiles,preferences-reviewers 2022-02-17 17:29:57 +00:00
browser_privacy_firefoxSuggest.js Bug 1756162 - Make the visibility of the "Top Pick" checkbox depend entirely on whether the best match feature is enabled. r=preferences-reviewers,Gijs 2022-02-23 19:03:32 +00:00
browser_privacy_passwordGenerationAndAutofill.js
browser_privacy_segmentation_pref.js Backed out changeset 269b4d7154ec (bug 1748993) for causing privacy related bc failures. 2022-02-01 02:24:07 +02:00
browser_privacypane_2.js
browser_privacypane_3.js
browser_proxy_backup.js Bug 1720379 - Clear TRR mode and URI prefs after tests that accept the Connection Settings dialog. r=preferences-reviewers,Gijs 2021-07-16 18:25:55 +00:00
browser_sanitizeOnShutdown_prefLocked.js Bug 1753696 - Automatic rewrite: replace add_task(setup with add_setup in browser mochitest, r=Standard8,webcompat-reviewers,twisniewski 2022-03-30 16:16:42 +00:00
browser_search_no_results_change_category.js
browser_search_subdialog_tooltip_saved_addresses.js Bug 1476664 - fix search term tooltip for Add button in saved addresses dialog r=preferences-reviewers,jaws 2021-10-21 16:33:22 +00:00
browser_search_subdialogs_within_preferences_1.js Bug 1678829 fix permafail due to pref change during render of about:preferences r=preferences-reviewers,ntim 2020-12-16 22:37:03 +00:00
browser_search_subdialogs_within_preferences_2.js
browser_search_subdialogs_within_preferences_3.js
browser_search_subdialogs_within_preferences_4.js
browser_search_subdialogs_within_preferences_5.js Bug 1736218 - Split "Fonts and Colors" into two sections in about:preferences. r=Gijs,fluent-reviewers,preferences-reviewers,dao,flod 2022-03-17 14:44:04 +00:00
browser_search_subdialogs_within_preferences_6.js
browser_search_subdialogs_within_preferences_7.js
browser_search_subdialogs_within_preferences_8.js
browser_search_subdialogs_within_preferences_site_data.js
browser_search_within_preferences_1.js Bug 1736218 - Implement website appearance chooser. r=Gijs,fluent-reviewers,preferences-reviewers,flod 2022-03-17 14:44:04 +00:00
browser_search_within_preferences_2.js
browser_search_within_preferences_command.js
browser_searchChangedEngine.js Bug 1696027 - Remove use of nsISearchEngine.addEngineWithDetails from mochitests. r=daleharvey 2021-03-10 14:21:12 +00:00
browser_searchDefaultEngine.js Bug 1753696 - Automatic rewrite: replace add_task(setup with add_setup in browser mochitest, r=Standard8,webcompat-reviewers,twisniewski 2022-03-30 16:16:42 +00:00
browser_searchRestoreDefaults.js Bug 1681818 - In the search preferences UI, fix tree view problems that arise when engines are removed and restored due to the local shortcuts being present. r=mak 2020-12-23 00:58:51 +00:00
browser_searchShowSuggestionsFirst.js Bug 1688786 - Add a browser.urlbar.showSearchSuggestionsFirst pref. r=mak,preferences-reviewers 2021-01-28 23:23:16 +00:00
browser_searchsuggestions.js Bug 1753696 - Automatic rewrite: replace add_task(setup with add_setup in browser mochitest, r=Standard8,webcompat-reviewers,twisniewski 2022-03-30 16:16:42 +00:00
browser_security-1.js Bug 1753696 - Automatic rewrite: replace add_task(setup with add_setup in browser mochitest, r=Standard8,webcompat-reviewers,twisniewski 2022-03-30 16:16:42 +00:00
browser_security-2.js Bug 1753696 - Automatic rewrite: replace add_task(setup with add_setup in browser mochitest, r=Standard8,webcompat-reviewers,twisniewski 2022-03-30 16:16:42 +00:00
browser_site_login_exceptions.js
browser_site_login_exceptions_policy.js Bug 1520913 - Allow password manager exceptions in policy. r=mstriemer,fluent-reviewers,flod,preferences-reviewers,Gijs 2022-04-14 19:41:32 +00:00
browser_spotlight.js Bug 1745248 - Allow each autofill feature to detect if it should be enabled depending on search region. r=dimi,sgalich,preferences-reviewers,skhamis,LougeniaBailey 2022-02-08 19:31:58 +00:00
browser_statePartitioning_PBM_strings.js Bug 1734328 - Part 4: Add disallow relaxing referrer policies for top navigation to the ETP strict list. r=anti-tracking-reviewers,preferences-reviewers,pbz 2022-03-28 10:32:52 +00:00
browser_statePartitioning_strings.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
browser_subdialogs.js Bug 1710462 - allow SubDialogs dialogs to grow if the document's inner scroll height is initially larger than the window's, r=Mardak,preferences-reviewers,jaws 2021-05-13 15:05:24 +00:00
browser_sync_chooseWhatToSync.js Bug 1584132 - Added test to ensure chooseWhatToSync dialog correctly updates. r=markh,preferences-reviewers,Gijs 2021-05-04 22:17:11 +00:00
browser_sync_disabled.js
browser_sync_pairing.js Bug 1753696 - Automatic rewrite: replace add_task(setup with add_setup in browser mochitest, r=Standard8,webcompat-reviewers,twisniewski 2022-03-30 16:16:42 +00:00
browser_telemetry.js
browser_warning_permanent_private_browsing.js
empty_pdf_file.pdf Bug 1716564 Add test for saving files with download preferences r=mtigley 2021-06-25 17:11:56 +00:00
head.js Bug 1476664 - fix search term tooltip for Add button in saved addresses dialog r=preferences-reviewers,jaws 2021-10-21 16:33:22 +00:00
privacypane_tests_perwindow.js
subdialog.xhtml
subdialog2.xhtml