Commit graph

1180 commits

Author SHA1 Message Date
Michelle Goossens
ebf7203b8e 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
acba349677 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
25ebda4edf 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
246c24b045 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
cd50b177a7 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
e70fea791a 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
aa80bca8b7 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
18e21e721a 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
2b96256c6d 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
d7ebd0d578 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
4d264245a1 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
9bbb993c56 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
3a44198928 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
ebe3c314fe 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
b1328e4ea3 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
7fdcbbbab4 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
428a8dece5 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
3cda135a3e 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
10f63ae329 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
74f7eaa462 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
d9b27b4001 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
Csoregi Natalia
a76b78d543 Backed out changeset e01ec8694924 (bug 1700957) as requested. CLOSED TREE 2021-04-28 18:09:01 +03:00
Emma Malysz
ce84c86379 Bug 1700957, graduate browser.proton.doorhangers.enabled pref to main proton pref r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D110135
2021-04-28 03:17:56 +00:00
Butkovits Atila
9597a30fbb Backed out changeset 1c362512f27b (bug 1700957) for causing failures at test_chrome_only_media_queries.html. CLOSED TREE 2021-04-28 05:55:14 +03:00
Emma Malysz
a344c0fa4c Bug 1700957, graduate browser.proton.doorhangers.enabled pref to main proton pref r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D110135
2021-04-28 00:29:45 +00:00
imoraru
1eb89beb48 Backed out changeset 7517d291e2f5 (bug 1702237) for causing Browser-Chrome failures at browser_switchToTab_chiclet.js . CLOSED TREE 2021-04-27 10:12:55 +03:00
Daisuke Akatsuka
81a5c27c24 Bug 1702237: Make chiclet label properly upon tabs mode.r=harry
Differential Revision: https://phabricator.services.mozilla.com/D113274
2021-04-27 06:14:11 +00:00
Cosmin Sabou
2d2020c4bc Backed out changeset 7338e5d940a6 (bug 1702237) for bc failures on browser_switchToTab_chiclet.js. 2021-04-27 04:14:10 +03:00
Daisuke Akatsuka
7da4f12be8 Bug 1702237: Make chiclet label properly upon tabs mode.r=harry
Differential Revision: https://phabricator.services.mozilla.com/D113274
2021-04-26 22:51:14 +00:00
Mark Striemer
0664884d22 Bug 1701691 - print modal -moz-toolbar-prefers-color-scheme support r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D111974
2021-04-18 22:22:51 +00:00
Drew Willcoxon
2091bc15ef Bug 1704999 - Keep the remote control urlbar gradient background position fixed. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D112288
2021-04-16 22:54:44 +00:00
Gijs Kruitbosch
bada450682 Bug 1705386 - set the correct width on dialogs across scaling, r=jaws
As @jfkthame pointed out on matrix, 'ch' units are based on the
rendering of the '0' character, and thus their width in CSS 'px'
can vary for fonts that line things up to device pixels, which
can cause pretty big variations if you start multiplying with
large numbers like the dialog width. As a result, the dialog
was 30 CSS pixels narrower at 100% scaling than at 150% scaling,
which caused the wrapping.

I also noticed we forgot to update the width for checkboxes
and text in dialogs after our font-size changes in bug 1701920,
so I took the opportunity of fixing that here.

Differential Revision: https://phabricator.services.mozilla.com/D112241
2021-04-15 18:28:30 +00:00
Jared Wein
a247ea4bb2 Bug 1696360 - Disable tab sliding animation if prefers-reduced-motion is set. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D110983
2021-04-13 13:51:19 +00:00
Harry Twyford
4c430fb4a6 Bug 1704474 - Remove pin/unpin page action context menu items. r=adw,fluent-reviewers,extension-reviewers,flod,zombie
The bug calls for these items to be hidden with JS, but they were going to be removed anyways post-Proton. The removal of some subtests in browser/base/content/test/pageActions tests is consistent with [this comment](https://searchfox.org/mozilla-central/rev/d9f6cded535d202a9ade4a530e653e659bcb5bbd/browser/base/content/test/pageActions/browser.ini#7), which says that were are removing that test coverage post-Proton anyways.

Differential Revision: https://phabricator.services.mozilla.com/D111713
2021-04-13 13:24:59 +00:00
Ed Lee
a6630203ad Bug 1697222 - Add window modal dialog for existing users on upgrade highlighting Proton improvements r=pdahiya,flod,sfoster
Add new dialog with related scripts, strings and styles that can adjust the window modal backdrop to show off themes.

Differential Revision: https://phabricator.services.mozilla.com/D110330
2021-04-13 00:04:30 +00:00
Marco Bonardo
2c982d3c01 Bug 1703274 - Enable Proton Urlbar. r=jaws,extension-reviewers,zombie,rpl
Differential Revision: https://phabricator.services.mozilla.com/D110998
2021-04-09 18:20:21 +00:00
Cosmin Sabou
13826a4c50 Backed out changeset bd396182f84a (bug 1703274) for causing wpt failures on shape-outside-shape-arguments-000.html. CLOSED TREE 2021-04-09 17:51:48 +03:00
Marco Bonardo
af19ef5dc4 Bug 1703274 - Enable Proton Urlbar. r=jaws,extension-reviewers,zombie,rpl
Differential Revision: https://phabricator.services.mozilla.com/D110998
2021-04-09 11:05:17 +00:00
Jared Wein
32d12e91fd Bug 1701379 - Set z-index on the pointerlock warning to place it higher than the notification and tabs. r=desktop-theme-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D110835
2021-04-07 15:20:50 +00:00
Emilio Cobos Álvarez
5ddee7313f Bug 1698132 - Convert proton pref checks from @supports rules to media features. r=Gijs
This means that dynamic changes will be handled correctly, we can use
StaticPrefs, etc.

Differential Revision: https://phabricator.services.mozilla.com/D110816
2021-04-05 20:48:05 +00:00
Emilio Cobos Alvarez
c0d7459c98 Bug 1702258 - Fix interaction of proton with custom styles. r=Gijs
If the site specifies the background-color, we also specify the color to the
HTML UA style. This fixes the msn issue in a better way.

Unstyled selects would still get dark mode.

Differential Revision: https://phabricator.services.mozilla.com/D110586
2021-04-01 19:29:44 +00:00
Harry Twyford
5c87507f7f Bug 1700873 - Set all window background properties on :root instead of #navigator-toolbox on Windows 7/8. r=desktop-theme-reviewers,dao
This regression was partially fixed in D106670. This sets the remaining window background properties on :root in Windows 7/8.

Differential Revision: https://phabricator.services.mozilla.com/D109806
2021-03-30 15:02:07 +00:00
Butkovits Atila
e462ef4867 Backed out changeset 0ce7f89cbb8a (bug 1700873) for causing light text on light background with Alpenglow theme. CLOSED TREE 2021-03-28 22:19:03 +03:00
Harry Twyford
1aa4fbec7b Bug 1695921 - Rename OSXLionFullscreen to macOSNativeFullscreen. r=mac-reviewers,mstange
Differential Revision: https://phabricator.services.mozilla.com/D109931
2021-03-26 16:34:54 +00:00
Harry Twyford
9e4779915c Bug 1700873 - Set all window background properties on :root instead of #navigator-toolbox on Windows 7/8. r=desktop-theme-reviewers,dao
This regression was partially fixed in D106670. This sets the remaining window background properties on :root in Windows 7/8.

Differential Revision: https://phabricator.services.mozilla.com/D109806
2021-03-26 16:34:38 +00:00
Bernard Igiri
a895121d8b Bug 1695171 - Fix overlap of hamburger menu when the window is shrunk r=Gijs,desktop-theme-reviewers,dao
Reduced the width of the url nav bar when the window is shrunk to make space for the hamburger menu in proton.

Differential Revision: https://phabricator.services.mozilla.com/D108463
2021-03-25 20:38:37 +00:00
Marco Bonardo
c304d1cd46 Bug 1691454 - Hide the Page actions overflow (meatball) menu from the address bar. r=adw
The page actions menu is normally hidden.
When the window is smaller than a threshold, and there's more than one action,
the single actions are hidden while the menu is shown. This allows for a nicer
overflow experience.

This patch introduces a pageActions-proton test folder where we'll move proton
tests temporarily. The head.js file is just a copy of the original one, we'll
clean it up in bug 1700582 after porting the other tests.

Differential Revision: https://phabricator.services.mozilla.com/D109606
2021-03-24 23:19:14 +00:00
Marco Bonardo
4819ead6eb Bug 1700364 - Page action buttons should not be remove-able in Proton. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D109519
2021-03-24 09:48:45 +00:00
Mike Conley
1d7883aaba Bug 1699528 - Restyle password panels for Proton. r=sfoster,Itiel
This restyling mainly focuses on the text inputs, but also adjusts some
margins so that they apply more consistently between permission panels
and the password panel.

Differential Revision: https://phabricator.services.mozilla.com/D109105
2021-03-23 20:51:31 +00:00
Molly Howell
7165450449 Bug 1698436 - Keep overflow/customize menu items aligned. r=desktop-theme-reviewers,harry
This also fixes an issue with block margins that I noticed while developing
this patch, namely that the Profiler menu item was a few pixels too short
in addition to being offset to the right.

Differential Revision: https://phabricator.services.mozilla.com/D109453
2021-03-23 20:50:18 +00:00