Commit graph

9922 commits

Author SHA1 Message Date
Emilio Cobos Álvarez
52f2d921b7 Bug 1790513 - Use matching system colors in plugins.css. r=desktop-theme-reviewers,Itiel
Differential Revision: https://phabricator.services.mozilla.com/D157171
2022-09-13 09:38:29 +00:00
Noemi Erli
0aa272d858 Backed out 2 changesets (bug 1781434) for causing failures in test_bug398289.html CLOSED TREE
Backed out changeset d6a154ada951 (bug 1781434)
Backed out changeset 0ddeff2468d8 (bug 1781434)
2022-09-13 05:07:02 +03:00
Emilio Cobos Álvarez
9dfa48c283 Bug 1781434 - Clean-up dialog initial focus code. r=pbz,Gijs
Make it a bit easier to read and less prone to race conditions. Remove a
setTimeout referencing bug 103197 which I'm pretty sure it's not an
issue.

Differential Revision: https://phabricator.services.mozilla.com/D156543
2022-09-12 21:22:37 +00:00
criss
f041d9ae81 Backed out changeset 8de3f54dc3ca (bug 1781434) for causing mochitest failures on test_dialogfocus.xhtml . CLOSED TREE 2022-09-12 21:15:28 +03:00
Emilio Cobos Álvarez
1ba236a56c Bug 1781434 - Clean-up dialog initial focus code. r=pbz,Gijs
Make it a bit easier to read and less prone to race conditions. Remove a
setTimeout referencing bug 103197 which I'm pretty sure it's not an
issue.

Differential Revision: https://phabricator.services.mozilla.com/D156543
2022-09-12 17:22:24 +00:00
Emilio Cobos Álvarez
431f95bfde Bug 1790297 - Clean-up -moz-box-emulation-specific rules. r=dao
Most of the display: block stuff isn't needed anymore because we changed
the blockification behavior in bug 1789123.

.tab-stack, and stacks in general now uses CSS grid so doesn't need that
anymore.

DevTools is the only consumer of <xul:iframe> and width/height was
getting ignored in XUL because flexibility takes precedence, so just
remove the relevant declarations.

Differential Revision: https://phabricator.services.mozilla.com/D157070
2022-09-12 13:18:34 +00:00
Emilio Cobos Álvarez
e0a656e5f8 Bug 1790304 - Remove similar declarations that affect XUL trees in about:preferences. r=dao
Same issue. I don't think these get honored whatsoever.

Differential Revision: https://phabricator.services.mozilla.com/D157072
2022-09-12 13:17:03 +00:00
Bernard Igiri
61cba40702 Bug 1781917 - Add logging to test_videocontrols_audio.html to get information about the frequent failures. r=mhowell
Adding more logging to test test_videocontrols_audio.html test to gather more information about test failure.

Differential Revision: https://phabricator.services.mozilla.com/D155424
2022-09-09 15:22:57 +00:00
a153
de52e54c6a Bug 1756211 - Time input using 24h does not change AM/PM. r=kpatenio,niklas,emilio
Differential Revision: https://phabricator.services.mozilla.com/D142776
2022-09-09 02:09:21 +00:00
Brian Grinstead
4887ea87fd Bug 1625632 - Test for button element forwarding accesskey to dialog buttons;r=dao
Differential Revision: https://phabricator.services.mozilla.com/D156623
2022-09-08 16:52:15 +00:00
Emilio Cobos Álvarez
b5c2fd645c Bug 1789123 - Make anonymous box wrapping inside XUL boxes be similar to modern flex boxes. r=dholbert
I haven't spotted any UI regression from this, and this should generally
make the XUL -> modern flex transition easier, and simplify some
of the relevant code.

This does fix a few layout issues with emulated flexbox.

For the most part, this shouldn't change behavior without that. This
changes behavior if you have mixed inline/non-inline content in the same
XUL box (before they'd get a single item, now you'd get the flexbox /
grid behavior of one item per inline run), and multiple inline-elements
(which would become their own flex items). But I pushed a patch with
some asserts and they didn't fire on our browser mochitests, so I think
we're good.

The UA rule refactoring (removing the inherit from xul anon blocks)
shouldn't matter in practice, since we only have one item (so
box-ordinal is irrelevant) and they have overflow: visible (so
text-overflow and overflow-clip-box shouldn't have an effect).

Differential Revision: https://phabricator.services.mozilla.com/D156375
2022-09-08 11:51:15 +00:00
Thomas Duellmann
5547893cb2 Bug 1625632 - Fix dialog button access key handling for unmodified keypress. r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D155493
2022-09-07 20:27:51 +00:00
Emilio Cobos Álvarez
13572bce66 Bug 1788273 - Tweak popup alignment so that it looks good on mirrored wayland popups. r=dao,mak
When these panels had arrows, I guess the bottomcenter topleft alignment
made sense so that you could precisely align the arrow, but that's not
what we do now.

Don't use bottomcenter / leftcenter / rightcenter, since we really want
the sides to align.

This shouldn't change behavior on any platform except Linux + Wayland,
where the alignment looks good now in the case of bug 1784876.

Differential Revision: https://phabricator.services.mozilla.com/D156099
2022-09-02 20:26:29 +00:00
Butkovits Atila
c520b707bd Backed out changeset 368a7ce1b104 (bug 1788273) for causing failures at browser_recently_closed_tabs.js. CLOSED TREE 2022-09-02 16:35:55 +03:00
Emilio Cobos Álvarez
0777329f69 Bug 1788273 - Tweak popup alignment so that it looks good on mirrored wayland popups. r=dao,mak
When these panels had arrows, I guess the bottomcenter topleft alignment
made sense so that you could precisely align the arrow, but that's not
what we do now.

Don't use bottomcenter / leftcenter / rightcenter, since we really want
the sides to align.

This shouldn't change behavior on any platform except Linux + Wayland,
where the alignment looks good now in the case of bug 1784876.

Differential Revision: https://phabricator.services.mozilla.com/D156099
2022-09-02 11:18:54 +00:00
Eemeli Aro
4ce19437ce Bug 1785216 - Migrate notification.dtd to Fluent. r=jaws,fluent-reviewers,flod,mconley
Except for the close-notification-message, all of the notification.dtd
strings are only used by popupnotification.js. Accordingly, the strings
are migrated to two different FTL files.

Differential Revision: https://phabricator.services.mozilla.com/D154890
2022-09-02 11:03:31 +00:00
Sarah Clements
3312ce0c28 Bug 1764137 - Add correct aria-roles to named-deck in firefoxview r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D156085
2022-09-02 10:59:13 +00:00
Emilio Cobos Álvarez
e3d2060438 Bug 1740989 - Implement focus fixup rule. r=smaug
This implements the proposal in the linked spec issue, and makes
it nightly-only pending resolution + edits.

Differential Revision: https://phabricator.services.mozilla.com/D155970
2022-09-01 11:28:47 +00:00
Iulian Moraru
c4572532eb Backed out changeset d8f983951128 (bug 1740989) for causing mochitest-chrome failures on test_modal_prompts.html. CLOSED TREE 2022-09-01 01:03:29 +03:00
Emilio Cobos Álvarez
c5ffe23435 Bug 1740989 - Implement focus fixup rule. r=smaug
This implements the proposal in the linked spec issue, and makes
it nightly-only pending resolution + edits.

Differential Revision: https://phabricator.services.mozilla.com/D155970
2022-08-31 17:10:17 +00:00
Dan Baker
99a284a26f Bug 1787335 - Moving RTP Stats further up in Session Statistics.;r=ng
Differential Revision: https://phabricator.services.mozilla.com/D155631
2022-08-30 23:40:23 +00:00
Eemeli Aro
7fc8beef67 Bug 1786055 - Drop find keys from editMenuKeys.inc.xhtml. r=mconley
It would appear that these <key> definitions in editMenuKeys.inc.xhtml
are not actaully used anywhere.

Differential Revision: https://phabricator.services.mozilla.com/D155448
2022-08-26 16:31:40 +00:00
Eemeli Aro
3dd348bc8c Bug 1784882 - Drop MozDialog help button. r=mkmelin,dao
The <dialog> help button is not used by Firefox or Thunderbird,
and its behaviour is untested.

Differential Revision: https://phabricator.services.mozilla.com/D154871
2022-08-25 11:19:00 +00:00
Kagami Sascha Rosylight
102bd338be Bug 1695435 - Part 2: Add more words to the chrome script heuristic in use-isInstance r=preferences-reviewers,Gijs,webdriver-reviewers,whimboo,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D110932
2022-08-24 22:47:42 +00:00
Eemeli Aro
0b78e9e392 Bug 1734221 - Migrate datetimebox strings from DTD to FTL. r=emilio,fluent-reviewers,flod
As the widget requires the individual fields' placeholder values to
be known during their build, the DOMLocalization instance used here
needs to have sync methods enabled. For the same reason, the
placeholder strings need to be separate messages, rather than
attributes on the same message as the corresponding label.

Differential Revision: https://phabricator.services.mozilla.com/D154448
2022-08-24 08:32:13 +00:00
Kagami Sascha Rosylight
a41415cb68 Bug 1695435 - Part 1: Use isInstance in XUL files r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D154841
2022-08-22 18:34:44 +00:00
Neil Deakin
0de8be3ac6 Bug 1759604, check CanDropLink during the drop event as sites can cancel the dragover event causing the drop event to still fire, r=arai
Differential Revision: https://phabricator.services.mozilla.com/D154896
2022-08-19 22:15:50 +00:00
Andreea Pavel
598e7039e5 Bug 1781917 - disable test_videocontrols_audio.html on windows and mac opt for frequent failures. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D154333
2022-08-12 12:42:42 +00:00
Hanna Jones
6a64454d2a Bug 1761158 - fix addEventListener call in datetimebox destructor r=mstriemer
Try build: https://treeherder.mozilla.org/jobs?repo=try&revision=cbc16db400b9ce30fe1253f4364052ccde24d6e2

Differential Revision: https://phabricator.services.mozilla.com/D154920
2022-08-18 15:24:08 +00:00
Edgar Chen
431e96c5ac Bug 1776843 - Part 1: Move clipboard tests to dom/events/test/clipboard/; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D152653
2022-08-18 07:58:22 +00:00
Eemeli Aro
c48445143e Bug 1731351 - Move restoreColumnOrder.label from DTD to FTL. r=fluent-reviewers,flod,jaws
Differential Revision: https://phabricator.services.mozilla.com/D154517
2022-08-17 08:06:41 +00:00
Eemeli Aro
eda109bfb2 Bug 1771126 - Migrate resetProfileProgress strings from DTD to FTL. r=fluent-reviewers,flod,jaws
Differential Revision: https://phabricator.services.mozilla.com/D154523
2022-08-15 13:54:19 +00:00
Emilio Cobos Álvarez
a7401488af 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
7f5e2711c6 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
a2ec6564f3 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
Bernard Igiri
58e7783c9d Bug 1781917 - Try to make test_videocontrols_audio.html more robust to address the frequent failures. r=Gijs
Attempting to make test more robust to reduce the opportunity for intermittant failures.

Differential Revision: https://phabricator.services.mozilla.com/D153385
2022-08-11 21:23:01 +00:00
Cosmin Sabou
8158c6a1d3 Backed out changeset c97989ad6a32 (bug 1781917) for not being necessary anymore. 2022-08-12 17:29:42 +03:00
Andreea Pavel
cfba53ca80 Bug 1781917 - temporarily disable test_videocontrols_audio.html r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D154333
2022-08-12 12:42:42 +00:00
Emilio Cobos Álvarez
5b6ce8a6e2 Bug 1784287 - Use input margin for screen size expansion. r=tnikkel
This is a follow-up to bug 1783500. The existing expansion for the
screen area works great on Windows and so on, but on macOS it can
conceptually cause a menulist to go off-screen, because of this margin
used to move menulists to the left:

  https://searchfox.org/mozilla-central/rev/f655bdf6b4bf01b42609750ab94fc37635397260/toolkit/themes/osx/global/popup.css#85

Instead we should do the same as that bug did, and use the
input-region-margin, which is the amount of space that has no content
(that is, that contains the shadow and so on) and is zero on macOS
(because shadows on macOS are drawn by the OS unlike on Windows /
Linux).

This required extra test changes so it was worth getting it reviewed
separately.

Differential Revision: https://phabricator.services.mozilla.com/D154401
2022-08-12 12:21:59 +00:00
Emilio Cobos Álvarez
ff538cab0e 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
Iulian Moraru
8bd35b4844 Backed out changeset cc9ac78aac71 (bug 1784287) for causing mochitest-chrome failures on test_largemenu.html. 2022-08-11 23:23:37 +03:00
Emilio Cobos Álvarez
326c48480e Bug 1784287 - Use input margin for screen size expansion. r=tnikkel
This is a follow-up to bug 1783500. The existing expansion for the
screen area works great on Windows and so on, but on macOS it can
conceptually cause a menulist to go off-screen, because of this margin
used to move menulists to the left:

  https://searchfox.org/mozilla-central/rev/f655bdf6b4bf01b42609750ab94fc37635397260/toolkit/themes/osx/global/popup.css#85

Instead we should do the same as that bug did, and use the
input-region-margin, which is the amount of space that has no content
(that is, that contains the shadow and so on) and is zero on macOS
(because shadows on macOS are drawn by the OS unlike on Windows /
Linux).

This required extra test changes so it was worth getting it reviewed
separately.

Differential Revision: https://phabricator.services.mozilla.com/D154401
2022-08-11 17:58:03 +00:00
Emilio Cobos Álvarez
cc504014d5 Bug 1783500 - Account for input region margins when anchoring to a large rect. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D154074
2022-08-11 10:40:56 +00:00
Emilio Cobos Álvarez
e23e2a0212 Bug 1783934 - Add a chrome-only -moz-box-layout: legacy | flex, and use that to implement flexbox emulation. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D154153
2022-08-10 19:46:37 +00:00
Greg Tatum
3c686461e9 Bug 1782579 - Pass languages to the text recognition api; r=nordzilla,emilio
Differential Revision: https://phabricator.services.mozilla.com/D153668
2022-08-10 19:38:46 +00:00
Greg Tatum
43adfeafe7 Bug 1782578 - Rename and move the context menu for text recognition r=nordzilla,fluent-reviewers,flod
This matches what is in the Figma spec.

Differential Revision: https://phabricator.services.mozilla.com/D153394
2022-08-10 19:38:44 +00:00
Greg Tatum
d2d1bca50b Bug 1782578 - Put the img shadow DOM behind a preference r=nordzilla
This code will most likely be removed, but for now I am putting it
behind a pref so that it won't be activated when the modal is being
created.

See Bug 1782582 for the removal of the code.

Differential Revision: https://phabricator.services.mozilla.com/D153393
2022-08-10 19:38:44 +00:00
Emilio Cobos Álvarez
63b17f21b8 Bug 1783882 - Don't flex searchbar listbox. r=dao
I can't reproduce this on Linux (which would make it easier to dig into what's
going on), but I confirmed this fixes the issue on Windows.

The flexing algorithm of XUL doesn't deal well with the footer block.

This shouldn't be needed, I think, because the listbox height is handled
explicitly in

  https://searchfox.org/mozilla-central/rev/6a37a2ab9328bec6a29f688d1b2fba6974d34905/toolkit/content/widgets/autocomplete-popup.js#361

Also use CSS rather than attributes to flex stuff.

Differential Revision: https://phabricator.services.mozilla.com/D154133
2022-08-10 18:00:55 +00:00
Norisz Fay
8bc30afa79 Backed out 6 changesets (bug 1782578, bug 1782579) for causing mochitest failures on browser_parsable_css.js CLOSED TREE
Backed out changeset bdb42cfe6213 (bug 1782579)
Backed out changeset 5f17ee4cc4df (bug 1782578)
Backed out changeset 4f969d46dd37 (bug 1782578)
Backed out changeset b4c51d1ffa99 (bug 1782578)
Backed out changeset 98d0d6bcd37b (bug 1782578)
Backed out changeset 8332d678079e (bug 1782578)
2022-08-10 20:19:31 +03:00
Marian-Vasile Laza
8274331cda Backed out changeset 449fe2d946ea (bug 1783934) for causing mochitest failures on test_animation-type-longhand.html. CLOSED TREE 2022-08-10 19:48:38 +03:00