Commit Graph

1235 Commits

Author SHA1 Message Date
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
Emilio Cobos Álvarez
3fc8bff3ff 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
Hiroyuki Ikezoe
8ba6059e43 Bug 1776795 - Move the swipe-to-nav icon in response to the swipe gestures on Windows. r=tnikkel,desktop-theme-reviewers,sfoster
Both Chrome and Edge on Windows also move the swipe-to-nav arrow icon, the
distance of move seems to be a fixed value, it doesn't depend on the browser
window size. So we also use a fixed value, 100px here.

Chrome on Mac also moves the icon, but in a slightly different way. The icon is
a semicircle shape, it never leaves the edge of the browser window even if it's
moving during swipe gestures. So we introduce a new preference named
"browser.swipe.navigation-icon-move-distance" to implement platform dependent
swipe-to-nav icon behaviors. As of now the value on platforms other than Windows
is zero so that the icon never moves on the platforms.

Depends on D152951

Differential Revision: https://phabricator.services.mozilla.com/D150433
2022-08-02 23:08:46 +00:00
Hiroyuki Ikezoe
58eb2666fd Bug 1776795 - Fix the swipe-to-nav icon position on RTL environments. r=desktop-theme-reviewers,tnikkel,Itiel
Differential Revision: https://phabricator.services.mozilla.com/D152951
2022-08-02 23:08:45 +00:00
Norisz Fay
16ba02f092 Backed out 2 changesets (bug 1776795) for causing bc failures on browser_test_swipe_gesture.js CLOSED TREE
Backed out changeset 7bed4509ae7c (bug 1776795)
Backed out changeset 344336b54939 (bug 1776795)
2022-08-02 10:48:53 +03:00
Hiroyuki Ikezoe
c44c823ee9 Bug 1776795 - Move the swipe-to-nav icon in response to the swipe gestures on Windows. r=tnikkel,desktop-theme-reviewers,sfoster
Both Chrome and Edge on Windows also move the swipe-to-nav arrow icon, the
distance of move seems to be a fixed value, it doesn't depend on the browser
window size. So we also use a fixed value, 100px here.

Chrome on Mac also moves the icon, but in a slightly different way. The icon is
a semicircle shape, it never leaves the edge of the browser window even if it's
moving during swipe gestures. So we introduce a new preference named
"browser.swipe.navigation-icon-move-distance" to implement platform dependent
swipe-to-nav icon behaviors. As of now the value on platforms other than Windows
is zero so that the icon never moves on the platforms.

Differential Revision: https://phabricator.services.mozilla.com/D150433
2022-08-02 06:49:55 +00:00
Hiroyuki Ikezoe
bd7c06944d Bug 1776795 - Fix the swipe-to-nav icon position on RTL environments. r=desktop-theme-reviewers,tnikkel,Itiel
Differential Revision: https://phabricator.services.mozilla.com/D152951
2022-08-02 06:49:55 +00:00
Meg Viar
48c38db878 Bug 1777507 - Adjust Multistage Spotlight container style to handle new MR 50-50 template designs r=pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D151170
2022-07-11 20:35:52 +00:00
Dão Gottwald
6687e2c9f8 Bug 1767802 - Add another tab stop to the tabs toolbar. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D149277
2022-06-15 11:13:36 +00:00
Meg Viar
477dc06742 Bug 1765142 - "Shadows" are displayed above and under the "Get Firefox Focus" modal r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D144749
2022-04-28 21:15:26 +00:00
Gijs Kruitbosch
7816048e7b Bug 1762141 - fix titlebar dragging in customize mode, r=emilio
The use of an exception for customizing windows stems from bug 944836.

There was always an exception for `#titlebar`, which I guess would fix the scenario in the screencast attached to the bug, but it was originally macOS-specific, and then got moved to the content browser.css (in bug 1122942) - and I removed it thinking it was superfluous given the XUL CSS for all toolbars, plus some manual testing. This commit puts it back. The xul.css instance has a titlebar selector but that doesn't actually apply to Firefox's browser window anymore, so I removed it.

Differential Revision: https://phabricator.services.mozilla.com/D142449
2022-03-30 12:40:45 +00:00
Sarah Clements
ea3ed0617e Bug 1752833 - remove menubar_can_autohide from browser.css r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D140374
2022-03-15 09:57:45 +00:00
Noemi Erli
c611337801 Backed out changeset ee9b7007dd66 (bug 1752833) for causing bc failures CLOSED TREE 2022-03-14 14:47:54 +02:00
Sarah Clements
2ac3e85486 Bug 1752833 - remove menubar_can_autohide from browser.css r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D140374
2022-03-14 11:09:36 +00:00
Sarah Clements
002c762046 Bug 1758944 - remove remaining ifdefs from browser.css r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D140747
2022-03-11 13:08:51 +00:00
Gijs Kruitbosch
6322f137c9 Bug 1694546 - fix bookmark toolbar draggability on Linux, r=dao
I came across this again when trying to address bug 1756676 and figured
I would just address this bug immediately per our previous discussion
on the bug.

Differential Revision: https://phabricator.services.mozilla.com/D139421
2022-02-22 20:47:39 +00:00
Ed Lee
44942cfc9a Bug 1752935 - Reuse welcome bundle from Spotlight for multistage template r=pdahiya,andreio
Detect about:welcome template usage and move modal shadow styling to content. Remove 93-backwards-compatible logoImageURL and update schema. Only basic functionality for initial testing.

Differential Revision: https://phabricator.services.mozilla.com/D138866
2022-02-16 19:05:22 +00:00
Sarah Clements
ca52230eb6 Bug 1752837 - Remove ifdef NIGHTLY_BUILD tab-throbber rule r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D138663
2022-02-14 17:10:23 +00:00
Emilio Cobos Álvarez
8de26dc4c1 Bug 1754547 - Generalize moz-os-version into moz-platform. r=dao,preferences-reviewers,Gijs
Allow differentiating non-windows platforms on it.

Differential Revision: https://phabricator.services.mozilla.com/D138431
2022-02-10 15:50:31 +00:00
Emilio Cobos Álvarez
6b4e979191 Bug 1751484 - Remove expensive, barely perceptible transition that triggers at unwanted times. r=dao
See https://bugzilla.mozilla.org/show_bug.cgi?id=1751484#c3, this
transition triggers on all tabs whenever the visibility of an ancestor
changes (like it does for DOM full-screen).

I think this is barely perceptible (it only applies visibility: hidden
for one frame, tab open animation looks equally neat on my machine
without it), so removing this is easier, but let me know if you instead
want to add an attribute to the tab to stop applying the transition, or
something of that sort around here:

  https://searchfox.org/mozilla-central/rev/f7eeca4e34daea900fbedbc392c8c99f90923143/browser/base/content/tabbrowser-tabs.js#171

Differential Revision: https://phabricator.services.mozilla.com/D136667
2022-01-28 15:32:43 +00:00
Cristian Tuns
355ea1950e Backed out changeset d67ad48adb3c (bug 1751484) for increasing the failure rate on mochitest failures on Bug 1751733 CLOSED TREE 2022-01-25 04:13:19 -05:00
Emilio Cobos Álvarez
b0d5c9313a Bug 1751484 - Remove expensive, barely perceptible transition that triggers at unwanted times. r=dao
See https://bugzilla.mozilla.org/show_bug.cgi?id=1751484#c3, this
transition triggers on all tabs whenever the visibility of an ancestor
changes (like it does for DOM full-screen).

I think this is barely perceptible (it only applies visibility: hidden
for one frame, tab open animation looks equally neat on my machine
without it), so removing this is easier, but let me know if you instead
want to add an attribute to the tab to stop applying the transition, or
something of that sort around here:

  https://searchfox.org/mozilla-central/rev/f7eeca4e34daea900fbedbc392c8c99f90923143/browser/base/content/tabbrowser-tabs.js#171

Differential Revision: https://phabricator.services.mozilla.com/D136667
2022-01-24 14:02:18 +00:00
Emilio Cobos Álvarez
85b649377a Bug 1745189 - Don't hide the #TabsToolbar titlebar buttons when in fullscreen, even if the menubar is shown. r=dao,desktop-theme-reviewers
Since the menubar is not a fullscreentoolbar, it will be collapsed when
on fullscreen.

Differential Revision: https://phabricator.services.mozilla.com/D133399
2021-12-15 18:02:30 +00:00
Mark Striemer
e5d8d5d939 Bug 1745262 - Ensure print previews/spinners hidden when system dialog is open r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D133415
2021-12-13 16:02:44 +00:00
lamoure6
6ef1e5005d Bug 1719938 - Removed remaining (non-negated) -moz-proton media queries. r=mhowell,mtigley,emilio
Differential Revision: https://phabricator.services.mozilla.com/D125328
2021-11-22 22:10:33 +00:00
Butkovits Atila
64c919921c Backed out changeset 8c47ea741114 (bug 1742111) for causing Bug 1742237. a=backout 2021-11-21 12:15:20 +02:00
Dão Gottwald
5a92660e3d Bug 1742111 - Rename internal accentcolor and textcolor properties to be more consistent with the webext theme API. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D131634
2021-11-19 20:00:07 +00:00
Dão Gottwald
8e2dd34f81 Bug 1734835 - Remove the arrow and arrowbox elements from "arrow" panels. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D131616
2021-11-19 19:58:50 +00:00
Harry Twyford
45025048ce Bug 1701929 - Define positioning required for Mac fullscreen slide in CSS to avoid frame reconstruction. r=mstange,Gijs
Baseline profile: https://share.firefox.dev/3p5PgDn (jank)
Profile with just setting pinned tab position to absolute: https://share.firefox.dev/30jKR5p (jank)
Profile with just moving relative positioning to CSS: https://share.firefox.dev/3p6c5a7 (jank)
Profile with this patch: https://share.firefox.dev/3FRLmnK (no jank)

Markus said setting abspos pinned tabs would be safe as long as there were no relative-positioned ancestors in the tab overflow scrollbox. The only notable ancestor of a pinned tab is the tab arrowscrollbox itself, so there aren't any surprise ancestors here. Manual testing indicates things work fine.

I also confirmed that this patch fixes bug 1725151.

Differential Revision: https://phabricator.services.mozilla.com/D121403
2021-10-20 13:59:23 +00:00
Neil Deakin
0d6adaeabb Bug 1733786, replace uitour implementation of show how button with one that focuses the item on the app menu and submenu instead, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D128428
2021-10-19 14:54:45 +00:00
Emilio Cobos Álvarez
2119007c36 Bug 1736038 - Remove -moz-toolbar-prefers-color-scheme. r=dao
By making prefers-color-scheme return the ColorSchemeForChrome(), which
accounts for the Firefox theme.

Differential Revision: https://phabricator.services.mozilla.com/D128611
2021-10-15 16:53:08 +00:00
Dan Mosedale
802ea71c8f Bug 1731153 - fix HCM SubDialogs bleeding into background,r=Gijs,morgan
Differential Revision: https://phabricator.services.mozilla.com/D128499
2021-10-15 16:32:06 +00:00
Emilio Cobos Alvarez
2edef0e001 Bug 1735318 - Unify "native" vs. "fullscreen" window controls. r=desktop-theme-reviewers,dao
I've tested this (both with and without titlebar) in Linux, Win10,
Win11, Win7 and macOS.

 * On macOS behavior doesn't change at all (since on fullscreen we didn't
show the buttons to begin with).

 * Linux now shows "native" buttons on fullscreen (which is also an
improvement).

 * On Windows 10/11 the sizing of the buttons is now the same when
fullscreen vs. not (which is an improvement).

 * On Windows 7 we now use regular native-looking buttons (like on
   windows 10) instead of the custom windowControls.png. That could be
   considered a slight regression I guess, but is consistent with win10.

Differential Revision: https://phabricator.services.mozilla.com/D128196
2021-10-12 13:20:13 +00:00
Ed Lee
d6e147f358 Bug 1728853 - Update upgrade spotlight for MR2 themes r=pdahiya,fluent-reviewers,flod
Replace almost all MR1 content with MR2 start, colorway and thank you screens. Reuse confetti from about:welcome. Add variant selection with transitions. Update triggering to show for 94 but not for windows 7.

Differential Revision: https://phabricator.services.mozilla.com/D127252
2021-10-03 03:56:10 +00:00
Gijs Kruitbosch
03d30a19db Bug 1724962 - add focus styling option to UI Tour and use it for the session restore infobar r=NeilDeakin
Depends on D126730

Differential Revision: https://phabricator.services.mozilla.com/D127197
2021-10-02 12:20:08 +00:00
Harry Twyford
3043fad3a2 Bug 1729534 - Change Customize window theme picker to a button that points to about:addons#themes. r=dao,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D125120
2021-09-23 13:55:07 +00:00
Stephen A Pohl
600e9bddd3 Bug 1633860: Place window control buttons on the right side on macOS when using an RTL system locale, regardless of the Firefox locale. r=mstange,emilio,harry
Differential Revision: https://phabricator.services.mozilla.com/D116921
2021-09-22 18:51:20 +00:00
Csoregi Natalia
ed55ae4490 Backed out changeset 5523334143d9 (bug 1719938) for failures on browser_parsable_css.js. CLOSED TREE 2021-09-21 02:39:55 +03:00
lamoure6
0e1d13f89f Bug 1719938 - Removed remaining (non-negated) -moz-proton media queries. r=mhowell,mtigley,emilio
Differential Revision: https://phabricator.services.mozilla.com/D125328
2021-09-20 22:40:42 +00:00
Csoregi Natalia
72233967b0 Backed out changeset 0711ae54877b (bug 1719938) for bustages on media_features.rs. CLOSED TREE 2021-09-20 23:29:05 +03:00
lamoure6
590baedef8 Bug 1719938 - Removed remaining (non-negated) -moz-proton media queries. r=mhowell,mtigley,emilio
Differential Revision: https://phabricator.services.mozilla.com/D125328
2021-09-20 19:21:50 +00:00
Cristian Tuns
d34b2ead55 Bug 1723989 - fix lint whitespace on a CLOSED TREE 2021-09-14 17:00:26 -04:00
Hanna Jones
f41b7404b4 Bug 1723989 - Turn off print preview animations when show animations switched off r=mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D125598
2021-09-14 20:04:59 +00:00
Gijs Kruitbosch
d285cb2ff9 Bug 1724212 - add a tooltip and show more of the 'not secure' item so languages other than English fit, r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D122851
2021-08-17 14:15:09 +00:00
Emilio Cobos Álvarez
8981cbcb1a Bug 1714639 - Don't call FrameLoader.printPreview in hidden frames. r=mstriemer,jwatt
We need to be displayed when cloning into a same-process frame, so that
the preview code hooks up to the view tree correctly and the frame is
correctly painted.

This works for out-of-process frames, but mostly by chance.

Fortify the printPreview() API code to gracefully handle that case, and
remove the sessionrestore special-case which is not really special.

Differential Revision: https://phabricator.services.mozilla.com/D119980
2021-07-22 10:18:26 +00:00
Emma Malysz
e03deca9a7 Bug 1703051, apply proton panel styling to other bookmarks dropdown and overflow menu in bookmarks toolbar r=desktop-theme-reviewers,mconley,jaws,harry
Differential Revision: https://phabricator.services.mozilla.com/D113200
2021-07-13 05:10:19 +00:00
Csoregi Natalia
bfad1c6ed2 Backed out changeset fce7b9d54faf (bug 1703051) for failures on browser_parsable_css.js. CLOSED TREE 2021-07-12 19:56:45 +03:00
Emma Malysz
b6874ed8c8 Bug 1703051, apply proton panel styling to other bookmarks dropdown and overflow menu in bookmarks toolbar r=desktop-theme-reviewers,mconley,jaws,harry
Differential Revision: https://phabricator.services.mozilla.com/D113200
2021-07-12 15:04:05 +00:00