Commit graph

924 commits

Author SHA1 Message Date
Emilio Cobos Álvarez
b025fc9258 Bug 1546542 - Add a pref to be able to enable arrowpanel animations on Linux. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D28585

--HG--
extra : moz-landing-system : lando
2019-04-24 09:56:38 +00:00
Emilio Cobos Álvarez
1ccf57f63f Bug 1470880 - Stop relying on [side] in arrowpanel selectors in order to remove last usage of xbl resources. r=bgrins
The reason why this fixes it is a bit subtle, let me try to explain.

XBL has this mechanism where all attributes in the binding `<content>` element
get auto-propagated to the bound element (the `<panel>` in this case).

This doesn't seem to be a very used feature looking at:

https://searchfox.org/mozilla-central/search?q=%3Ccontent&case=false&regexp=false&path=xml

The panel binding uses it to add the `side` attribute:

https://searchfox.org/mozilla-central/rev/d80f0a570736dce76a2eb184fb65517462089e8a/toolkit/content/widgets/popup.xml#264

The key here is that this attribute addition is silent (`aNotify=false`):

https://searchfox.org/mozilla-central/rev/d80f0a570736dce76a2eb184fb65517462089e8a/dom/xbl/nsXBLBinding.cpp#341

This means that the presence of this attribute is not supposed to change the
rendering of the page. It'd also be unsafe to notify at the point at which we
create XBL bindings.

So the way this happens is:

  * We compute the initial style of the `<panel>` element (which doesn't have a
    `side` attribute, and thus doesn't match the rules, and has a computed
    opacity of 1).
  * The XBL service _silently_ sets the `side` attribute. This should cause a
    style change, but it doesn't since it's silent, so we remain with the
    opacity of 1.
  * We open the popup, and the XBL binding listens for the `popupshowing` event
    and adds the `animate` attribute. The style system notices, and eventually
    we compute the new style. Issue is, it has again an opacity of 1, so we
    don't fire the transition.

Same with transform and such of course.

So far so good, but then, why does it work if there's a `<resources>` element
with an empty stylesheet? Fun that you ask!

We explicitly re-resolve the style of the element if there are any stylesheets:

https://searchfox.org/mozilla-central/rev/d80f0a570736dce76a2eb184fb65517462089e8a/dom/xbl/nsXBLService.cpp#551

And thus grab the correct initial opacity of zero, and trigger the transition.

Given arrow panels always have a `side` attribute (and same for the bookmarks
thing), making their style not depend on the silent attribute additions from
`<content>` fixes the bug.

We could fix the bug with an alternative patch (re-resolving style if there's a
`<content>` element with attributes in the binding). This wouldn't be completely
sound anyway in presence of combinators, and given that it'd remain being
unsound anyway, we should probably just remove that feature.

Also, the simplification of the stylesheets seems worth it anyway.

I'll follow-up removing the `<resources>` implementation, and we should probably
investigate removing the `<content>` attribute propagation, since it's the
really unsound thing here.

Differential Revision: https://phabricator.services.mozilla.com/D28310

--HG--
extra : moz-landing-system : lando
2019-04-24 09:29:48 +00:00
Bogdan Tara
6647b813f2 Backed out changeset 9509ae2baf1c (bug 1470880) for components/customizableui/test/browser* failures CLOSED TREE 2019-04-23 03:28:13 +03:00
Emilio Cobos Álvarez
e4f84a0b9d Bug 1470880 - Simplify arrowpanel selectors in order to remove last usage of xbl resources. r=bgrins
The reason why this fixes it is a bit subtle, let me try to explain.

XBL has this mechanism where all attributes in the binding `<content>` element
get auto-propagated to the bound element (the `<panel>` in this case).

This doesn't seem to be a very used feature looking at:

https://searchfox.org/mozilla-central/search?q=%3Ccontent&case=false&regexp=false&path=xml

The panel binding uses it to add the `side` attribute:

https://searchfox.org/mozilla-central/rev/d80f0a570736dce76a2eb184fb65517462089e8a/toolkit/content/widgets/popup.xml#264

The key here is that this attribute addition is silent (`aNotify=false`):

https://searchfox.org/mozilla-central/rev/d80f0a570736dce76a2eb184fb65517462089e8a/dom/xbl/nsXBLBinding.cpp#341

This means that the presence of this attribute is not supposed to change the
rendering of the page. It'd also be unsafe to notify at the point at which we
create XBL bindings.

So the way this happens is:

  * We compute the initial style of the `<panel>` element (which doesn't have a
    `side` attribute, and thus doesn't match the rules, and has a computed
    opacity of 1).
  * The XBL service _silently_ sets the `side` attribute. This should cause a
    style change, but it doesn't since it's silent, so we remain with the
    opacity of 1.
  * We open the popup, and the XBL binding listens for the `popupshowing` event
    and adds the `animate` attribute. The style system notices, and eventually
    we compute the new style. Issue is, it has again an opacity of 1, so we
    don't fire the transition.

Same with transform and such of course.

So far so good, but then, why does it work if there's a `<resources>` element
with an empty stylesheet? Fun that you ask!

We explicitly re-resolve the style of the element if there are any stylesheets:

https://searchfox.org/mozilla-central/rev/d80f0a570736dce76a2eb184fb65517462089e8a/dom/xbl/nsXBLService.cpp#551

And thus grab the correct initial opacity of zero, and trigger the transition.

Given arrow panels always have a `side` attribute (and same for the bookmarks
thing), making their style not depend on the silent attribute additions from
`<content>` fixes the bug.

We could fix the bug with an alternative patch (re-resolving style if there's a
`<content>` element with attributes in the binding). This wouldn't be completely
sound anyway in presence of combinators, and given that it'd remain being
unsound anyway, we should probably just remove that feature.

Also, the simplification of the stylesheets seems worth it anyway.

I'll follow-up removing the `<resources>` implementation, and we should probably
investigate removing the `<content>` attribute propagation, since it's the
really unsound thing here.

Differential Revision: https://phabricator.services.mozilla.com/D28310

--HG--
extra : moz-landing-system : lando
2019-04-22 21:41:29 +00:00
Felipe Gomes
1479262628 Bug 1539255 - Back out new tab animations. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D24964

--HG--
extra : moz-landing-system : lando
2019-03-27 14:55:13 +00:00
Sam Foster
b3f760835a Bug 1538285 - Make saved logins footer colors theme-friendly. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D24581

--HG--
extra : moz-landing-system : lando
2019-03-25 21:32:01 +00:00
Matthew Noorenberghe
bc2caa0b99 Bug 1533206 - Center the login autocomplete footer text. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D23395

--HG--
extra : histedit_source : d25b3ee35de5da8a67f47b9a8aebcc129c3bab04
2019-03-17 21:43:54 -07:00
Matthew Noorenberghe
6ad98db472 Backed out changeset db4a1fa6c07c (bug 1533206) for bad interactions between XUL flex and display:flex.
--HG--
extra : histedit_source : 3adee7bd962d6eb570b2a283ada2a5c5c7e043ba
2019-03-17 21:01:13 -07:00
prathiksha
5a2ccf9277 Bug 1533206 - Center the login autocomplete footer text. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D23395

--HG--
extra : moz-landing-system : lando
2019-03-14 18:52:11 +00:00
Alexander Surkov
9947de8f4b Bug 1525101 - Convert browser-search-autocomplete-result-popup into a Custom Element, r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D20819

--HG--
extra : moz-landing-system : lando
2019-03-06 21:06:41 +00:00
Brian Grinstead
1ac52b51b4 Bug 1530288 - Center align the reload button in customize mode r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D21323

--HG--
extra : moz-landing-system : lando
2019-03-01 12:00:10 +00:00
Marco Bonardo
69d74cca55 Bug 1523332 - Allow to instant switch on and off the Quantum Bar. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D20534

--HG--
extra : moz-landing-system : lando
2019-03-01 14:52:17 +00:00
prathiksha
6d94010e04 Bug 1189618 - Add a 'View Saved Logins' footer to the password manager autocomplete popup. r=MattN
Add a 'View Saved Logins' footer to the password manager autocomplete popup.

Differential Revision: https://phabricator.services.mozilla.com/D19602

--HG--
extra : moz-landing-system : lando
2019-02-25 18:30:32 +00:00
James Teh
3676e15738 Bug 1436086: Implement keyboard navigation for the main and Bookmarks toolbars. r=Gijs
Having separate tab stops for every toolbar control results in an unmanageable number of tab stops.
Therefore, we group several buttons under a single tab stop and allow movement between them using left/right arrows.
However, text inputs use the arrow keys for their own purposes, so they need their own tab stop.
There are also groups of buttons before and after the URL bar input which should get their own tab stop.
The subsequent buttons on the toolbar are then another tab stop after that.

Tab stops for groups of buttons are set using the <toolbartabstop/> element.
This element is invisible, but gets included in the tab order.
When one of these gets focus, it redirects focus to the appropriate button.
This avoids the need to continually manage the tabindex of toolbar buttons in response to toolbarchanges.

Navigation to for the View site information button and notification anchors is now managed by this new framework.
As such, they no longer need their own position in the tab order and the CSS has been tweaked accordingly.

For now, this new functionality is behind a pref (browser.toolbars.keyboard_navigation) which is currently disabled by default.

Differential Revision: https://phabricator.services.mozilla.com/D15060

--HG--
extra : moz-landing-system : lando
2019-02-13 22:51:06 +00:00
Cosmin Sabou
ea11387364 Backed out changeset a14a11bf2d6f (bug 1436086) for eslint failure on browser_toolbarButtonKeyPress.js. CLOSED TREE 2019-02-13 15:35:34 +02:00
James Teh
356adc5d97 Bug 1436086: Implement keyboard navigation for the main and Bookmarks toolbars. r=Gijs
Having separate tab stops for every toolbar control results in an unmanageable number of tab stops.
Therefore, we group several buttons under a single tab stop and allow movement between them using left/right arrows.
However, text inputs use the arrow keys for their own purposes, so they need their own tab stop.
There are also groups of buttons before and after the URL bar input which should get their own tab stop.
The subsequent buttons on the toolbar are then another tab stop after that.

Tab stops for groups of buttons are set using the <toolbartabstop/> element.
This element is invisible, but gets included in the tab order.
When one of these gets focus, it redirects focus to the appropriate button.
This avoids the need to continually manage the tabindex of toolbar buttons in response to toolbarchanges.

Navigation to for the View site information button and notification anchors is now managed by this new framework.
As such, they no longer need their own position in the tab order and the CSS has been tweaked accordingly.

For now, this new functionality is behind a pref (browser.toolbars.keyboard_navigation) which is currently disabled by default.

Differential Revision: https://phabricator.services.mozilla.com/D15060

--HG--
extra : moz-landing-system : lando
2019-02-13 11:18:45 +00:00
Dão Gottwald
30ff4f3151 Bug 1511053 - Stop affecting the titlebar's height while dragging tabs. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D19268

--HG--
extra : moz-landing-system : lando
2019-02-10 15:34:22 +00:00
Brian Grinstead
04c18529e4 Bug 1487065 - Implement popup-notification as a Custom Element r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D17699

--HG--
rename : toolkit/content/widgets/notification.xml => toolkit/content/widgets/popupnotification.js
extra : moz-landing-system : lando
2019-02-07 22:16:26 +00:00
YUKI "Piro" Hiroshi
b87aa2cf4c Bug 1521688 - Show titlebar buttons when drawInTitlebar=true, window.open with features="toolbar", View => Toolbars => Menu Bar=checked r=dao
Differential Revision: https://phabricator.services.mozilla.com/D17331

--HG--
extra : moz-landing-system : lando
2019-02-07 12:46:25 +00:00
ui.manish
a6eb401016 Bug 1366200- Move identity block styles out of browser.css r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D18658

--HG--
extra : moz-landing-system : lando
2019-02-07 11:16:59 +00:00
Dão Gottwald
f55814ced7 Bug 1524838 - UrlbarView: remove action labels from results while pressing an action override key (alt, shift, accel). r=mak
Differential Revision: https://phabricator.services.mozilla.com/D18501

--HG--
extra : moz-landing-system : lando
2019-02-05 13:24:39 +00:00
Csoregi Natalia
9423fa7897 Merge mozilla-central to mozilla-inbound. CLOSED TREE 2019-02-02 00:14:12 +02:00
Felipe Gomes
c48e1ed307 Bug 1355588 - Implement slide-up/down tab opening/closing animation. r=dao
This patch implements a new, preffed-off tab opening/closing animation where the tab slides up and down in place. In addition, it adjusts some tests and code that were relying on the max-width transitionend event happening. The intent of the patch is to land it preffed-off and iterate on the design in the tree

Differential Revision: https://phabricator.services.mozilla.com/D15955

--HG--
extra : moz-landing-system : lando
2019-02-01 17:35:05 +00:00
Alexander Surkov
fccfd070c9 Bug 1519486 - convert autocomplete-richlistitem-insecure-field XBL binding to CE, r=bgrins 2019-01-24 08:40:22 -05:00
Dão Gottwald
a3d0fb61e8 Bug 1522522 - Show "Switch to tab:" and "Extension:" labels in the qunatumbar input. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D17919

--HG--
extra : moz-landing-system : lando
2019-01-29 14:58:43 +00:00
Cosmin Sabou
a2aab24802 Backed out changeset 5c6cdeb8648d (bug 1355588) causing talos tart timeouts.
--HG--
extra : rebase_source : 238d706bb366772d4870493938deac41a271db6b
2019-01-23 21:44:55 +02:00
Felipe Gomes
73289b1560 Bug 1355588 - Implement slide-up/down tab opening/closing animation. r=dao
This patch implements a new, preffed-off tab opening/closing animation where the tab slides up and down in place. In addition, it adjusts some tests and code that were relying on the max-width transitionend event happening. The intent of the patch is to land it preffed-off and iterate on the design in the tree

Differential Revision: https://phabricator.services.mozilla.com/D15955

--HG--
extra : moz-landing-system : lando
2019-01-23 15:51:57 +00:00
Mark Banner
2ed2cfee12 Bug 1521719 - Stop the legacy urlbar binding being constructed and registering listeners when QuantumBar is enabled. r=dao
As a result, we can also re-enable some tests running against QuantumBar.

Differential Revision: https://phabricator.services.mozilla.com/D17352

--HG--
extra : moz-landing-system : lando
2019-01-23 16:15:34 +00:00
Martin Stransky
8ddc948f81 Bug 1433667 - Honour system titlebar button left/right placement, r=dao
Differential Revision: https://phabricator.services.mozilla.com/D16466

--HG--
extra : moz-landing-system : lando
2019-01-18 13:52:29 +00:00
Pascal Chevrel
129e8e258d Bug 1455331 - Change fullscreen transition duration from 1.5s to 0.8s r=florian 2019-01-03 10:25:58 +01:00
Paolo Amadini
55e0dac60d Bug 1472557 - Remove the "scrollbox" anonymous element from "richlistbox". r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D15388

--HG--
extra : source : b46be9dd9fe019870b2e33b26db8204db79aad23
2018-12-30 13:48:45 +00:00
Timothy Guan-tin Chien
9292b73037 Bug 1512489 - Convert datetime-popup binding to a JSM r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D13944

--HG--
rename : toolkit/content/widgets/datetimepopup.xml => toolkit/modules/DateTimePickerPanel.jsm
extra : moz-landing-system : lando
2018-12-21 21:51:57 +00:00
Boris Chiou
c35f47093e Bug 1322780 - Part 2: Support unprefixed min-content and max-content. r=mats,emilio
Support unprefixed min-content and max-content and treat the prefixed
version as aliases for
1. width, min-width, max-width if inline-axis is horizontal, and
2. height, min-height, max-height if inline-axis is vertical, and
3. inline-size, min-inline-size, max-inline-size, and
4. flex-basis.

Besides, update the test cases to use unprefixed max-content and
min-content.

Depends on D7535

Differential Revision: https://phabricator.services.mozilla.com/D7536

--HG--
extra : moz-landing-system : lando
2018-12-18 18:47:37 +00:00
Dão Gottwald
38c1a64250 Bug 1512159 - Fix hiding of minimize and restore buttons in tablet mode. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D13800

--HG--
extra : moz-landing-system : lando
2018-12-07 14:37:35 +00:00
Adrian Kaczmarek
87b118cac2 Bug 1292878 - Use :root instead of #main-window in browser/base/content/browser.css. r=dao 2018-12-06 22:57:40 +01:00
Jared Wein
98ab4d61f7 Bug 1511095 - Remove SchedulePressure.jsm and the fallback loading throbber in the tabstrip. r=mconley
The APNG version is still used by the TabsList which can't support the SVG version of the throbber currently.

Differential Revision: https://phabricator.services.mozilla.com/D13461

--HG--
extra : moz-landing-system : lando
2018-11-29 22:25:33 +00:00
Dão Gottwald
68304e4ba7 Backed out changeset e6377178d093 (bug 1503161) for causing a bunch of regressions 2018-11-28 12:59:52 +01:00
yehudab
d8e6ef12af Bug 1503161 - Use rtl for placeholder text in urlbar if user interface is rtl r=dao
The URL bar is used for showing the URL, but also as a way to start a search.
A placeholder text is shown to let the user know about these possibilities.
In right-to-left (RTL) interface, URLs are forced to be displayed from left-to-right (LTR) to avoid confusion.
This creates an undesired side-effect, causing the placeholder text to also display LTR.
Following changes in bug 1449317, this placeholder text now contains both localized text, and names of search engines (such as Google), which causes a break in the bidi flow of text.

Differential Revision: https://phabricator.services.mozilla.com/D11565

--HG--
extra : moz-landing-system : lando
2018-11-22 17:00:03 +00:00
Mike Conley
e1d917279b Bug 1508954 - Avoid accidentally overriding rules that collapse toolbars when in fullscreen mode. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D12585

--HG--
extra : moz-landing-system : lando
2018-11-22 15:37:36 +00:00
Mike Conley
619e4b963b Bug 1507382 - Show titlebar items when menubar enabled. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D12236

--HG--
extra : moz-landing-system : lando
2018-11-21 15:09:31 +00:00
Brian Grinstead
9a1ef58567 Bug 1507875 - Remove the customizable ui toolbarpaletteitem binding;r=Gijs
This removes the wrapping box inside the anonymous content, and replaces
the anonymous label with an ::after CSS rule that sets text based on
the [title] attribute.

Because it doesn't replicate the anonymous wrapping box with light DOM:
- Calling JS don't need to be updated (the child added via appendChild
  is still a direct descendant of the element).
- Many CSS selectors don't need to be updated (if they were targeting the
  slotted children as direct descendants. However, CSS selectors that were
  targeting the anonymous content directly do need to be updated, since those
  nodes are removed.

Differential Revision: https://phabricator.services.mozilla.com/D12172

--HG--
extra : moz-landing-system : lando
2018-11-20 17:01:48 +00:00
Razvan Maries
6c55ab0f9e Merge mozilla-inbound to mozilla-central a=merge 2018-11-15 00:16:46 +02:00
Mike Conley
c894b19312 Bug 1505906 - Update some CSS to recent changes in the DOM structure to fix dragging tabs onto toolbar items. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D11538

--HG--
extra : moz-landing-system : lando
2018-11-14 15:01:03 +00:00
Brian Grinstead
5a5b5e519b Bug 1507045 - Remove the customizable ui toolbar binding;r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D11841

--HG--
extra : moz-landing-system : lando
2018-11-14 10:28:20 +00:00
Paolo Amadini
f6b106efb2 Bug 1496827 - Remove the "notification" binding. r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D11650

--HG--
rename : browser/components/customizableui/content/.eslintrc.js => browser/components/translation/content/.eslintrc.js
rename : browser/components/translation/jar.mn => browser/components/translation/content/jar.mn
rename : browser/components/translation/microsoft-translator-attribution.png => browser/components/translation/content/microsoft-translator-attribution.png
rename : browser/components/customizableui/content/moz.build => browser/components/translation/content/moz.build
rename : browser/components/translation/translation-infobar.xml => browser/components/translation/content/translation-notification.js
extra : rebase_source : 598396d2da96b04782413946976f7bb9fb6be75f
2018-11-13 12:56:42 +00:00
shindli
fbde86e1a5 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-11-10 23:40:36 +02:00
Dão Gottwald
51ba18b781 Bug 1506342 - Fix Ctrl+Tab preview styling. r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D11552

--HG--
extra : moz-landing-system : lando
2018-11-10 21:13:29 +00:00
Mike Conley
1b50b597e6 Bug 1498400 - Rename titlebar-placeholder to titlebar-spacer. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D11133

--HG--
extra : moz-landing-system : lando
2018-11-07 09:54:26 +00:00
Daniel Varga
3d9ab59490 Merge mozilla-central to autoland. a=merge
--HG--
extra : rebase_source : 423e41eec91a44f6e3862da7972a40e4806d79e8
2018-11-07 00:03:28 +02:00
Dão Gottwald
542127d98c Bug 1503304 - Make toolbar_text fall back to textcolor. r=ntim
Differential Revision: https://phabricator.services.mozilla.com/D11026

--HG--
extra : moz-landing-system : lando
2018-11-06 16:50:29 +00:00