Граф коммитов

26053 Коммитов

Автор SHA1 Сообщение Дата
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
Boris Zbarsky 4e0a47195b Bug 1621835. Make imgINotificationObserver::Notify a void method, since no one examines its return value anyway. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D66513

--HG--
extra : moz-landing-system : lando
2020-03-12 04:25:34 +00:00
Emilio Cobos Álvarez 0f47b5390f Bug 1621319 - Implement GetWidgetBorder properly for some widgets. r=mstange
I've left checkbox / radio / range-thumb alone because they don't have borders
on gtk either. We need this for the next patch to fix our test.

In particular, our combination of padding + no border means that
sanityEventUtils tries to hit an <input>, but it hits the anonymous scrollable
element instead, and asserts that it doesn't.

I don't think that test is particularly correct, but implementing
GetWidgetBorder works around it, and seems like the right thing to do anyways.

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

--HG--
extra : moz-landing-system : lando
2020-03-11 01:52:51 +00:00
Dorel Luca cefe4ffd34 Backed out 3 changesets (bug 1621319) for Mochitest failures in Harness_sanity/test_sanityEventUtils.html
Backed out changeset 9181798549f2 (bug 1621319)
Backed out changeset 0522121ddf22 (bug 1621319)
Backed out changeset b65f1bde461a (bug 1621319)
2020-03-11 03:48:03 +02:00
Emilio Cobos Álvarez 5302c2ab15 Bug 1621319 - Implement GetWidgetBorder properly for some widgets. r=mstange
I've left checkbox / radio / range-thumb alone because they don't have borders
on gtk either. We need this for the next patch to fix our test.

In particular, our combination of padding + no border means that
sanityEventUtils tries to hit an <input>, but it hits the anonymous scrollable
element instead, and asserts that it doesn't.

I don't think that test is particularly correct, but implementing
GetWidgetBorder works around it, and seems like the right thing to do anyways.

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

--HG--
extra : moz-landing-system : lando
2020-03-10 19:33:56 +00:00
David Parks 9d849a91cc Bug 1614585: Use background thread to shut down AudioSession on all Windows versions r=jmathies
Bug 1419488 moved AudioSession shutdown to a background thread on Windows 7 because it was leading to shutdown timeouts there.  Since then, audio seems to be inspiring timeouts on other versions of Windows as well.  This patch extends the Windows 7 work to all versions of Windows.

Bug 1430907 is removing AudioSession from content processes.  This is the only place we have seen these crashes but AudioSession is also used in the main and plugin processes, so we want this patch to preempt issues with those processes.

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

--HG--
extra : moz-landing-system : lando
2020-03-05 18:57:21 +00:00
Martin Stransky 9f5f941f67 Bug 1621258 [Wayland] Don't print 'Missing GtkWidget' warning, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D66221

--HG--
extra : moz-landing-system : lando
2020-03-10 16:39:24 +00:00
Martin Stransky d96c7ebdd5 Bug 1620973 [Wayland] Make opaque regions configurable by widget.wayland.use-opaque-region, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D65988

--HG--
extra : moz-landing-system : lando
2020-03-09 14:06:58 +00:00
Andrew Osmond 91b071ed14 Bug 1618345 - Enforce proper color management by splitting gfx::Color into sRGBColor and DeviceColor types. r=jrmuizel
gfx::Color is currently misused in many places. The DrawTargets expect
the color space to be in device space, e.g. what we are actually going
to draw using. Everything sitting above generally deals with sRGB, as
specified in CSS. Sometimes we missed the conversion from sRGB to device
space when issuing draw calls, and similarly sometimes we converted the
color to device space twice.

This patch splits the type in two. sRGBColor and DeviceColor now
represent sRGB and device color spaces respectively. DrawTarget only
accepts DeviceColor, and one can get a DeviceColor from an sRGBColor via
the ToDeviceColor helper API. The reftests now pass with color
management enabled for everything (e.g. CSS) instead of just tagged
raster images.

There will be a follow up patch to enable color management everywhere by
default on all supported platforms.

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

--HG--
extra : moz-landing-system : lando
2020-03-09 14:16:17 +00:00
Masayuki Nakano c90d6c80b3 Bug 1569512 - Make `PresShell` ignore synthesized `mousemove` events coming from another process if the child process stores mouse location of synthesized mouse events for tests r=smaug
The reason of intermittent failure of `test_bug656379-2.html` is, synthesized
`mousemove` event coming from the parent process causes `mouseout` and
`mouseleave` events of the last synthesized `mousemove` in the test.  The
reason is, synthesized `mousemove` for tests makes `PresShell` in the content
process record the cursor location, but won't make it `PresShell` in the
parent process do it.  Therefore, parent process may synthesize `mousemove`
event for the system cursor position which does not match with the synthesized
mouse location in the content process.  Therefore, `:hover` state may be
updated unexpectedly.

This patch makes `WidgetEvent::mFlags` have a flag to indicate whether it
came from another process.  Then, makes `PresShell::HandleEvent()` ignore
synthesized `mousemove` events coming from another process only when the
recorded mouse location was set by a mouse event synthesized for tests.

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

--HG--
extra : moz-landing-system : lando
2020-03-05 21:34:28 +00:00
Mark Banner 15cfe23b88 Bug 1620542 - Automatically fix ESLint errors in .eslintrc.js files. r=mossop
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2020-03-07 10:09:44 +00:00
Emilio Cobos Álvarez f102f74183 Bug 1615100 - Paint the range thumb using button colors. r=spohl
This is very basic, and just uses the button colors. Did this because I thought
that it was going to help me fix one test but it didn't in the end, feel free to
reject, or to tell me to land the cleanup somewhere else :)

Depends on D65674

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

--HG--
extra : moz-landing-system : lando
2020-03-06 17:54:04 +00:00
Emilio Cobos Álvarez b6508fca7c Bug 1620297 - Make the range background size fixed. r=mstange
Otherwise the rendering of stuff like:

  <input type=range style="height: 300px">

Makes no sense. So this is closer to other widgets, and also happens to fix the
only test which is a real regression from non-native widget :)

Depends on D65673

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

--HG--
extra : moz-landing-system : lando
2020-03-07 09:57:42 +00:00