Commit graph

148 commits

Author SHA1 Message Date
Max Christian Pohle
d7285c1262 Bug 1643309 - About dialog falsely claims App "is up to date" when offline, r=bytesized,application-update-reviewers,fluent-reviewers,settings-reviewers,bhearsum,flod
This commit is based on a patch written by Priyank Singh <preyunk>. Thank you
for your contribution, which is strongly appreciated. The original patch was
discussed here: https://phabricator.services.mozilla.com/D97972#3405294

Differential Revision: https://phabricator.services.mozilla.com/D159907
2022-12-06 22:29:11 +00:00
Mark Banner
93aef2d7b3 Bug 1803756 - Automatically replace Cu.reportError with console.error (preferences). r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D163701
2022-12-06 02:26:51 +00:00
Norisz Fay
fee6c58ce8 Backed out changeset e87383813223 (bug 1643309) for causing bc failures on browser_aboutDialog_fc_check_cantApply.js CLOSED TREE 2022-11-18 21:55:40 +02:00
Max Christian Pohle
bf2b704855 Bug 1643309 - About dialog falsely claims App "is up to date" when offline, r=bytesized,application-update-reviewers,fluent-reviewers,settings-reviewers,bhearsum,flod
This commit is based on a patch written by Priyank Singh <preyunk>. Thank you
for your contribution, which is strongly appreciated. The original patch was
discussed here: https://phabricator.services.mozilla.com/D97972#3405294

Differential Revision: https://phabricator.services.mozilla.com/D159907
2022-11-18 17:16:55 +00:00
Mike Kaply
729633726b Bug 1769265 - Disabling updater for packages should not be Windows specific. r=bhearsum,settings-reviewers,application-update-reviewers,bytesized
Differential Revision: https://phabricator.services.mozilla.com/D160069
2022-10-28 12:49:24 +00:00
Cristian Tuns
3927e0215d Backed out changeset 2fd5aae2c05a (bug 1769265) for causing xpcshell failures on win 2004 CLOSED TREE 2022-10-27 13:25:48 -04:00
Mike Kaply
23c4c15e90 Bug 1769265 - Disabling updater for packages should not be Windows specific. r=bhearsum,settings-reviewers,application-update-reviewers,bytesized
Differential Revision: https://phabricator.services.mozilla.com/D160069
2022-10-27 15:18:35 +00:00
Mark Hammond
36b2282d01 Bug 1792550 - ensure the primary password is unlocked before signing in to sync. r=Mardak,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D158719
2022-10-12 22:31:37 +00:00
Emilio Cobos Álvarez
39f1cded4f Bug 1790307 - Remove equalsize="always" usage from preferences. r=Gijs,preferences-reviewers
Emulated flexbox doesn't support this, but allows you to specify widths
in percentages instead, so do that.

Differential Revision: https://phabricator.services.mozilla.com/D157073
2022-09-19 09:39:33 +00:00
Iulian Moraru
69e0a4a35b Backed out 2 changesets (bug 1790307) as per Emilio's request. CLOSED TREE
Backed out changeset fd57a3ea2b88 (bug 1790307)
Backed out changeset 646ae1f6d62c (bug 1790307)
2022-09-18 08:57:40 +03:00
Emilio Cobos Álvarez
fb04e21e8c Bug 1790307 - Remove equalsize="always" usage from preferences. r=Gijs,preferences-reviewers
Emulated flexbox doesn't support this, but allows you to specify widths
in percentages instead, so do that.

Differential Revision: https://phabricator.services.mozilla.com/D157073
2022-09-13 12:17:12 +00:00
Kirk Steuber
d2735f5957 Bug 1786667 - Don't access update components in BrowserGlue if Firefox was not built with support for them r=bhearsum,preferences-reviewers
This patch was made to guard Update functionality from being called in BrowserGlue.jsm if Firefox was not built with support for the Updater. However, it also ended up touching the updater build configuration. I discovered while testing this patch that building with `--disable-updater` does not imply `--disable-maintenance-service` or `--disable-update-agent`. So I fixed that issue as well. Once that was fixed, I could change some other code that checked `AppConstants.MOZ_UPDATER && AppConstants.MOZ_UPDATE_AGENT` since that is now equivilant to `AppConstants.MOZ_UPDATE_AGENT`.

Differential Revision: https://phabricator.services.mozilla.com/D156902
2022-09-09 15:01:13 +00:00
Dão Gottwald
f0e33014a0 Bug 1788822 - Simplify color-scheme content override pref to only be [dark, light, auto]. r=emilio,fluent-reviewers,extension-reviewers,robwu,flod
Differential Revision: https://phabricator.services.mozilla.com/D156710
2022-09-08 17:55:07 +00:00
Gijs Kruitbosch
f65a03f73b Bug 1707462 - use system localized paths for settings' download folder display, and don't show 'Downloads' on Linux if that's not the folder's name, r=mak
Depends on D143480

Differential Revision: https://phabricator.services.mozilla.com/D143481
2022-05-23 21:57:03 +00:00
Shane Hughes
e35a0919fb Bug 1767367 - Fix inverted useDownloadDir pref. r=dao,preferences-reviewers,Gijs
I forgot to add a property in bug bug 1762775.
This patch just resolves that.

Differential Revision: https://phabricator.services.mozilla.com/D145289
2022-05-03 11:57:08 +00:00
Shane Hughes
d148fe50bc Bug 1762775 - Change download folder display in prefs UI. r=Gijs,fluent-reviewers,preferences-reviewers,desktop-theme-reviewers,dao,flod
The default download folder prefs are now counterintuitively used
whether browser.download.useDownloadDir is enabled or not, since we no
longer save downloads to the "temp" folder. But the display for these
prefs in about:preferences makes it seem as though the configured path
will not be used if the "Always ask..." option is selected. This patch
removes the radiogroup and replaces it with a checkbox, so that the
download folder path can be changed irrespective of useDownloadDir's
value (unless browser.download.dir is disabled by policy).

Differential Revision: https://phabricator.services.mozilla.com/D143555
2022-04-28 19:49:17 +00:00
Greg Tatum
f30d9ead28 Bug 1764920 - Install the langpack even if it is the fallback; r=platform-i18n-reviewers,preferences-reviewers,mstriemer,dminor
The fallback locale is not guaranteed to have all of the strings for
non-fluent files, even if it is one of the available locales. This patch
shares the logic with about:preferences for getting the available
locales.

Differential Revision: https://phabricator.services.mozilla.com/D143910
2022-04-28 15:00:57 +00:00
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
Butkovits Atila
f90c8918d4 Backed out changeset 543a78ca4fa9 (bug 1747343) for causing mochitest failures at browser_bug676619.js. CLOSED TREE 2022-04-13 03:31:53 +03:00
Shane Hughes
9a0bc90754 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-12 22:32:45 +00:00
Neil Deakin
a52b9fb911 Bug 1759984, always show pdf in applications list even when the internal pdf viewer is disabled, r=Gijs,preferences-reviewers
In addition, if someone has pdf set to open internally but then disables the pdf viewer, an error occurs when trying to view a pdf. Handle this case by just asking what to do.

Differential Revision: https://phabricator.services.mozilla.com/D143313
2022-04-12 16:02:28 +00:00
Punam Dahiya
2b39c9ff18 Bug 1751093 - Clean up Cloud Storage API and its usage in about:preferences r=preferences-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D137248
2022-04-07 10:17:13 +00:00
Greg Tatum
9b6077c202 Bug 1759577 - Centralize getScriptDirection into MozIntl; r=platform-i18n-reviewers,preferences-reviewers,Gijs,dminor
Differential Revision: https://phabricator.services.mozilla.com/D141003
2022-03-22 15:26:09 +00:00
Emilio Cobos Álvarez
b31dab5c3d Bug 1736218 - Implement website appearance chooser. r=Gijs,fluent-reviewers,preferences-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D140223
2022-03-17 14:44:04 +00:00
Emilio Cobos Álvarez
c7de191b45 Bug 1147847 - Allow users to enable overlay scrollbars on Linux from about:preferences. r=Gijs,fluent-reviewers,preferences-reviewers
We might want to do this on Windows 11 as well, but Windows 11 has a
system-wide preference with UI so let's not do that just yet at least,
UI-exposed preference.

Differential Revision: https://phabricator.services.mozilla.com/D138502
2022-02-14 07:43:42 +00:00
Shane Hughes
87f3ed2b2c Bug 1749155 - Add a Nightly-only option to suppress update available notifications. r=fluent-reviewers,bytesized
The new pref app.update.suppressPrompts will allow user to suppress
update-available prompts (popupnotifications) for up to seven days.
Instead, Nightly will display an update badge and banner immediately,
and wait 7 days before showing an interactive prompt. It will also
disable update-restart prompts entirely, instead showing badge and
banner. This also adds telemetry to measure how often these update
prompts are being suppressed via user preference. All of these features
are only enabled on Nightly builds.

Differential Revision: https://phabricator.services.mozilla.com/D135449
2022-02-02 00:09:54 +00:00
Mike Kaply
0f2af8604b Bug 1632058 - Always get distribution values from default prefs. r=preferences-reviewers,jaws
Differential Revision: https://phabricator.services.mozilla.com/D93805
2022-01-24 20:46:38 +00:00
Gijs Kruitbosch
9db34ce1e6 Bug 1150377 - stop sorting the columns in the application handler list for right/middle clicks, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D136747
2022-01-24 16:58:32 +00:00
Mathew Hodson
26dc098539 Bug 1749635 - Replace osfile.jsm usage in UpdateUtils.jsm. r=application-update-reviewers,nalexander,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D135661
2022-01-21 09:44:44 +00:00
Greg Tatum
d57ab751eb Bug 1740067 - Add live language reloading; r=mstriemer,preferences-reviewers
The tests are in the next patch.

Differential Revision: https://phabricator.services.mozilla.com/D136021
2022-01-20 21:42:27 +00:00
Greg Tatum
6dcc33d266 Bug 1740067 - Add code documentation to language switching preferences; r=mstriemer,platform-i18n-reviewers,preferences-reviewers,nordzilla
I felt somewhat disoriented in the code when ramping up on it, so I
started documenting it with JSDoc as way to better understand the code.

Differential Revision: https://phabricator.services.mozilla.com/D136020
2022-01-20 21:42:27 +00:00
Greg Tatum
75db126813 Bug 1740067 - Rename language switching variables to be more explicit; r=mstriemer,platform-i18n-reviewers,preferences-reviewers,nordzilla
These were all areas that were confusing me when I was onboarding on to
this code, so I tried to make the terminology less ambiguous and more
precise.

The default language is now the primary language.

UI is now appended to words that are dealing with DOM elements rather
than data stores.

Differential Revision: https://phabricator.services.mozilla.com/D136019
2022-01-20 21:42:27 +00:00
Mark Banner
4f4dd2fbae Bug 1750974 - Extend our ESLint import-globals-from function to support absolute directories. r=Gijs,mossop
Differential Revision: https://phabricator.services.mozilla.com/D136368
2022-01-20 14:15:34 +00:00
Hector Zhao
59546ccb97 Bug 1476781 - Use the locale specific language name in languages. r=platform-i18n-reviewers,preferences-reviewers,dminor
Differential Revision: https://phabricator.services.mozilla.com/D134865
2022-01-06 10:30:33 +00:00
Kirk Steuber
21fe3d1d47 Bug 1738983 - Enable Background Update by default on Release r=nalexander,preferences-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D133949
2021-12-16 18:49:29 +00:00
Gijs Kruitbosch
e885ac02af Bug 1744021 - force the update prefs to be disabled for at least one second when changing them, r=bytesized,preferences-reviewers,mstriemer,application-update-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D132959
2021-12-13 18:19:27 +00:00
Narcis Beleuzu
6757003595 Backed out changeset 1a5efeaef0a9 (bug 1744021) for bc failures on browser_aboutPrefs_settings.js. CLOSED TREE 2021-12-11 01:34:28 +02:00
Gijs Kruitbosch
f10139fed0 Bug 1744021 - force the update prefs to be disabled for at least one second when changing them, r=bytesized,preferences-reviewers,mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D132959
2021-12-10 21:25:00 +00:00
Gijs Kruitbosch
3b0145da09 Bug 1294999 - put module getters in preferences.js and de-duplicate them, r=jaws,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D132529
2021-12-01 16:35:25 +00:00
Gijs Kruitbosch
2f7ed81c5b Bug 1742146 - don't race localization against non-localization when updating the downloads prefs, r=jaws,preferences-reviewers
This race condition happens because some of the paths through displayDownloadDirPrefTask
are synchronous, and some are not, and we repeatedly call it in the same turn of the
event loop, both because downloads prefs are stored in 2 prefs, both of which impact
this display, and because the pref bindings like calling 'change' event listeners more
than once.

To make this reliably deterministic, instead of juggling callsites, just ensure that
the last caller to displayDownloadDirPrefTask is always the one that actually
determines the label that gets displayed.

Differential Revision: https://phabricator.services.mozilla.com/D131853
2021-11-23 22:46:31 +00:00
Itiel
661abe443c Bug 1710392 - Consolidate info boxes in about:preferences r=Gijs,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D115421
2021-09-21 18:14:52 +00:00
Itiel
42fc576ab9 Bug 1730767 - Set text descriptions in the message bar to RTL when the selected locale is RTL r=mstriemer,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D125597
2021-09-16 18:24:35 +00:00
Neil Deakin
f9724c80fd Bug 1730217, hide keyboard shortcut warning checkbox if the browser.quitShortcut.disabled preference if enabled, r=mhowell,preferences-reviewers,jaws
Differential Revision: https://phabricator.services.mozilla.com/D125246
2021-09-14 19:04:34 +00:00
Neil Deakin
d9f50dd2f4 Bug 1726736, add checkbox to the main preferences page for the confirm on pressing the quit keyboard shortcut setting, r=Gijs,fluent-reviewers,preferences-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D124223
2021-09-08 12:32:58 +00:00
Neil Deakin
bacad5868c Bug 1724976, whether to show quit warning should not be dependent on session restore state, and remove the redundant browser.sessionstore.warnOnQuit preference, r=Gijs,fluent-reviewers,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D124221
2021-09-08 12:32:57 +00:00
Gijs Kruitbosch
4fa576deda Bug 1723723 - stop using getURLSpecFromFile from JS code to avoid mainthread IO, r=florian
Differential Revision: https://phabricator.services.mozilla.com/D121620
2021-08-03 18:32:50 +00:00
Zibi Braniecki
0313b855ed Bug 1613705 - [localization] part16: Fix preferences language menu selection test. r=platform-i18n-reviewers,dminor
Depends on D116755

Differential Revision: https://phabricator.services.mozilla.com/D116791
2021-08-03 16:25:16 +00:00
Butkovits Atila
949da905e7 Backed out 19 changesets (bug 1613705) for causing build bustages complaining about Document.cpp. CLOSED TREE
Backed out changeset 2ee1091dd20d (bug 1613705)
Backed out changeset d377afc0b09f (bug 1613705)
Backed out changeset de9d4378f0ac (bug 1613705)
Backed out changeset 9843372abb6e (bug 1613705)
Backed out changeset 5fc5918e5905 (bug 1613705)
Backed out changeset a7aeae7afd49 (bug 1613705)
Backed out changeset 5d61617a5402 (bug 1613705)
Backed out changeset 85bf98573899 (bug 1613705)
Backed out changeset 175af8a1b8c2 (bug 1613705)
Backed out changeset 93fcb23d7898 (bug 1613705)
Backed out changeset 595529cd906f (bug 1613705)
Backed out changeset 9f3e2963d925 (bug 1613705)
Backed out changeset 442289058933 (bug 1613705)
Backed out changeset fc3b9acb0e81 (bug 1613705)
Backed out changeset 408983c64f7f (bug 1613705)
Backed out changeset 08b637fc3fcd (bug 1613705)
Backed out changeset 6ef0aafd2db0 (bug 1613705)
Backed out changeset d88b294e0a5e (bug 1613705)
Backed out changeset e6bebff87544 (bug 1613705)
2021-08-03 12:36:01 +03:00
Zibi Braniecki
3b52d14dc5 Bug 1613705 - [localization] part16: Fix preferences language menu selection test. r=platform-i18n-reviewers,dminor
Depends on D116755

Differential Revision: https://phabricator.services.mozilla.com/D116791
2021-08-03 05:52:06 +00:00
Zibi Braniecki
15e7d48273 Bug 1660392 - [l10nregistry] part7: Move L10nRegistry callees to use WebIDL one. r=preferences-reviewers,Gijs,platform-i18n-reviewers,gregtatum
Depends on D105416

Differential Revision: https://phabricator.services.mozilla.com/D105584
2021-07-30 16:47:49 +00:00