Commit graph

10244 commits

Author SHA1 Message Date
Emilio Cobos Álvarez
431f95bfde Bug 1790297 - Clean-up -moz-box-emulation-specific rules. r=dao
Most of the display: block stuff isn't needed anymore because we changed
the blockification behavior in bug 1789123.

.tab-stack, and stacks in general now uses CSS grid so doesn't need that
anymore.

DevTools is the only consumer of <xul:iframe> and width/height was
getting ignored in XUL because flexibility takes precedence, so just
remove the relevant declarations.

Differential Revision: https://phabricator.services.mozilla.com/D157070
2022-09-12 13:18:34 +00:00
Emilio Cobos Álvarez
60e1debc4b Bug 1790003 - Restore display declaration removed in bug 1789114. r=desktop-theme-reviewers,dao
But with block rather than -moz-box, which is the default. These just
want to prevent themselves from getting hidden by:

  https://searchfox.org/mozilla-central/rev/31368c7795f44b7a15531d6c5e52dc97f82cf2d5/toolkit/content/xul.css#141-145

Why are these using a `<toolbarbutton>` instead of a `<button>` I didn't
dig into, but this is the less risky fix, obviously.

Differential Revision: https://phabricator.services.mozilla.com/D156949
2022-09-12 13:11:49 +00:00
Dão Gottwald
9d9a19ca9e Bug 1788274 - Expire new colourways on January 17 to align with release calendar and resolve date vs year confusion in expiry time. r=amy
Differential Revision: https://phabricator.services.mozilla.com/D156804
2022-09-12 10:21:50 +00:00
Itiel
de2478ddda Bug 1790272 - Use the standard font size on about:tabcrashed r=dao
Also remove another use of font-size: *rem which doesn't affect the content as there's no text in that element.

Differential Revision: https://phabricator.services.mozilla.com/D157056
2022-09-12 09:13:43 +00:00
Emilio Cobos Álvarez
5929216f79 Bug 1789892 - Simplify statuspanel a bit. r=dao
I'm a bit baffled about bug 1789877. My best theory so far is that we're
inserting the element a bit deeper in the DOM and that causes us to
reflow slightly more stuff when tab-switching, but...

In any case while going through the code the status panel can be
simplified a bit now, so do that.

Differential Revision: https://phabricator.services.mozilla.com/D156876
2022-09-09 19:36:21 +00:00
Itiel
51b36da0d5 Bug 1788516 - Lower the list items height in about:downloads r=dao
Differential Revision: https://phabricator.services.mozilla.com/D156366
2022-09-09 15:07:30 +00:00
Dão Gottwald
4faeba4da8 Bug 1789299 - Tweak horizontal space around devider between Firefox View button and the tabstrip. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D156865
2022-09-09 02:45:29 +00:00
Kelly Cochrane
439020c1d1 Bug 1785241 - Ensure selected tab outline doesn't override default focus outline of Fx View tab/button r=dao
Differential Revision: https://phabricator.services.mozilla.com/D156741
2022-09-08 13:35:07 +00:00
Daisuke Akatsuka
19e9dd7a32 Bug 1787420: Adjust vertical position of help button. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D156151
2022-09-05 22:02:53 +00:00
Daisuke Akatsuka
5f236c5d3f Bug 1783463: Remove margin-block-end from help button for quick actions. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D156139
2022-09-05 22:02:14 +00:00
Shane Hughes
88ec6bec35 Bug 1789278 - Adjust panel margins on Windows for box shadow. r=emilio
Just add some CSS rules to offset the 4px inner margins on panels so
they position flushly with anchor nodes. Also add a rule so we can click
through the shadow box (closing the popup).

Differential Revision: https://phabricator.services.mozilla.com/D156489
2022-09-05 19:54:45 +00:00
Itiel
67c100af64 Bug 1789144 - Fix .panel-subview-body spacing issues r=dao
Differential Revision: https://phabricator.services.mozilla.com/D156377
2022-09-05 14:04:07 +00:00
Emilio Cobos Álvarez
80f20bf0da Bug 1789167 - Fix rendering of tabs with emulated -moz-box. r=dao,aminomancer
This rendering of the tabs with emulated flexbox enabled (modern flexbox
behavior with min-width: auto is giving at least minimum content size).

It doesn't have any negative impact on XUL rendering, so do it
unconditionally.

Differential Revision: https://phabricator.services.mozilla.com/D156383
2022-09-05 09:42:20 +00:00
Emilio Cobos Álvarez
3ee243abf7 Bug 1789114 - Use block rather than -moz-box display for subview button text. r=aminomancer
Some context on why this used to work:

When wrap=true, we add inline text to the `<label>`. It has a
`-moz-box` display, so we wrap their kids in a
::-moz-xul-anonymous-block:

  https://searchfox.org/mozilla-central/rev/39a48ce1b2b20a004dfa364d0587164f838b62b0/layout/base/nsCSSFrameConstructor.cpp#9882-9908

Before my patch, flex attributes did affect this anonymous block, but
-moz-box-flex set from CSS didn't, which was inconsistent, so I chose
the CSS behavior. The old flex attribute behavior we could get by
inheriting -moz-box-flex here:

  https://searchfox.org/mozilla-central/rev/39a48ce1b2b20a004dfa364d0587164f838b62b0/layout/style/res/ua.css#210

But given modern flex / grid items don't have that, it seems bad to
further diverge. Instead, since we're relying on block behavior
implicitly anyways, do that explicitly instead, which works for both.

Differential Revision: https://phabricator.services.mozilla.com/D156372
2022-09-04 09:24:28 +00:00
Emilio Cobos Álvarez
13572bce66 Bug 1788273 - Tweak popup alignment so that it looks good on mirrored wayland popups. r=dao,mak
When these panels had arrows, I guess the bottomcenter topleft alignment
made sense so that you could precisely align the arrow, but that's not
what we do now.

Don't use bottomcenter / leftcenter / rightcenter, since we really want
the sides to align.

This shouldn't change behavior on any platform except Linux + Wayland,
where the alignment looks good now in the case of bug 1784876.

Differential Revision: https://phabricator.services.mozilla.com/D156099
2022-09-02 20:26:29 +00:00
Butkovits Atila
c520b707bd Backed out changeset 368a7ce1b104 (bug 1788273) for causing failures at browser_recently_closed_tabs.js. CLOSED TREE 2022-09-02 16:35:55 +03:00
Emilio Cobos Álvarez
0777329f69 Bug 1788273 - Tweak popup alignment so that it looks good on mirrored wayland popups. r=dao,mak
When these panels had arrows, I guess the bottomcenter topleft alignment
made sense so that you could precisely align the arrow, but that's not
what we do now.

Don't use bottomcenter / leftcenter / rightcenter, since we really want
the sides to align.

This shouldn't change behavior on any platform except Linux + Wayland,
where the alignment looks good now in the case of bug 1784876.

Differential Revision: https://phabricator.services.mozilla.com/D156099
2022-09-02 11:18:54 +00:00
Itiel
c96747e167 Bug 1787304 - Improve All Tabs list CSS r=Gijs,dao
Differential Revision: https://phabricator.services.mozilla.com/D155619
2022-09-01 23:49:58 +00:00
Noemi Erli
6f6c74f081 Backed out changeset 3eb86a791410 (bug 1787304) for causing failures in browser_tab_manager_drag.js CLOSED TREE 2022-09-02 02:29:50 +03:00
Itiel
7ec0fe7d02 Bug 1787304 - Improve All Tabs list CSS r=Gijs,dao
Differential Revision: https://phabricator.services.mozilla.com/D155619
2022-09-01 22:31:30 +00:00
Emilio Cobos Álvarez
d0272e268c Bug 1787246 - Fix color-scheme of tabbrowser tabpanels. r=dao
And stop using the .plain class. Only padding / appearance /
color-scheme are necessary, no other themes set any other properties
reset by .plain.

Differential Revision: https://phabricator.services.mozilla.com/D155699
2022-08-30 12:53:53 +00:00
Gijs Kruitbosch
31960f9a88 Bug 1787443 - ensure fxview button is always present by default, also for upgrading profiles, r=dao
Differential Revision: https://phabricator.services.mozilla.com/D155695
2022-08-26 15:50:18 +00:00
Itiel
2d52a83fea Bug 1786909 - Improve panel menuitems spacing when compact mode is enabled r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D155492
2022-08-26 10:09:51 +00:00
Eemeli Aro
110a144175 Bug 1784882 - Drop global styles for dlgtype="help". r=desktop-theme-reviewers,dao
After removing the button from MozDialog, the only remaining use in
PageInfo is turned into a local class style.

Differential Revision: https://phabricator.services.mozilla.com/D154872
2022-08-25 11:19:00 +00:00
Daisuke Akatsuka
3cd4860142 Bug 1783463: Adjust gap between action buttons. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D155447
2022-08-24 22:13:57 +00:00
Emilio Cobos Álvarez
007aa2142d Bug 1786597 - Make sure that content-color-scheme only affects the tab content's browser. r=dao
Otherwise the selector also matches the `<browser>` inside the tab-modal
dialog for example.

Before bug 1782596 it wasn't honored, because those were not top-level
browsing contexts, but now it is.

Differential Revision: https://phabricator.services.mozilla.com/D155459
2022-08-24 14:05:49 +00:00
Dale Harvey
c69d123ad9 Bug 1786504 - Follow up to ensure onboarding button is correctly positioned. r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D155259
2022-08-24 09:25:53 +00:00
Dão Gottwald
44c8f09206 Bug 1782065 - Let the Independent Voices colorways collection ride the 106 release train. r=amy
Differential Revision: https://phabricator.services.mozilla.com/D155235
2022-08-22 19:21:13 +00:00
Dão Gottwald
d58bfbd44d Bug 1785995 - Remove redundant :root[sessionrestored] from .tab-loading-burst rules. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D155058
2022-08-20 00:15:05 +00:00
William Durand
936f3b219a Bug 1785988 - Display message when hovering/focusing the menu button in the unified extensions panel. r=rpl,desktop-theme-reviewers,Itiel
Differential Revision: https://phabricator.services.mozilla.com/D155055
2022-08-19 18:52:19 +00:00
William Durand
e7b425384a Bug 1785204 - Separate primary and secondary buttons in the unified extensions panel. r=Itiel,Jamie,rpl,desktop-theme-reviewers
Depends on D154282

Differential Revision: https://phabricator.services.mozilla.com/D154873
2022-08-19 13:57:12 +00:00
Dão Gottwald
566d7c4cfa 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
Dale Harvey
aac9049e23 Bug 1779219 - Add onboarding link to QuickActions. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D154676
2022-08-18 12:53:56 +00:00
Marian-Vasile Laza
e6accb878b Backed out changeset 629fc32c6f5e (bug 1779219) for causing xpcshell failures on test_quickactions.js. CLOSED TREE 2022-08-18 01:47:00 +03:00
Dale Harvey
edcc846065 Bug 1779219 - Add onboarding link to QuickActions. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D154676
2022-08-17 21:03:59 +00:00
Dão Gottwald
4eb9d04769 Bug 1785094 - Stop applying --lwt-tab-loading-fill-inactive to the "connecting" state. r=Itiel
Differential Revision: https://phabricator.services.mozilla.com/D154802
2022-08-17 17:39:18 +00:00
Dão Gottwald
8dc7f68beb Bug 1784891 - Consolidate document font-size set by common-shared.css. r=Itiel
Differential Revision: https://phabricator.services.mozilla.com/D154775
2022-08-17 16:50:54 +00:00
Daisuke Akatsuka
14bd2aeb72 Bug 1749290: Make the y position of type-icon dependent on center. r=desktop-theme-reviewers,adw,dao
Differential Revision: https://phabricator.services.mozilla.com/D154051
2022-08-16 21:37:39 +00:00
Csoregi Natalia
2efe47c491 Backed out changeset 8043340f122d (bug 1779219) for causing failures on browser_quickactions.js. CLOSED TREE 2022-08-17 00:29:04 +03:00
Dale Harvey
393bc3093f Bug 1779219 - Add onboarding link to QuickActions. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D154676
2022-08-16 20:43:52 +00:00
Dão Gottwald
db846ca094 Bug 1784448 - Increase visibility of toolbar separators. r=Itiel
Differential Revision: https://phabricator.services.mozilla.com/D154779
2022-08-16 11:00:28 +00:00
Dão Gottwald
db0d8f4dba Bug 1784488 - Fix up SubDialog sizing with em values. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D154646
2022-08-15 21:33:36 +00:00
Emilio Cobos Álvarez
b324c5f6da Bug 1784836 - Set urlbar/searchbar wrapper flexibility. r=mconley
They don't get set in:

  https://searchfox.org/mozilla-central/rev/dcb0cfb66e4ed3b9c7fbef1e80572426ff5f3c3a/browser/components/customizableui/CustomizeMode.jsm#1024-1026

Anymore after bug 1784265.

Differential Revision: https://phabricator.services.mozilla.com/D154633
2022-08-15 16:16:46 +00:00
Emilio Cobos Álvarez
a7401488af 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
7f5e2711c6 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
a2ec6564f3 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
Emilio Cobos Álvarez
ff538cab0e Bug 1784349 - Don't use -moz-bool-pref for flexbox -moz-box emulation. r=dholbert,perftest-reviewers,sparky
Use a bool pref media query which allows dynamic changes to get
reflected instantly.

Differential Revision: https://phabricator.services.mozilla.com/D154449
2022-08-11 23:22:52 +00:00
Emilio Cobos Álvarez
63b17f21b8 Bug 1783882 - Don't flex searchbar listbox. r=dao
I can't reproduce this on Linux (which would make it easier to dig into what's
going on), but I confirmed this fixes the issue on Windows.

The flexing algorithm of XUL doesn't deal well with the footer block.

This shouldn't be needed, I think, because the listbox height is handled
explicitly in

  https://searchfox.org/mozilla-central/rev/6a37a2ab9328bec6a29f688d1b2fba6974d34905/toolkit/content/widgets/autocomplete-popup.js#361

Also use CSS rather than attributes to flex stuff.

Differential Revision: https://phabricator.services.mozilla.com/D154133
2022-08-10 18:00:55 +00:00
Emilio Cobos Álvarez
6e336b34d6 Bug 1782638 - Simplify styling of bookmarks toolbar submenus. r=mak
Also, align them properly.

The issue is that we inherit the region margin introduced in bug 1772507, but
we were styling the panel in a way that causes the region to not match the
shadow size.

Simplify a bit the styling so that all the margins add up.

For uplift it'd be simpler to just set the new property to zero, I'll prepare a
patch for that. That would cause the shadows to count as popup contents, but
that's the pre-103 behavior which seems fine.

Differential Revision: https://phabricator.services.mozilla.com/D153856
2022-08-10 13:10:26 +00:00
Paul Zuehlcke
36c001b7b7 Bug 1783235 - Update about:privatebrowsing logos. r=Gijs,desktop-theme-reviewers,Itiel
Differential Revision: https://phabricator.services.mozilla.com/D153779
2022-08-10 11:44:08 +00:00