Commit Graph

1209 Commits

Author SHA1 Message Date
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
Molly Howell
ac56a22e52 Bug 1719592 - Back out bug 1699419 for causing multiple tab bar background regressions. r=harry,desktop-theme-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D119464
2021-07-09 14:19:47 +00:00
Mark Striemer
aefaad96af Bug 1666247 - Part 1: Add a simplify page checkbox r=emalysz,flod
Differential Revision: https://phabricator.services.mozilla.com/D102356
2021-07-08 03:54:19 +00:00
Molly Howell
1015ad0945 Bug 1699419 - Consolidate browser toolbar background handling. r=desktop-theme-reviewers,harry
This patch moves code that sets the background of the browser toolbars into
one place. It also removes some non-Proton Windows-only code rather than
updating it for this.

Differential Revision: https://phabricator.services.mozilla.com/D118658
2021-07-07 16:11:23 +00:00
Emilio Cobos Álvarez
89f1367b8f Bug 1718384 - Don't unnecessarily use viewport units in #fullscreen-and-pointerlock-wrapper. r=Gijs
This is the only usage of viewport units in the whole browser window and
we could live without it trivially. It avoids otherwise-unnecessary
style invalidation.

In the cloned bug I've improved the style system so that we do a lot
less work, but we still need to do a full DOM walk.

Instead let's use percentages, which only need re-layout, not restyle
(viewport units compute to a pixel value, percentages compute to
themselves).

Differential Revision: https://phabricator.services.mozilla.com/D118879
2021-07-05 10:40:17 +00:00
Michelle Goossens
7fdb940ff5 Bug 1714462 - Part 2: Remove CSS rules using "not (-moz-proton)" in miscellaneous files r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D118594
2021-06-24 15:42:03 +00:00
Michelle Goossens
74e20128f2 Bug 1714351 - Remove and reconcile -moz-proton-doorhangers media queries r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D116910
2021-06-07 20:34:33 +00:00
Brindusan Cristian
fe2ff6a3ec Backed out changeset 03a717a6815e (bug 1714351) for causing bc failures in browser_all_files_referenced.js. CLOSED TREE 2021-06-05 03:18:11 +03:00
Michelle Goossens
af611c9062 Bug 1714351 - Remove and reconcile -moz-proton-doorhangers media queries r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D116910
2021-06-04 22:39:50 +00:00
Daisuke Akatsuka
50ef01a678 Bug 1709405: Get rid of compact mode from search-one-offs. r=harry,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D115772
2021-06-03 01:48:26 +00:00
Gijs Kruitbosch
7ad523084b Bug 1711523 - remove private proton tracking flags in frontend modules, r=mak,emalysz,desktop-theme-reviewers,harry
Differential Revision: https://phabricator.services.mozilla.com/D116009
2021-05-28 19:33:38 +00:00
Julian Descottes
1d5cbfb3db Bug 1709036 - [remote] Move remotecontrol visual cue to dedicated container r=desktop-theme-reviewers,harry
Differential Revision: https://phabricator.services.mozilla.com/D114970
2021-05-17 09:29:54 +00:00
Emilio Cobos Álvarez
9d14fe8df5 Bug 1702940 - Move content select dropdown rules from browser.css to global.css. r=Gijs
So that the rules apply to the popup in
browser/base/content/webext-panels.xhtml and about:addons as well.

Differential Revision: https://phabricator.services.mozilla.com/D114690
2021-05-10 23:37:32 +00:00
Gijs Kruitbosch
ec3c1b86ff Bug 1709641 - adjust dark mode modal dialog background, mask and box shadow, r=bigiri
Differential Revision: https://phabricator.services.mozilla.com/D114729
2021-05-10 13:56:33 +00:00
Gijs Kruitbosch
11c1b80bdd Bug 1699430 - allow window-modal dialogs to overlap the URL bar and tabstrip if the window is not tall enough, r=Mardak
There are a few disparate changes in this commit that combine to fix the bug.
In no particular order:
 - set a min-height on windows with toolbars. This extends the minimum
   content size from toolbarless windows to ones with toolbars, on the
   assumption that the overhead from the toolbar and tabs is always
   going to be at least 25px, even in compact mode (it's significantly
   more at the moment). This is also conveniently *just* enough for
   dialogs with a title, body and checkbox, at the default OS font size,
   to be usable (though the bottom can still get a little cut-off).
 - stop assuming there's 30px frame overhead on top of the size of the
   browser in which the dialog is displayed in SubDialog.jsm. This is
   perhaps true in prefs where we display a titlebar outside of the
   browser, but we don't do this for content/tab/window-modal dialogs
   shown in browser.xhtml so the code shouldn't assume. Without this,
   when the window starts off not being tall enough to fit, we were
   losing an additional 30px for no reason.
 - instead of subtracting the 1em padding on the <dialog> that the
   default styling provides (https://searchfox.org/mozilla-central/rev/2f109387cc6886859d3f985ed9aca352fff653b8/layout/style/res/html.css#815 ) just reset it to 0 and stop subtracting it.
 - remove the CSS rule for tab and window-modal dialogs that depends on
   `--doc-height-px`. It is never set, because it is only set for the
   `limitheight` sizeto value in SubDialog.jsm, and the only
   consumer that sets that is at
   https://searchfox.org/mozilla-central/rev/2f109387cc6886859d3f985ed9aca352fff653b8/browser/base/content/browser.js#8988
   for content dialogs.
 - set the margin-top for the window-modal-dialog element from CSS
   instead of from the gDialogBox code in browser.css (now without the 1em
   subtraction, see above).
 - expose the height of the dialog to the parent of the dialog overlay
   from SubDialog.jsm as --inner-height
 - use CSS to ensure the dialog is off-set to be just below chrome
   when its size allows this, and otherwise move it up until it
   fits. There's a code comment explaining this.

Differential Revision: https://phabricator.services.mozilla.com/D114292
2021-05-07 11:49:39 +00:00
Dorel Luca
bd92363a78 Backed out 2 changesets (bug 1699430) for WPT Failures in /html/semantics/embedded-content/the-img-element/image-loading-lazy-base-url.html. CLOSED TREE
Backed out changeset 7f44fe2ccd4f (bug 1699430)
Backed out changeset b813f78228d8 (bug 1699430)
2021-05-07 16:00:49 +03:00
Gijs Kruitbosch
b6f16e98f7 Bug 1699430 - allow window-modal dialogs to overlap the URL bar and tabstrip if the window is not tall enough, r=Mardak
There are a few disparate changes in this commit that combine to fix the bug.
In no particular order:
 - set a min-height on windows with toolbars. This extends the minimum
   content size from toolbarless windows to ones with toolbars, on the
   assumption that the overhead from the toolbar and tabs is always
   going to be at least 25px, even in compact mode (it's significantly
   more at the moment). This is also conveniently *just* enough for
   dialogs with a title, body and checkbox, at the default OS font size,
   to be usable (though the bottom can still get a little cut-off).
 - stop assuming there's 30px frame overhead on top of the size of the
   browser in which the dialog is displayed in SubDialog.jsm. This is
   perhaps true in prefs where we display a titlebar outside of the
   browser, but we don't do this for content/tab/window-modal dialogs
   shown in browser.xhtml so the code shouldn't assume. Without this,
   when the window starts off not being tall enough to fit, we were
   losing an additional 30px for no reason.
 - instead of subtracting the 1em padding on the <dialog> that the
   default styling provides (https://searchfox.org/mozilla-central/rev/2f109387cc6886859d3f985ed9aca352fff653b8/layout/style/res/html.css#815 ) just reset it to 0 and stop subtracting it.
 - remove the CSS rule for tab and window-modal dialogs that depends on
   `--doc-height-px`. It is never set, because it is only set for the
   `limitheight` sizeto value in SubDialog.jsm, and the only
   consumer that sets that is at
   https://searchfox.org/mozilla-central/rev/2f109387cc6886859d3f985ed9aca352fff653b8/browser/base/content/browser.js#8988
   for content dialogs.
 - set the margin-top for the window-modal-dialog element from CSS
   instead of from the gDialogBox code in browser.css (now without the 1em
   subtraction, see above).
 - expose the height of the dialog to the parent of the dialog overlay
   from SubDialog.jsm as --inner-height
 - use CSS to ensure the dialog is off-set to be just below chrome
   when its size allows this, and otherwise move it up until it
   fits. There's a code comment explaining this.

Differential Revision: https://phabricator.services.mozilla.com/D114292
2021-05-07 11:49:39 +00:00
Gijs Kruitbosch
6100e83708 Bug 1701637 - fix bookmarks menu button submenu styling in proton, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D114251
2021-05-06 21:07:06 +00:00
Julian Descottes
42de9b379e Bug 1594435 - [remote] Update stripe colors for remotecontrol visual cue to fit light & dark themes r=desktop-theme-reviewers,harry
Differential Revision: https://phabricator.services.mozilla.com/D113528
2021-05-03 17:23:17 +00:00
Molly Howell
dce08d5a61 Bug 1709076 - Keep the reload button centered when in the customize palette. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D114116
2021-05-03 16:59:18 +00:00
Sam Foster
03c240126f Bug 1700238 - Update download icon and animations. r=Gijs
* Replace the many-shapes icon with a new simple download icon svg and update its consumers
* New start and finish animations using svg filmstrip images
* Toolbarbutton progress "bar" is a pie-chart, using a conic-gradient and a variable updated from js
* Show toolbarbutton animations even when download panel is open

Differential Revision: https://phabricator.services.mozilla.com/D113204
2021-05-01 01:41:31 +00:00
Jared Wein
7013f9e543 Bug 1707076 - Draw the webextension-theme additonal backgrounds on Windows 7 and Windows 8 even if the header image isn't specified. r=desktop-theme-reviewers,Itiel
Differential Revision: https://phabricator.services.mozilla.com/D113169
2021-04-30 19:24:19 +00:00
Ed Lee
a664a5abaa Bug 1706366 - Update builtin theme icons to reuse on about:welcome, customize and upgrade dialog r=emcminn
Switch about:welcome and upgrade dialog to use url(icon.svg) to avoid high contrast hiding gradients. Also adjusts customize mode styling to better match proton.

Differential Revision: https://phabricator.services.mozilla.com/D113701
2021-04-30 05:13:31 +00:00
Dorel Luca
82ab95e902 Backed out changeset 69811ad1a854 (bug 1706366) for Browser-chrome failures in browser/components/customizableui/test/browser_1007336_lwthemes_in_customize_mode.js. CLOSED TREE 2021-04-30 06:10:41 +03:00
Ed Lee
30d568996f Bug 1706366 - Update builtin theme icons to reuse on about:welcome, customize and upgrade dialog r=emcminn
Switch about:welcome and upgrade dialog to use url(icon.svg) to avoid high contrast hiding gradients. Also adjusts customize mode styling to better match proton.

Differential Revision: https://phabricator.services.mozilla.com/D113701
2021-04-30 00:42:33 +00:00
Narcis Beleuzu
b5dc8305b5 Backed out changeset e4c1a20756de (bug 1707076) for bc failures on browser_ext_themes_additional_backgrounds_alignment.js 2021-04-30 01:28:14 +03:00
Jared Wein
cc0bf3b304 Bug 1707076 - Draw the webextension-theme additonal backgrounds on Windows 7 and Windows 8 even if the header image isn't specified. r=desktop-theme-reviewers,Itiel
Differential Revision: https://phabricator.services.mozilla.com/D113169
2021-04-29 20:14:03 +00:00