Commit graph

10312 commits

Author SHA1 Message Date
Emilio Cobos Álvarez
25479ac406 Bug 1795339 - Some minor fixups to downloads to work with flex emulation. r=dao
The only tricky bit is the min-width that allows us to grow if needed...

Differential Revision: https://phabricator.services.mozilla.com/D159414
2022-10-17 18:26:35 +00:00
Emilio Cobos Álvarez
f8cba5a04a Bug 1790616 - Use modern flexbox for the toolbox. r=dao,Gijs
The min-width / contain are as usual to allow elements to shrink under
their intrinsic size. You can only see its effects with relatively thin
windows (or with a very large number of tabs in the tabstrip case).

Differential Revision: https://phabricator.services.mozilla.com/D157216
2022-10-17 17:19:09 +00:00
Emilio Cobos Álvarez
8df4d0eb75 Bug 1795199 - Make searchbar take something closer to the resized width. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D159381
2022-10-17 17:18:22 +00:00
Cristian Tuns
048e17d9f7 Backed out changeset e4566ce873ce (bug 1795339) for causing mochitest failures on test_doc_busy.html CLOSED TREE 2022-10-17 13:58:26 -04:00
Emilio Cobos Álvarez
b97592d969 Bug 1795286 - Improve how bookmarks toolbar items flex. r=Gijs
This preserves the min-width behavior that XUL had. Note that this
depends on D159377

Differential Revision: https://phabricator.services.mozilla.com/D159396
2022-10-17 17:07:16 +00:00
Emilio Cobos Álvarez
00c4be2ca6 Bug 1795339 - Some minor fixups to downloads to work with flex emulation. r=dao
The only tricky bit is the min-width that allows us to grow if needed...

Differential Revision: https://phabricator.services.mozilla.com/D159414
2022-10-17 16:52:27 +00:00
Emilio Cobos Álvarez
324c146ca6 Bug 1795335 - Use display: block for search autocomplete popup. r=dao
The interaction of legacy flexbox (menupopup) with block is a bit nicer
than with flex.

I'm going to update menupopup with modern flexbox as soon as I fix all
the browser-chrome tests and the soft freeze is over, but this is
harmless and fixes the bug both with and without modern flexbox.

Remove -moz-box-flex: 0; from search-panel-tree since it's now useless
(there's no flexing to do since parent isn't a flex container).

Differential Revision: https://phabricator.services.mozilla.com/D159407
2022-10-17 16:52:03 +00:00
Emilio Cobos Álvarez
314420aabd Bug 1795363 - Make sure tab icon labels don't wrap. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D159423
2022-10-17 16:47:16 +00:00
Itiel
9bbc0762a0 Bug 1169529 - Increase the likelihood of displaying more tabs to restore in about:sessionrestore r=desktop-theme-reviewers,dao
This will still depend on window size and zoom.

Differential Revision: https://phabricator.services.mozilla.com/D159094
2022-10-16 08:09:37 +00:00
Cristian Tuns
b4150d1c6f Backed out changeset f8554e4080f2 (bug 1793629) for causing mochitest failures on browser_preferences_usage.js CLOSED TREE 2022-10-15 16:14:29 -04:00
Tomislav Jovanovic
670a479833 Bug 1793629 - Implement attention indicator for the unified extensions button, r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D158938
2022-10-15 19:05:26 +00:00
Norisz Fay
dd7b52f2f0 Backed out changeset c5a9bca461ce (bug 1793629) for causing multiple mochitest failures CLOSED TREE 2022-10-15 01:56:26 +03:00
Tomislav Jovanovic
f136f0b270 Bug 1793629 - Implement attention indicator for the unified extensions button, r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D158938
2022-10-14 21:03:23 +00:00
Norisz Fay
add4693c87 Backed out changeset fb32775d2def (bug 1790616) as requested by dev CLOSED TREE 2022-10-14 20:00:05 +03:00
Emilio Cobos Álvarez
a6aead55f6 Bug 1795294 - Allow places menupopups to shrink under the available size. r=dao
I can also just drop min-width/height: 0 in the inline style if you'd
rather do that.

Differential Revision: https://phabricator.services.mozilla.com/D159402
2022-10-14 15:09:51 +00:00
Emilio Cobos Álvarez
8471187b14 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
Emilio Cobos Álvarez
ebde7d4029 Bug 1795049 - Avoid text overlapping on the update radiogroup. r=Gijs,preferences-reviewers
This can be easily tested shrinking the viewport width with the previous
patch applied and the accented locale. Text overlaps without this patch
when two adjacent radios wrap.

Differential Revision: https://phabricator.services.mozilla.com/D159279
2022-10-14 08:36:30 +00:00
Tomislav Jovanovic
28b6c5c09f Bug 1777343 - Implement simple origin controls attention indicator, r=willdurand,desktop-theme-reviewers,Itiel
Differential Revision: https://phabricator.services.mozilla.com/D158476
2022-10-13 22:04:52 +00:00
Sammy Khamis
dc387b555c Bug 1794940 - Copy change to the Sync QR Code screen r=Gijs,fluent-reviewers,preferences-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D159227
2022-10-13 21:59:49 +00:00
Daisuke Akatsuka
9127c66b99 Bug 1792513: Do not show full list of Quick Actions while scrolling one off buttons. r=daleharvey,adw
Depends on D158220

Differential Revision: https://phabricator.services.mozilla.com/D158245
2022-10-13 21:35:09 +00:00
Daisuke Akatsuka
23568bc904 Bug 1792204: Add a forgotten semicolon. r=desktop-theme-reviewers,Itiel
Differential Revision: https://phabricator.services.mozilla.com/D159007
2022-10-13 21:35:09 +00:00
Daisuke Akatsuka
92ea56f5ad Bug 1792204: Keeps icon width when shrinking the window. r=daleharvey
Depends on D158219

Differential Revision: https://phabricator.services.mozilla.com/D158220
2022-10-13 21:35:08 +00:00
Daisuke Akatsuka
509f1ec8b6 Bug 1792208: Adjust gap to help button as same as actions gap. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D158219
2022-10-13 21:35:08 +00:00
Daisuke Akatsuka
a23a63d6b4 Bug 1792199: Adjust x position for help button to fit with Settings button as much as we can. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D158180
2022-10-13 21:35:08 +00:00
Emilio Cobos Álvarez
8242349d05 Bug 1790616 - Use modern flexbox for the toolbox. r=dao,Gijs
The min-width / contain are as usual to allow elements to shrink under
their intrinsic size. You can only see its effects with relatively thin
windows (or with a very large number of tabs in the tabstrip case).

Differential Revision: https://phabricator.services.mozilla.com/D157216
2022-10-13 17:13:08 +00:00
Dão Gottwald
758cd5a0e9 Bug 1795039 - Fix search tooltip overflow ellipsis. r=Itiel
Differential Revision: https://phabricator.services.mozilla.com/D159272
2022-10-13 17:04:50 +00:00
Emilio Cobos Álvarez
24639267ae Bug 1790616 - Minor CSS tweaks that are needed for modern flexbox. r=dao
These fix rendering or test issues with flex emulation, but don't change
rendering without, so can land separately.

Differential Revision: https://phabricator.services.mozilla.com/D159073
2022-10-13 14:38:01 +00:00
Dão Gottwald
f9787c77ac Bug 1792686 - Fix search tooltip size. r=amy
Differential Revision: https://phabricator.services.mozilla.com/D159176
2022-10-12 19:57:14 +00:00
Emilio Cobos Álvarez
c6d8aec2ca Bug 1793730 - Prevent main pane contents from affecting scroller size. r=Gijs,tgiles,preferences-reviewers
This fixes bug 1792881 in a way that actually preserves behavior from
before bug 1790307.

The main difference between modern flexbox and XUL is that size of
contents outside of the scroller (main-content) affect the size of the
scroller, preventing it from flexing if they're bigger than the
available size.

Instead, preserve the previous behavior (flex the scroller) by
preventing the minimum size from being taken into account, by using
contain. While at it, merge two selectors that were spread out.

Differential Revision: https://phabricator.services.mozilla.com/D158630
2022-10-07 23:52:53 +00:00
Eemeli Aro
45a8fe66c1 Bug 1734217 - Merge all about:neterror front-end handling under toolkit. r=mkmelin,smaug,nalexander,flod,Gijs
Following a suggestion from :mkmelin, this seems like an optimal solution: the overriding/duplication in m-c is removed, and all users get a more powerful default choice that they're still able to override with their own, should they so wish.

For clarity and to match other `about:` pages, the shared code is placed under `toolkit/content/`, and all content under `docshell/resources/` is removed.

Differential Revision: https://phabricator.services.mozilla.com/D156478
2022-10-07 18:40:27 +00:00
Eemeli Aro
ed0c600d94 Bug 1734217 - Migrate aboutNetError from DTD to Fluent. r=fluent-reviewers,prathiksha,flod
To support and enable the migration, quite a bit of refactoring is needed.

Many of the localised error messages are in fact fragments of HTML, including messages with nesting not supported by Fluent. In the FTL, these have each been split up into multiple messages using a custom migration transform (included directly in the script). This allows for localisers to work with the messages without HTML syntax, but does require the messages' structures to be maintained elsewhere. To that effect, the JS file represents messages as arrays of `[tagName, l10nId, l10nArgs]` tuples from which it builds the messages' elements. This fixex bug 1621895.

Though extensive, the refactoring done here is for the most part limited to what's required by the Fluent migration. For instance, not all issues raised in bug 1722896 are resolved here. Places where the structure was sufficiently messy to have introduced bugs or dead code have been cleaned up a bit, though.

This variant of netError that's used by the browser is not itself overridden by anyone else, which allows for it to be tackled first and independently of the docshell and mobile variants. As a part of its content is still passed in as a query parameter, it's possible that later refactors of the rest of the netError system will allow for further clean-up here.

Differential Revision: https://phabricator.services.mozilla.com/D155951
2022-10-07 18:40:27 +00:00
William Durand
3f2ae958b1 Bug 1784218 - Add origin controls information to the unified extensions panel. r=zombie,Itiel,desktop-theme-reviewers
In addition to adding messages for origin controls, this patch slightly
changes the UI to account for long l10n strings. As a result, the name
of the extension is no longer truncated with CSS (ellipsis). This isn't
a big problem as these names cannot exceed 45 characters (max 2 lines of
text). This allows us to better handle long permission messages and
(Windows) scrollbars. UX is OK with that at the moment.

We also retain the "default" height of the message below the name of an
extension (using the `min-height` property) to avoid flickering as per
UX guidelines.

Differential Revision: https://phabricator.services.mozilla.com/D156808
2022-10-06 13:35:15 +00:00
Cristian Tuns
bf8c61ba7e Backed out changeset 9862aaa671f1 (bug 1784218) for causing mochitest failures on browser_ext_activeScript.js CLOSED TREE 2022-10-05 04:54:16 -04:00
William Durand
0f5aea30b7 Bug 1784218 - Add origin controls information to the unified extensions panel. r=zombie,Itiel,desktop-theme-reviewers
In addition to adding messages for origin controls, this patch slightly
changes the UI to account for long l10n strings. As a result, the name
of the extension is no longer truncated with CSS (ellipsis). This isn't
a big problem as these names cannot exceed 45 characters (max 2 lines of
text). This allows us to better handle long permission messages and
(Windows) scrollbars. UX is OK with that at the moment.

We also retain the "default" height of the message below the name of an
extension (using the `min-height` property) to avoid flickering as per
UX guidelines.

Differential Revision: https://phabricator.services.mozilla.com/D156808
2022-10-05 07:09:29 +00:00
Angel_V129
c74a074e42 Bug 1788756 - [Themes] Convert browser/theme JSM modules to ESMs. r=kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D157037
2022-10-04 19:02:24 +00:00
Itiel
4520190d49 Bug 1787930 - Correctly apply button hover and hover&active states in all of the in-content page r=morgan,desktop-theme-reviewers,dao
Also apply some fixes to make them look and work better.

Differential Revision: https://phabricator.services.mozilla.com/D157663
2022-10-04 13:41:04 +00:00
Emilio Cobos Álvarez
d71d3c19ed 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
14eec7cc8f Bug 1793307 - Fix search panel border color on win10. r=Itiel,desktop-theme-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D158454
2022-10-02 16:16:38 +00:00
Shane Hughes
d07e244452 Bug 1792736 - Expose zap_gradient theme property to system pages. r=desktop-theme-reviewers,dao
Pass down the zap_gradient experimental theme property to pages that
load contentTheme.js, and use it to set the zap gradient value in
Firefox View (with a generic fallback color for themes that don't set
this experimental property)

Differential Revision: https://phabricator.services.mozilla.com/D158278
2022-09-30 22:14:27 +00:00
Dão Gottwald
8fdfee7c7c Bug 1792739 - Use a transparent cutout for the "m" in the "More from Mozilla" icon in about:preferences. r=Itiel
Differential Revision: https://phabricator.services.mozilla.com/D158367
2022-09-30 00:23:45 +00:00
Emilio Cobos Álvarez
03746d909a Bug 1792730 - Allow resizable dialog frames to stretch. r=Gijs,preferences-reviewers
XUL honored the flex over explicit width. We need to set the width in
dialog code to properly keep the preferred width behavior.

Looking at min-width isn't needed for this patch but will be needed for
the next patch to preserve behavior.

Differential Revision: https://phabricator.services.mozilla.com/D158283
2022-09-29 23:46:40 +00:00
Tim Giles
d69bb2844e Bug 1792881 - Fix missing vertical scrollbar when horizontal space is constrained. r=preferences-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D158358
2022-09-29 20:54:25 +00:00
Mark Banner
8d1ebcb9d6 Bug 1792365 - Convert toolkit/modules consumers to use ES module imports directly. r=webdriver-reviewers,perftest-reviewers,geckoview-reviewers,extension-reviewers,preferences-reviewers,desktop-theme-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,robwu,Gijs,sgalich,bytesized,AlexandruIonescu,dao,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D158094
2022-09-29 06:52:34 +00:00
Marian-Vasile Laza
af9020d76a Backed out changeset f82d191c31a2 (bug 1792730) for causing bc failures on browser_subdialogs.js. CLOSED TREE 2022-09-29 04:25:56 +03:00
Emilio Cobos Álvarez
c703115e8a Bug 1792730 - Allow resizable dialog frames to stretch. r=Gijs,preferences-reviewers
XUL honored the flex over explicit width.

Differential Revision: https://phabricator.services.mozilla.com/D158283
2022-09-28 20:36:32 +00:00
Emilio Cobos Álvarez
463e2a0aa8 Bug 1792719 - Allow collapsing main deck in page info window. r=Gijs
The grid min size is different to the xul min size.

Differential Revision: https://phabricator.services.mozilla.com/D158272
2022-09-28 20:30:10 +00:00
Emilio Cobos Álvarez
8eeec7dfa8 Bug 1792337 - Make about dialog use modern flexbox emulation, and size to a smaller width. r=Gijs,bytesized,application-update-reviewers,preferences-reviewers
That was presumably the intention of the explicit width in the CSS but
that wasn't working.

While at it, use a proper deck rather than a hand-rolled one.

Differential Revision: https://phabricator.services.mozilla.com/D158223
2022-09-28 20:27:57 +00:00
Daisuke Akatsuka
57f7ba36d1 Bug 1790638: Not apply hover style while the action is selected. r=desktop-theme-reviewers,daleharvey,dao
Differential Revision: https://phabricator.services.mozilla.com/D157698
2022-09-27 23:47:28 +00:00
Daisuke Akatsuka
a9ef32aca0 Bug 1792195: Apply ellipsis style to label. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D158113
2022-09-27 20:38:36 +00:00
Emilio Cobos Álvarez
4e978b56b5 Bug 1689816 - Implement <tabpanels> and <deck> without XUL layout. r=Gijs,Jamie,morgan,preferences-reviewers,mconley,TYLin
Gijs for front-end bits, layout for the new CSS properties and the
removal of nsDeckFrame / nsStackLayout, Jamie and Morgan for the a11y
changes.

As discussed in the bug, the main tricky part here is handling a11y
correctly. For <deck>, that's trivial (just use `visibility: hidden` to
hide the panels visually, while removing the unselected panels from the
a11y tree).

For <tabpanels> however we need to do something special. We do want to
hide stuff visually, but we want to preserve the contents in the a11y
tree.

For that, the easiest fix is introducing a new privileged CSS property
(-moz-subtree-hidden-only-visually), which takes care of not painting
the frame, but marks stuff offscreen in the accessibility tree. This is
not intended to be a property used widely.

Other than that, the changes are relatively straight-forward, though
some of the accessible/mac changes I could get a sanity-check on.

Differential Revision: https://phabricator.services.mozilla.com/D157875
2022-09-27 04:18:16 +00:00