Commit Graph

26065 Commits

Author SHA1 Message Date
Makoto Kato
dc6a8410d1 Bug 1618763 - Part 2. Use GtkInputPurpose and GtkInputHints by inputmode. r=masayuki
Let's use GtkInputPurpose and GtkInputHints by inputmode for software keyboard.

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

--HG--
extra : moz-landing-system : lando
2020-03-23 10:36:53 +00:00
Sylvestre Ledru
734f79b541 Bug 1624237 - Run misc-unused-using-decls - Remove useless declarations r=andi
$ ./mach static-analysis check --checks="-*, misc-unused-using-decls" --fix <path>

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

--HG--
extra : moz-landing-system : lando
2020-03-23 13:15:33 +00:00
Martin Stransky
8430fa3cd2 Bug 1623097 [Linux] Make widget aspect ratio configurable r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D67166

--HG--
extra : moz-landing-system : lando
2020-03-23 12:12:55 +00:00
Martin Stransky
b263e97e9f Bug 1624199 [Linux/X11] Use resize workaround on X11 to avoid KDE regression, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D67805

--HG--
extra : moz-landing-system : lando
2020-03-23 10:21:25 +00:00
Dorel Luca
c8058b7dd4 Backed out 2 changesets (bug 1618763) for build bustage in checkouts/gecko/widget/gtk/IMContextWrapper.cpp. CLOSED TREE
Backed out changeset 0b9d1afee478 (bug 1618763)
Backed out changeset ac1ff4be2662 (bug 1618763)
2020-03-23 09:35:16 +02:00
Makoto Kato
a416d8ed45 Bug 1618763 - Part 2. Use GtkInputPurpose and GtkInputHints by inputmode. r=masayuki
Let's use GtkInputPurpose and GtkInputHints by inputmode for software keyboard.

Depends on D67770

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

--HG--
extra : moz-landing-system : lando
2020-03-23 07:20:05 +00:00
Simon Giesecke
58d0171406 Bug 1620632 - Ensure nsTArray_Impl only declares a copy-constructor/assignment operator if E is copy-constructible. r=froydnj
To correctly implement this, it must be known on instantiation whether E is
copy-constructible, which is not the case if only a forward declaration is
available. This can be resolved either by making sure a full definition of E is
available, which is preferable. But in cases where this is not (easily) possible,
the information can be explicitly provided by the MOZ_DECLARE_COPY_CONSTRUCTIBLE
and MOZ_DECLARE_NON_COPY_CONSTRUCTIBLE macros. In particular, declarations for
IPDL-declared types are added to nsTArray.h itself, like it was already done
for MOZ_DECLARE_RELOCATE_USING_MOVE_CONSTRUCTOR.

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

--HG--
extra : moz-landing-system : lando
2020-03-20 17:13:51 +00:00
Jonathan Kew
f2b9997dda Bug 1587953 - Improve Gtk theme handling for some widgets in vertical writing-modes. r=jmathies
Differential Revision: https://phabricator.services.mozilla.com/D67289

--HG--
extra : moz-landing-system : lando
2020-03-19 19:29:55 +00:00
Oana Pop Rus
1f4abcaa1a Backed out changeset b8205184278a (bug 1587953) for crashtests/1547420-1.html on a CLOSED TREE 2020-03-19 20:18:31 +02:00
Eric Rahm
2ebdb299d2 Bug 1623181 - Remove nsAutoPtr usage from widget/gtk. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D67243

--HG--
extra : moz-landing-system : lando
2020-03-18 12:30:50 +00:00
Jonathan Kew
d33a8b4407 Bug 1587953 - Improve Gtk theme handling for some widgets in vertical writing-modes. r=jmathies
Differential Revision: https://phabricator.services.mozilla.com/D67289

--HG--
extra : moz-landing-system : lando
2020-03-19 15:30:32 +00:00
Emilio Cobos Álvarez
04828e3a4a Bug 253870 - Make disabled form controls selectable. r=masayuki,MarcoZ
This rejiggers a bit the way selection focus is handled so that focusing a
disabled form control with the mouse handles selection properly, and hides the
document selection and so on.

This matches the behavior of other browsers as far as I can tell.

Given now readonly and disabled editors behave the same, we can simplify a bit
the surrounding editor code.

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

--HG--
extra : moz-landing-system : lando
2020-03-19 13:18:16 +00:00
Martin Stransky
66791c6155 Bug 1623106 [Linux/Gtk] Don't use window resize workaround for Gtk >= 3.24, r=jhorak
We have a workaround for https://gitlab.gnome.org/GNOME/gtk/issues/1044 which is already fixed
in Gtk 3.24 and causes resize regression there so let's remove it.

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

--HG--
extra : moz-landing-system : lando
2020-03-19 07:45:04 +00:00
Masayuki Nakano
b4dde683df Bug 1614252 - Don't allow Korean IMEs of Apple to consume mouse events when there is no composition r=m_kato
The bugs is reproducible only with all Korean IMEs of Apple only on Catalina.
Until Apple fixes the bug, we should not allow the Korean IMEs to consume
mouse events.  (I think that we should keep notifying all mouse events for
backward compatibility.)

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

--HG--
extra : moz-landing-system : lando
2020-03-19 00:57:02 +00:00
Martin Stransky
c811449120 Bug 1623060 [Wayland] Respect GtkWidget size then committing to wayland surface, r=jhorak
Mutter 3.36 requests exact match of wl_surface/wl_subsurface size so we need to respect
wl_surface size (GtkWidget size) and create a wl_subsurface with the same size.

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

--HG--
extra : moz-landing-system : lando
2020-03-18 09:43:34 +00:00
Michael
143adb8792 Bug 1619154 - Added .webp to supported image file types so that it is possible to upload .webp files. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D67026

--HG--
extra : moz-landing-system : lando
2020-03-18 06:14:10 +00:00
Emilio Cobos Álvarez
069fb5d5f9 Bug 1622893 - Don't use background color for 3d colors on GTK. r=stransky
On high contrast themes, we avoid using the colors from the author to ensure
contrast.

We allow the border-style though, and that unfortunately means that:

  <input type=text style="border: 1px solid black">

Ends up rendering like:

  <input type=text style="border-style: solid; border-width: 1px">

Which for a theme with a white background means that we'll render a white
border which users can't see, and is unfortunate.

Hard-code these colors, as using the background color for the light variant
doesn't seem right anyway, and the dark variant was hard-coded already.

These colors are taken from the cocoa widget. You can see the change in colors
with something like:

  <input type=text style="border-width: 2px">

For default themes it makes the colors a bit less subtle. But I don't think it
matters all that much in practice since the fallback unthemed border is very
rare on the web these days.

The rendering here is still not great, to be clear (we may want to tweak the
high-contrast heuristics here), but it's way better than invisible borders.

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

--HG--
extra : moz-landing-system : lando
2020-03-17 17:54:09 +00:00
Marc Streckfuss
59a971229a Bug 1620340 - part4: Implement SetMediaMetadata() for the WindowsSMTCProvider, r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D66587

--HG--
extra : moz-landing-system : lando
2020-03-17 01:23:43 +00:00
Marc Streckfuss
673ce25897 Bug 1620340 - part1: Implement SetMediaMetadata() for the MPRISServiceHandler, r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D65801

--HG--
extra : moz-landing-system : lando
2020-03-11 15:47:09 +00:00
Brindusan Cristian
85fc50fbee Backed out changeset 5497bb642dfd (bug 1622893) for wpt failures at the-fieldset-and-legend-elements/fieldset-default-style.html. CLOSED TREE 2020-03-17 19:42:01 +02:00
Emilio Cobos Álvarez
3c055e92e1 Bug 1622893 - Don't use background color for 3d colors on GTK. r=stransky
On high contrast themes, we avoid using the colors from the author to ensure
contrast.

We allow the border-style though, and that unfortunately means that:

  <input type=text style="border: 1px solid black">

Ends up rendering like:

  <input type=text style="border-style: solid; border-width: 1px">

Which for a theme with a white background means that we'll render a white
border which users can't see, and is unfortunate.

Hard-code these colors, as using the background color for the light variant
doesn't seem right anyway, and the dark variant was hard-coded already.

These colors are taken from the cocoa widget. You can see the change in colors
with something like:

  <input type=text style="border-width: 2px">

For default themes it makes the colors a bit less subtle. But I don't think it
matters all that much in practice since the fallback unthemed border is very
rare on the web these days.

The rendering here is still not great, to be clear (we may want to tweak the
high-contrast heuristics here), but it's way better than invisible borders.

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

--HG--
extra : moz-landing-system : lando
2020-03-17 16:01:35 +00:00
Narcis Beleuzu
17acc84da8 Backed out changeset ffafdc7c9f84 (bug 1622893) for wpt failures on fieldset-default-style.html . CLOSED TREE 2020-03-17 17:35:20 +02:00
Jeff Muizelaar
56b72e27ed Bug 1622959. Expand WebRender on Intel battery to medium screens. r=aosmond
We'll let this ride into early beta

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

--HG--
extra : moz-landing-system : lando
2020-03-17 10:51:24 +00:00
Emilio Cobos Álvarez
5cf27f7675 Bug 1622893 - Don't use background color for 3d colors on GTK. r=stransky
On high contrast themes, we avoid using the colors from the author to ensure
contrast.

We allow the border-style though, and that unfortunately means that:

  <input type=text style="border: 1px solid black">

Ends up rendering like:

  <input type=text style="border-style: solid; border-width: 1px">

Which for a theme with a white background means that we'll render a white
border which users can't see, and is unfortunate.

Hard-code these colors, as using the background color for the light variant
doesn't seem right anyway, and the dark variant was hard-coded already.

These colors are taken from the cocoa widget. You can see the change in colors
with something like:

  <input type=text style="border-width: 2px">

For default themes it makes the colors a bit less subtle. But I don't think it
matters all that much in practice since the fallback unthemed border is very
rare on the web these days.

The rendering here is still not great, to be clear (we may want to tweak the
high-contrast heuristics here), but it's way better than invisible borders.

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

--HG--
extra : moz-landing-system : lando
2020-03-17 13:50:58 +00:00
Chris Fronk
d5b004443b Bug 1143478 - Rename mozilla::Pair to CompactPair. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D64511

--HG--
rename : mfbt/Pair.h => mfbt/CompactPair.h
extra : moz-landing-system : lando
2020-03-17 12:42:12 +00:00
alwu
252ad6b503 Bug 1582508 - part5 : replace 'PlaybackState' with 'MediaSessionPlaybackState'. r=chunmin
`PlaybackState` and `MediaSessionPlaybackState` are actually quite similar, and we don't want to have to many states to confuse reader and do unnecessary tranform between two states. Therefore, replaceing  `PlaybackState` with `MediaSessionPlaybackState`.

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

--HG--
extra : moz-landing-system : lando
2020-03-17 00:03:55 +00:00
Kenny Levinsen
510af72a67 Bug 1614212 - Migrate global VsyncSource users correctly on frame rate change r=sotaro
CompositorVsyncDispatcher holds a reference to the VsyncSource, so it must be informed on change.

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

--HG--
extra : moz-landing-system : lando
2020-03-16 23:24:39 +00:00
Mihai Alexandru Michis
58bc354025 Backed out changeset 9eeee9ec66d9 (bug 253870) for causing failures in browser_bug1261299.js
CLOSED TREE
2020-03-16 22:32:41 +02:00
Emilio Cobos Álvarez
9f28f89085 Bug 253870 - Make disabled form controls selectable. r=masayuki,MarcoZ
This rejiggers a bit the way selection focus is handled so that focusing a
disabled form control with the mouse handles selection properly, and hides the
document selection and so on.

This matches the behavior of other browsers as far as I can tell.

Given now readonly and disabled editors behave the same, we can simplify a bit
the surrounding editor code.

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

--HG--
extra : moz-landing-system : lando
2020-03-16 17:41:07 +00:00
Simon Giesecke
cb0734d274 Bug 1613985 - Use default for equivalent-to-default constructors/destructors in widget. r=jmathies
Differential Revision: https://phabricator.services.mozilla.com/D66012

--HG--
extra : moz-landing-system : lando
2020-03-16 10:56:57 +00:00
Bogdan Tara
c60fd3fdd2 Backed out 4 changesets (bug 1613985) for causing build bustages CLOSED TREE
Backed out changeset fba0caac746c (bug 1613985)
Backed out changeset 8605d7a19107 (bug 1613985)
Backed out changeset 41e858fbf235 (bug 1613985)
Backed out changeset 847433cf1e0a (bug 1613985)
2020-03-16 12:41:41 +02:00
Simon Giesecke
2d961c08ab Bug 1613985 - Use default for equivalent-to-default constructors/destructors in widget. r=jmathies
Differential Revision: https://phabricator.services.mozilla.com/D66012

--HG--
extra : moz-landing-system : lando
2020-03-16 09:14:12 +00:00
Makoto Kato
edc87f1d99 Bug 1613804 - InputConnection.finishComposingText should commit composition text. r=geckoview-reviewers,snorp
Gecko don't commit composition when software keyboard calls
InputConnection.finishComposingText. It is incompatible with Blink's behaviour.

BaseInputConnection.finishComposingText() implementation is the following.

1. Begin batch edit.
2. Remove all composition span flag.
3. End batch edit.

So if no composition after batch edit is finished, we should commit it on Gecko
to synchronize composition state.

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

--HG--
extra : moz-landing-system : lando
2020-03-13 18:01:50 +00:00
Coroiu Cristina
9cec9676e6 Backed out changeset ef75f461147c (bug 1614212) for GTest failures 2020-03-16 03:52:15 +02:00
Kenny Levinsen
a3358b92f4 Bug 1614212 - Migrate global VsyncSource users correctly on frame rate change r=sotaro
CompositorVsyncDispatcher holds a reference to the VsyncSource, so it must be informed on change.

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

--HG--
extra : moz-landing-system : lando
2020-03-16 00:05:20 +00:00
James Willcox
97a1646a17 Bug 1619778 - Remove unused GeckoThread#waitOnGecko methods. r=geckoview-reviewers,aklotz
Differential Revision: https://phabricator.services.mozilla.com/D66584

--HG--
extra : moz-landing-system : lando
2020-03-12 15:33:57 +00:00
Jessie Bonisteel
7a871da043 Bug 1615049 - Shipping WebRender to modern intel laptops with small screen. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D66643

--HG--
extra : moz-landing-system : lando
2020-03-13 19:59:43 +00:00
Andreea Pavel
ffe2fa6ae0 Backed out changeset 180f1350fdd3 (bug 1615049) for build bustages at /GfxDriverInfo.cpp on a CLOSED TREE 2020-03-13 21:23:56 +02:00
Jessie Bonisteel
37e2c5ab60 Bug 1615049 - Shipping WebRender to modern intel laptops with small screen. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D66643

--HG--
extra : moz-landing-system : lando
2020-03-13 18:35:55 +00:00
Mihai Alexandru Michis
611150ca29 Backed out changeset 8bc3cd786136 (bug 1614212) for causing leaks.
CLOSED TREE
2020-03-13 19:21:34 +02:00
Kenny Levinsen
04165219d8 Bug 1614212 - Migrate global VsyncSource users correctly on frame rate change r=sotaro
CompositorVsyncDispatcher holds a reference to the VsyncSource, so it must be informed on change.

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

--HG--
extra : moz-landing-system : lando
2020-03-13 16:04:36 +00:00
Mike Conley
53803bd857 Bug 1607882 - Picture-in-Picture windows should be able to enter fullscreen on Linux GTK. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D66623

--HG--
extra : moz-landing-system : lando
2020-03-13 08:26:59 +00:00
Jeff Muizelaar
a091f10bb0 Bug 1615420. Disable DirectComposition on AMD and older Intel drivers on beta & release. r=aosmond
This is similar to a change that landed directly into 74. We don't want to
roll-out to these users yet and we don't want to have to think about it every
release.

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

--HG--
extra : moz-landing-system : lando
2020-03-13 15:43:46 +00:00
Martin Stransky
48832a9055 Bug 1615098 [Wayland] Set opaque region to toplevel window only, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D66583

--HG--
extra : moz-landing-system : lando
2020-03-13 08:26:00 +00:00
Cosmin Sabou
7b3658a6c7 Backed out changeset 309c896d7f8e (bug 1599943) for linux tsan mochitest failures on test_scrollbar_colors.html. 2020-03-13 04:07:56 +02:00
Edwin Takahashi
79842aeb37 Bug 1599943 - update pixel count expectations and re-enable test_scrollbar_colors.html for linux1804 r=intermittent-reviewers,jmaher
Changes:

Due to scrollbar and other UI element changes in linux1804 this test was permafailing and was marked as such.

Now that migration has completed for mochitest-plain, re-enable the test with updated pixel count expectations.

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

--HG--
extra : moz-landing-system : lando
2020-03-12 23:38:09 +00:00
Marco Zehe
9c9833dee3 Bug 1620311 - Set an explicit accessibility label for image-only buttons, r=harry
Differential Revision: https://phabricator.services.mozilla.com/D66601

--HG--
extra : moz-landing-system : lando
2020-03-12 18:12:33 +00:00
Mike de Boer
9c44d249e7 Bug 1620101 - Apply the _NET_WM_DESKTOP property on the root window instead, to make workspace switching work on KDE and others. r=stransky
This patch also tweaks the behavior on Ubuntu Unity slightly to work with the
adaptive workspaces.

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

--HG--
extra : moz-landing-system : lando
2020-03-12 13:59:44 +00:00
Martin Stransky
19e49d0819 Bug 1617115 [GNOME] Use CSD mode in Gnome, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D66581

--HG--
extra : moz-landing-system : lando
2020-03-12 14:47:20 +00:00
Xidorn Quan
b3d5ecd53b Bug 1575914 - Treat scrollbar tracks as scrollbar part. r=jmathies
Differential Revision: https://phabricator.services.mozilla.com/D66186

--HG--
extra : moz-landing-system : lando
2020-03-11 14:44:20 +00:00