Commit Graph

105 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
ecba84bda4 Bug 1802508 - Use width property rather than attribute for site permission label/menulists. r=mconley,settings-reviewers
Width attribute stopped working the moment we made labels use modern
flex / block layout.

Differential Revision: https://phabricator.services.mozilla.com/D163253
2022-11-28 22:11:01 +00:00
Emilio Cobos Álvarez
c81a0b84cb Bug 1800828 - Simplify markup of fonts dialog. r=Gijs,settings-reviewers
This doesn't fix the bug but removes some unnecessary elements (now that the
prefs search was improved), and moves some CSS out of inline styles into
already-existing rules.

Differential Revision: https://phabricator.services.mozilla.com/D162342
2022-11-18 13:34:42 +00:00
Gijs Kruitbosch
7c2395c270 Bug 1329643 - implement generic richlistbox improvements for keyboard focus, r=Jamie,settings-reviewers,mossop
Rather than having each richlistbox consumer having to reinvent focus patterns for
buttons and menulists in its 'rich' items, let's just teach richlistbox and
richlistitem to not suck at keyboard navigation. That way we won't keep forgetting
to deal with this whenever we add new lists anywhere.

This allows us to remove the custom handling in sitePermissions.js, and the same
handling should be covered by the existing test, ie
browser/components/preferences/tests/browser_permissions_dialog.js

To summarize the desired keyboard behaviour:
- tab/shift-tab move focus to controls inside selected items only (not other rows)
- arrow keys move the list selection up/down
- when arrowing to move the list selection, focus moves with the selection if it
  was previously on a control in the previously selected item.

Differential Revision: https://phabricator.services.mozilla.com/D161528
2022-11-14 21:07:08 +00:00
Emilio Cobos Álvarez
ba0666dbcd Bug 1798171 - Remove vertical spacers in site permission dialog. r=mconley
We size to the minimum vertical size, so by default they don't take any space
at all anyways.

When scrolling, the min size of the content flexes along with them causing
broken sizing.

Differential Revision: https://phabricator.services.mozilla.com/D160723
2022-10-31 21:54:33 +00:00
Emilio Cobos Álvarez
9f20e4d1f4 Bug 1797345 - Use width property rather than attribute in permission dialogs and so. r=pbz
While at it, contain the permission list so that adding items doesn't
grow the dialog.

Differential Revision: https://phabricator.services.mozilla.com/D160302
2022-10-27 09:12:09 +00:00
mleclair
012c4866f3 Bug 1741955: allow value set through about:config for trr mode to precede about:pref r=kershaw,pbz
Differential Revision: https://phabricator.services.mozilla.com/D159369
2022-10-19 20:06:30 +00:00
Gijs Kruitbosch
450ac5ac39 Bug 1794757 - autoplay dialog should wait for translation to finish before showing and determining size to avoid buttons being cut off, r=kpatenio
The sitePermissions code is reused, and all dialogs work OK except the autoplay one.
This is because the autoplay code adds extra content not present in the other
dialogs, and localizes it.
The SubDialog code relies on determining the size of the dialog once the
mozSubDialogReady promise resolves, which it does before fluent puts in l10n data
for the content that was just added. This patch fixes that.

It also, as a driveby, correctly pauses and resumes observing l10n attributes
in the doc when making modifications, to avoid fluent doing a second pass for
the same content.

Differential Revision: https://phabricator.services.mozilla.com/D159543
2022-10-19 14:59:22 +00:00
Mark Banner
5407bdffa8 Bug 1792341 - Migrate more toolkit/modules consumers to use direct ES module import. r=Gijs,webdriver-reviewers,perftest-reviewers,necko-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,sgalich,owlish,bytesized,AlexandruIonescu,whimboo,mconley,mixedpuppy
Mainly automated changes. Some manual ESLint fixes and whitespace cleanup.

Differential Revision: https://phabricator.services.mozilla.com/D158452
2022-10-18 11:21:26 +00:00
Emilio Cobos Álvarez
e5685e8457 Bug 1794987 - Simplify preferences find-in-page tooltip implementation. r=mconley,Gijs,preferences-reviewers
<menulist> still uses legacy XUL layout (for reasons, I plan to fix it
but it can take a little bit).

The issue here is a poor interaction between one of the wrapping hboxes
and the xul layout. But we can simplify the code and fix the bug at the
same time, so do that.

Differential Revision: https://phabricator.services.mozilla.com/D159254
2022-10-14 10:41:35 +00:00
Sammy Khamis
bebe842cd0 Bug 1792328 - remove min-height from choose what to sync dialog r=emilio,fluent-reviewers,flod,preferences-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D159133
2022-10-13 21:07:55 +00:00
Emilio Cobos Álvarez
aa46a42975 Bug 1793558 - Fix a typo introduced in bug 1784265. r=Itiel,preferences-reviewers,Gijs
fcb1a053fb (l13.21)

Replaced a 3 with a 1.

Differential Revision: https://phabricator.services.mozilla.com/D158557
2022-10-10 08:08:27 +00:00
Emilio Cobos Álvarez
0fbe1b3bab Bug 1792809 - Make library and other windows keep stretching after bug 1665476. r=eemeli
Much like the dialog changes in bug 1792730.

Differential Revision: https://phabricator.services.mozilla.com/D158351
2022-10-04 10:21:05 +00:00
Emilio Cobos Álvarez
22c7dc0b6a Bug 1792730 - Keep dialogs stretching over their preferred width after bug 1665476. r=Gijs,preferences-reviewers,eemeli
width gets honored properly now. What these want is really a min-width.

Differential Revision: https://phabricator.services.mozilla.com/D158286
2022-10-02 01:40:13 +00:00
Francesco Lodolo (:flod)
16a2555acd Bug 1692653 - Fall back to locale code without region when resolving language names in Accept-Languages, r=Gijs,preferences-reviewers
If a locale code with region (e.g. it-IT) is not defined in language.properties, we display an empty language name.
In this dialog, we can still show a language name if it matches a known locale code without the region (e.g. it).

Differential Revision: https://phabricator.services.mozilla.com/D157113
2022-09-12 13:02:25 +00:00
Dão Gottwald
d1efd3dc88 Bug 1785203 - Consolidate sub-dialog title bar styling and update Colors dialog default width. r=Itiel,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D154877
2022-08-18 16:52:58 +00:00
Emilio Cobos Álvarez
0f16115b60 Bug 1784265 - Drop support for flex attribute values other than 0 and 1. r=dholbert,mconley,preferences-reviewers
This makes it easier to get parity between legacy and regular flex
without having to either have tons of arbitrary attribute selectors in
the xul sheet, nor adding attribute lookup hacks to the html flexbox
layout.

Also, reimplement the remaining supported flex attribute-values (0 and 1)
purely in terms of CSS rules in xul.css (regardless of whether
emulate-moz-box-with-flex is enabled).

In practice these are pretty uncommon and the style attribute does the
trick in every case I've tried.

Add a debug-only assertion to ensure we preserve behavior for now.

Add a new test with another behavior difference between flexbox
emulation and old xul layout because the old reftest now passes. Use
replaced elements, which in modern flex are treated differently.

Differential Revision: https://phabricator.services.mozilla.com/D154394
2022-08-12 23:13:41 +00:00
Marian-Vasile Laza
b160c98958 Backed out 3 changesets (bug 1784265) for causing reftest failures on flex-emulation-1.xhtml. CLOSED TREE
Backed out changeset 415da4b53bdd (bug 1784265)
Backed out changeset e27b21c54b1f (bug 1784265)
Backed out changeset fcb1a053fbe2 (bug 1784265)
2022-08-13 01:14:13 +03:00
Emilio Cobos Álvarez
5c4a2beefd Bug 1784265 - Drop support for flex attribute values other than 0 and 1. r=dholbert,mconley,preferences-reviewers
This makes it easier to get parity between legacy and regular flex
without having to either have tons of arbitrary attribute selectors in
the xul sheet, nor adding attribute lookup hacks to the html flexbox
layout.

Also, reimplement the remaining supported flex attribute-values (0 and 1)
purely in terms of CSS rules in xul.css (regardless of whether
emulate-moz-box-with-flex is enabled).

In practice these are pretty uncommon and the style attribute does the
trick in every case I've tried.

Add a debug-only assertion to ensure we preserve behavior for now.

Add a new test with another behavior difference between flexbox
emulation and old xul layout because the old reftest now passes. Use
replaced elements, which in modern flex are treated differently.

Differential Revision: https://phabricator.services.mozilla.com/D154394
2022-08-12 19:34:34 +00:00
Mark Banner
d026f430f6 Bug 1779982 - Migrate places consumers to use ESM imports directly. r=mak,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D152005
2022-07-20 22:34:21 +00:00
smolnar
ee079d37e2 Backed out 8 changesets (bug 1779982, bug 1780017, bug 1780347) for causing doc generate failures. CLOSED TREE
Backed out changeset 3f22c0f99cf1 (bug 1780347)
Backed out changeset 6f20b7e4b21b (bug 1780017)
Backed out changeset ae6062c69aeb (bug 1780017)
Backed out changeset e668d7778d97 (bug 1780017)
Backed out changeset e158fc41594b (bug 1780017)
Backed out changeset d4c69c956271 (bug 1779982)
Backed out changeset 145212fd826d (bug 1779982)
Backed out changeset 54079aaa1857 (bug 1779982)
2022-07-20 22:43:53 +03:00
Mark Banner
8715b062f5 Bug 1779982 - Migrate places consumers to use ESM imports directly. r=mak,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D152005
2022-07-20 15:50:40 +00:00
Iulian Moraru
bc13570de5 Backed out 7 changesets (bug 1779982, bug 1780017) for causing multiple failures. CLOSED TREE
Backed out changeset f33a58aa2f3f (bug 1780017)
Backed out changeset e21c85d61b91 (bug 1780017)
Backed out changeset 213ee5578e7c (bug 1780017)
Backed out changeset ea9b3bf42ea1 (bug 1780017)
Backed out changeset d2d8530f3c4d (bug 1779982)
Backed out changeset 088e5148c307 (bug 1779982)
Backed out changeset 267e08f3868a (bug 1779982)
2022-07-20 15:44:53 +03:00
Mark Banner
2bd76952c1 Bug 1779982 - Migrate places consumers to use ESM imports directly. r=mak,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D152005
2022-07-20 10:36:49 +00:00
Tooru Fujisawa
328d63ce7f Bug 1777486 - Part 2: Migrate XPCOMUtils.jsm consumers with automatic migration. r=webdriver-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,kmag,owlish,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D151214
2022-07-12 04:21:34 +00:00
Andreea Pavel
f009ba2983 Backed out 11 changesets (Bug 1777486) for failing bc at browser_startup.js on a CLOSED TREE
Backed out changeset b6c4c386f1a6 (Bug 1777486)
Backed out changeset 195cc2de8433 (Bug 1777486)
Backed out changeset 20c746fb1648 (Bug 1777486)
Backed out changeset d5fd8173d62d (Bug 1777486)
Backed out changeset 6d758fab5a3e (Bug 1777486)
Backed out changeset e938b601ba15 (Bug 1777486)
Backed out changeset 0c4ea0b9416b (Bug 1777486)
Backed out changeset 0559c53cc668 (Bug 1777486)
Backed out changeset eea573d3a9f9 (Bug 1777486)
Backed out changeset 9ce3a6496a49 (bug 1777486)
Backed out changeset b0867652fc48 (bug 1777486)
2022-07-11 22:24:40 +03:00
Tooru Fujisawa
bf0a8b781b Bug 1777486 - Part 2: Migrate XPCOMUtils.jsm consumers with automatic migration. r=webdriver-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,kmag,owlish,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D151214
2022-07-11 15:09:13 +00:00
Tooru Fujisawa
48c568867c Bug 1667455 - Part 5: Stop importing Services.jsm from chrome-priv JS code, top-level single-line cases. r=kmag,webdriver-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,extension-reviewers,application-update-reviewers,pip-reviewers,twisniewski,m_kato,jdescottes,mconley,AlexandruIonescu,mossop
Differential Revision: https://phabricator.services.mozilla.com/D150894
2022-07-11 12:41:50 +00:00
Hannah Peuckmann
3131d76ba6 Bug 1722228 - Fix backspace triggers clearing of site data on macOS. r=pbz,preferences-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D145540
2022-05-23 12:42:07 +00:00
Cosmin Sabou
adccf316fd Backed out changeset 9fe7e79e2e01 (bug 1722228) for browser-chrome failures on browser_siteData2.js. 2022-05-19 10:40:35 +03:00
Hannah Peuckmann
12b616c559 Bug 1722228 - Fix backspace triggers clearing of site data on macOS. r=pbz,preferences-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D145540
2022-05-19 06:37:41 +00:00
Greg Tatum
3a42838276 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
Mike Kaply
f63f640b03 Bug 1520913 - Allow password manager exceptions in policy. r=mstriemer,fluent-reviewers,flod,preferences-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D142886
2022-04-14 19:41:32 +00:00
Hannah Peuckmann
6ad4e83fd6 Bug 1724690 - Check for invalid combination of capability and type. r=pbz,preferences-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D137733
2022-02-10 15:53:46 +00:00
Greg Tatum
4b07ce32cc 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
5d4553e73a 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
79d3b1c3a1 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
2649c5fb78 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
a8c3f4603b 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
Gijs Kruitbosch
cb99d50b79 Bug 1739888 - allow offline website data checkbox label in prefs' sanitize (clear recent history) dialog to wrap, r=preferences-reviewers,jaws
Differential Revision: https://phabricator.services.mozilla.com/D132964
2021-12-09 15:58:45 +00:00
Gijs Kruitbosch
41fdc16945 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
a13dc4839b Bug 1723525 - remove dead references from site data settings dialogs r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D122749
2021-08-17 09:24:07 +00:00
Gijs Kruitbosch
29869758fc Bug 1721474 - use sentence case in the clear recent history dialog, r=mconley,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D122649
2021-08-14 17:43:14 +00:00
Stefan Zabka
21be4bf64f Bug 1715499 - Display special dialogue for single base domain r=pbz,fluent-reviewers,preferences-reviewers,flod,Gijs,jaws
Differential Revision: https://phabricator.services.mozilla.com/D118729
2021-07-20 18:52:03 +00:00
Nihanth Subramanya
aaa460993f Bug 1720379 - Also write TRR mode if we write the TRR URI when accepting Connection Settings dialog. r=preferences-reviewers,Gijs
We treat clicking "Accept" as a user-choice even if no settings were changed.
We should persist both the TRR mode and URI that were visible in the dialog
at the time of acceptance of the dialog.

Differential Revision: https://phabricator.services.mozilla.com/D119877
2021-07-16 18:25:55 +00:00
Alexandru Michis
16ededf757 Backed out changeset ce1ef542fb6c (bug 1720379) for causing bc failures in browser_connection_dnsoverhttps.js
CLOSED TREE
2021-07-16 19:56:17 +03:00
Nihanth Subramanya
6da08708bc Bug 1720379 - Also write TRR mode if we write the TRR URI when accepting Connection Settings dialog. r=preferences-reviewers,Gijs
We treat clicking "Accept" as a user-choice even if no settings were changed.
We should persist both the TRR mode and URI that were visible in the dialog
at the time of acceptance of the dialog.

Differential Revision: https://phabricator.services.mozilla.com/D119877
2021-07-16 16:05:34 +00:00
Matthew Noorenberghe
dcd8e276b4 Bug 970675 - Hide private browsing session permissions in dialogs/permissions.js. r=johannh
Port Bug 1601256 to dialogs/permissions.js. Unfortunately these files forked even though they are very similar. This leads to bugs like this being introduced.

Differential Revision: https://phabricator.services.mozilla.com/D118888
2021-07-12 15:04:23 +00:00
Noemi Erli
3b5816e7f2 Backed out 3 changesets (bug 970675) for causing failures in browser_privatebrowsing_popupblocker.js CLOSED TREE
Backed out changeset 98f78b0795b7 (bug 970675)
Backed out changeset ec59b5b4094a (bug 970675)
Backed out changeset 5a1853ea9693 (bug 970675)
2021-07-12 17:38:14 +03:00
Matthew Noorenberghe
0a4bdbde1f Bug 970675 - Hide private browsing session permissions in dialogs/permissions.js. r=johannh
Port Bug 1601256 to dialogs/permissions.js. Unfortunately these files forked even though they are very similar. This leads to bugs like this being introduced.

Differential Revision: https://phabricator.services.mozilla.com/D118888
2021-07-12 13:53:44 +00:00
Paul Zuehlcke
87e75fd596 Bug 1712170 - Update preferences siteData dialog to list entries by base domain. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D116863
2021-07-06 21:11:00 +00:00