Commit Graph

1159 Commits

Author SHA1 Message Date
Csoregi Natalia
010df0501b Backed out changeset e01ec8694924 (bug 1700957) as requested. CLOSED TREE 2021-04-28 18:09:01 +03:00
Emma Malysz
91c90b996d 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
e3f5ddbc25 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
75fb2ad086 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
63bab09dde 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
2d83a9e59c 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
aeaaee173a Backed out changeset 7338e5d940a6 (bug 1702237) for bc failures on browser_switchToTab_chiclet.js. 2021-04-27 04:14:10 +03:00
Daisuke Akatsuka
6d796b73d5 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
50364ef74a 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
5beef17a47 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
563b2d79de 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
a1bcf3c0d4 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
d397578af3 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
47b9f9c155 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
3977844bfa 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
3063be1402 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
d5fff0d93b 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
768e9d3507 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
82bda9ae67 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
9298192d52 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
b2dba62dd0 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
36a68ee639 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
2be160a28f 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
150e9d6fbf 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
3f92ace051 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
3ce2a2a7ed 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
987f20fe74 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
9e595a5d5d 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
b49e07a6b4 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
Dão Gottwald
89a000e3b9 Bug 1698249 - Move theme variables from browser/base/content/browser.css to browser/themes/shared/browser.inc.css. r=ntim
Differential Revision: https://phabricator.services.mozilla.com/D108309
2021-03-13 13:09:31 +00:00
prathikshaprasadsuman
5c1550186c Bug 1697482 - Put labels above username and password fields in the save/update password panel. r=mconley,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D108050
2021-03-12 16:28:21 +00:00
Gijs Kruitbosch
e47d80fd05 Bug 1693277 - fix positioning of content dialogs irrespective of size, r=mtigley
This commit uses CSS grid layout to position content modal prompts, and to get the
requisite 5% top and bottom margins in a way that doesn't require JS to update,
and adapts to resizing and things like the find bar and devtools opening. To make
this work right it also removes the 5px negative top margin for these dialogs.

Then this commit adds some logic to SubDialog.jsm to support this behaviour.
Prior to this change, SubDialog.jsm sets height/width on the dialogs that go
through it, except if they pass sizeto=available (used by the print dialog).

This new sizeTo value similarly avoids all the complex sizing logic - but also
avoids the print logic of having an aspect ratio to maintain when the window
changes size. We use the content size it determines to set the height of the
dialog (a grid row): either 90% (so there's 5% above and 5% below) or the
document height, whichever is smaller.

The next commit will use this setup to deal with the problem of variable length
content inside the dialog that we're trying to show.

Differential Revision: https://phabricator.services.mozilla.com/D107110
2021-03-05 10:50:52 +00:00
Gijs Kruitbosch
d656075ab5 Bug 1693277 - fix long text wrapping, shadows, radii and colours for proton, and clean up some CSS, r=mtigley
This moves some inline styles into CSS and fixes modal masks and shadows to match the spec.

I also noticed some negative effects from other Proton button styles on close-icon buttons in dialogs
in about:preferences (e.g. check the oversized titlebar for the fonts dialog) that I fixed here.

Differential Revision: https://phabricator.services.mozilla.com/D107109
2021-03-05 10:50:52 +00:00
Alexandru Michis
1bdbc5bca3 Backed out 3 changesets (bug 1693277) for causing bc failures in browser_modal_resize.js
CLOSED TREE

Backed out changeset 0580aaec32a0 (bug 1693277)
Backed out changeset be8108cd9820 (bug 1693277)
Backed out changeset 8b9986d057d7 (bug 1693277)
2021-03-05 03:58:03 +02:00
Gijs Kruitbosch
2318383d84 Bug 1693277 - fix positioning of content dialogs irrespective of size, r=mtigley
This commit uses CSS grid layout to position content modal prompts, and to get the
requisite 5% top and bottom margins in a way that doesn't require JS to update,
and adapts to resizing and things like the find bar and devtools opening. To make
this work right it also removes the 5px negative top margin for these dialogs.

Then this commit adds some logic to SubDialog.jsm to support this behaviour.
Prior to this change, SubDialog.jsm sets height/width on the dialogs that go
through it, except if they pass sizeto=available (used by the print dialog).

This new sizeTo value similarly avoids all the complex sizing logic - but also
avoids the print logic of having an aspect ratio to maintain when the window
changes size. We use the content size it determines to set the height of the
dialog (a grid row): either 90% (so there's 5% above and 5% below) or the
document height, whichever is smaller.

The next commit will use this setup to deal with the problem of variable length
content inside the dialog that we're trying to show.

Differential Revision: https://phabricator.services.mozilla.com/D107110
2021-03-05 00:07:36 +00:00
Gijs Kruitbosch
f36dc7d1ae Bug 1693277 - fix long text wrapping, shadows, radii and colours for proton, and clean up some CSS, r=mtigley
This moves some inline styles into CSS and fixes modal masks and shadows to match the spec.

I also noticed some negative effects from other Proton button styles on close-icon buttons in dialogs
in about:preferences (e.g. check the oversized titlebar for the fonts dialog) that I fixed here.

Differential Revision: https://phabricator.services.mozilla.com/D107109
2021-03-05 00:07:35 +00:00
Gijs Kruitbosch
504df4d357 Bug 1696450 - fix pocket-disabling-induced issues with separators in the context menus, r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D107260
2021-03-04 21:14:41 +00:00
Harry Twyford
9e03d6abcd Bug 1694734 - Reapply background-color rule to :root on Windows 7/8. r=desktop-theme-reviewers,ntim,mixedpuppy
While using -moz-os-version selectors in a shared CSS file isn't ideal, I think it's the best approach here. These selectors will hopefully be temporary, and will be removed when bug 1695280 is fixed. I considered a creating a ruleset like
```
@media (-moz-os-version: windows-win7),
       (-moz-os-version: windows-win8) {
  #navigator-toolbox:-moz-lwtheme {
    background-color: unset;
  }
  :root:-moz-lwtheme {
    background-color: var(--lwt-accent-color);
  }
}
```
in browser/themes/windows/browser.css, but I think unsetting the background-color could become a headache if we need to make any other changes to the #navigator-toolbox background. We could also move these background rules to platform-specific stylesheets, but that way they're defined much later in the CSS despite being fairly foundational rules. It would also create more code to remove in bug 1695280.

Differential Revision: https://phabricator.services.mozilla.com/D106670
2021-03-02 14:12:49 +00:00
harry
d826e1c397 Bug 1594132 - Move background-color rules so they do not appear under appearance rules, enabling sidebar vibrancy. r=ntim,dao
`appearance` CSS rules allow elements to take on system appearance. For UI elements that we want to take on system styling, we set `appearance: auto` combined with platform-specific rules like `-moz-default-appearance: -moz-mac-vibrant-titlebar-light;`

macOS sidebar vibrancy broke because a background-color was being applied to `root`. That colour appeared under elements with `appearance: auto` set, so we wouldn't see the platform-specific styling. This patch moves the root background-color to `#navigator-toolbox`, so that it does not appear under `#sidebar-box`.

We still want a background colour applied to sidebars when a lwtheme includes one. We only want `appearance: auto` applied to sidebars when the active theme does not have sidebar styling rules. That's why `#sidebar-box:not(:-moz-lwtheme)` is changed to `#sidebar-box:not([lwt-sidebar])`.

This patch also removes the rule
```
:root:-moz-lwtheme {
  appearance: none;
}
```
from osx/global/global.css. There's no corresponding addition of a `#navigator-toolbox { appearance:none; }` rule because that rule already exists in [osx/browser.css](https://searchfox.org/mozilla-central/rev/7067bbd8194f4346ec59d77c33cd88f06763e090/browser/themes/osx/browser.css#45).

Differential Revision: https://phabricator.services.mozilla.com/D104416
2021-02-23 15:03:45 +00:00
Mike Conley
cd669d5f69 Bug 1693710 - Suppress the notch on doorhangers if Proton doorhangers are enabled. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D105809
2021-02-19 19:10:14 +00:00
Jared Wein
2f3036ec09 Bug 1693714 - Restore selector that applies an animation to background tabs when dragging a tab within the tabstrip. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D105711
2021-02-19 14:23:14 +00:00
Gijs Kruitbosch
0180ad464d Bug 1693406 - fix select dropdown styling in proton when the page customizes it, r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D105642
2021-02-18 16:33:20 +00:00
Markus Stange
a8c67d5711 Bug 1693196 - Remove use of -moz-default-appearance: -moz-mac-fullscreen-button. r=emilio
This element is always 0x0 and macOS widget code no longer needs to know its position.

Depends on D105378

Differential Revision: https://phabricator.services.mozilla.com/D105379
2021-02-17 01:40:04 +00:00
Gijs Kruitbosch
aed422b7c4 Bug 1685313 - allow window modal dialogs to display inside windows, r=jaws,mtigley
Differential Revision: https://phabricator.services.mozilla.com/D103388
2021-02-12 22:41:53 +00:00
Andreea Pavel
dc95e4ea51 Backed out 3 changesets (bug 1685313) for failing test_prompt.html on a CLOSED TREE
Backed out changeset 7bdcbdc2d57f (bug 1685313)
Backed out changeset 319bc4d7bc0d (bug 1685313)
Backed out changeset 713de42fe3b4 (bug 1685313)
2021-02-12 06:50:58 +02:00
Gijs Kruitbosch
d850080871 Bug 1685313 - allow window modal dialogs to display inside windows, r=jaws,mtigley
Differential Revision: https://phabricator.services.mozilla.com/D103388
2021-02-11 23:57:57 +00:00
Paul Zuehlcke
a1d23766c7 Bug 1596897 - Moved permission list from site identity to separate permission panel. r=johannh
- Added a new permission panel managed by the gPermissionPanel object
- Updated identity-box to separate identity and permission section

Differential Revision: https://phabricator.services.mozilla.com/D99892
2021-02-05 13:40:35 +00:00
Emma Malysz
5a03aeace8 Bug 1689405: remove components of library panel r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D103532
2021-01-30 17:12:51 +00:00
Narcis Beleuzu
926d2f6257 Backed out 2 changesets (bug 1596897) for bc failures on browser_search_discovery.js
Backed out changeset 635972f169e7 (bug 1596897)
Backed out changeset a84b667007e2 (bug 1596897)
2021-01-30 04:01:21 +02:00
Paul Zuehlcke
480794a586 Bug 1596897 - Moved permission list from site identity to separate permission panel. r=johannh
- Added a new permission panel managed by the gPermissionPanel object
- Updated identity-box to separate identity and permission section

Differential Revision: https://phabricator.services.mozilla.com/D99892
2021-01-29 16:06:08 +00:00