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

26397 Коммитов

Автор SHA1 Сообщение Дата
Dorel Luca 9340fa2b2d Backed out 11 changesets (bug 1635001, bug 1634253) for Browser-chrome failures in browser_bug295977_autoscroll_overflow.js
Backed out changeset c3c27cb46db6 (bug 1635001)
Backed out changeset 6cea251e5910 (bug 1635001)
Backed out changeset 3cb0a05be7fc (bug 1635001)
Backed out changeset 1cbb2866a3ad (bug 1634253)
Backed out changeset 53fd00dcf95c (bug 1634253)
Backed out changeset e3acd9db7065 (bug 1634253)
Backed out changeset 5c0b7aa99406 (bug 1634253)
Backed out changeset dc7e17f772be (bug 1634253)
Backed out changeset 6e47af64396a (bug 1634253)
Backed out changeset 8865de9ae0ef (bug 1634253)
Backed out changeset 6fac93b596c2 (bug 1634253)
2020-05-07 11:00:04 +03:00
Jean-Yves Avenard e6903a6550 Bug 1635001 - P2. Don't use MessageLoop threads with APZ. r=kats,geckoview-reviewers,snorp
It is unclear on why MessageLoop was ever used with this code.

Differential Revision: https://phabricator.services.mozilla.com/D73829
2020-05-07 05:07:00 +00:00
Jean-Yves Avenard 96d7622823 Bug 1634253 - P6. Remove MessageLoop use from gfx. r=kats,mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D73825
2020-05-07 05:03:42 +00:00
Mike Hommey 579ab8fd6f Bug 1635990 - Fix leak when gtk-decoration-layout setting is set. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D74167
2020-05-07 04:30:33 +00:00
David Teller 18a8fad225 Bug 1632794 - Bare bones about:processes;r=fluent-reviewers,florian,Pike
This is a very first iteration of about:processes, so that people who actually need the tool can start using it immediately and provide feedback.

Differential Revision: https://phabricator.services.mozilla.com/D72617
2020-05-06 20:11:55 +00:00
David Teller e67467e850 Bug 1632794 - Expose full remoteType through ChromeUtils.requestProcInfo;
The current `type` field doesn't expose all information such as the origin. Let's fix this.

Differential Revision: https://phabricator.services.mozilla.com/D72616
2020-05-06 20:11:55 +00:00
Chris Martin 06d9dd2b05 Bug 1400317 - Use gfxVars to mirror DWM status to content processes r=jrmuizel
The only caveat here is that gfxVars are not atomic, but multiple threads can
query DWM status. To solve this, changes to the var are mirrored into an atomic
and that is read instead.

DWM status changes are indicated by Windows via a window message. We use that
window message to cause the update to propagate

Differential Revision: https://phabricator.services.mozilla.com/D73743
2020-05-06 14:16:21 +00:00
Chris Martin 1093edd76c Bug 1400317 - Create single source of truth for DWM status r=jrmuizel
Currently, There are multiple places that call the Win32 APIs for DWM status.

Once Win32k lockdown is enabled, this API will be unavailable and will need
to be remoted. This new function will be made to work in both parent and
content processes, and therefore all DWM queries must be directed to it.

Also, some minor cleanup because... Why not?

Differential Revision: https://phabricator.services.mozilla.com/D73742
2020-05-06 14:15:58 +00:00
Jeff Muizelaar 57daed43ca Bug 1635807 - Rollout WebRender to Intel apollolake and geminilake. r=aosmond
The screen resolutions are relatively low on these devices
and the GPUs have a reasonable amount of power.

Differential Revision: https://phabricator.services.mozilla.com/D74060
2020-05-06 15:38:54 +00:00
Martin Stransky a9b7b022bf Bug 1635757 [Wayland] Provide more logging to nsDragService, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D74038
2020-05-06 15:02:25 +00:00
Narcis Beleuzu 84754c6344 Backed out 2 changesets (bug 1632794) for build bustages on ChromeUtils.cpp . CLOSED TREE
Backed out changeset 28f67adaba65 (bug 1632794)
Backed out changeset e3c323874e2e (bug 1632794)
2020-05-06 14:12:54 +03:00
David Teller c31471641d Bug 1632794 - Expose full remoteType through ChromeUtils.requestProcInfo;r=tarek
The current `type` field doesn't expose all information such as the origin. Let's fix this.

Differential Revision: https://phabricator.services.mozilla.com/D72616
2020-05-06 10:03:45 +00:00
Narcis Beleuzu cdf603f65b Backed out 2 changesets (bug 1632794) for build bustages on ChromeUtils.cpp . CLOSED TREE
Backed out changeset 846b78435f92 (bug 1632794)
Backed out changeset 937d7ef96c5d (bug 1632794)
2020-05-06 13:00:15 +03:00
David Teller ab091e0ddf Bug 1632794 - Expose full remoteType through ChromeUtils.requestProcInfo;r=tarek
The current `type` field doesn't expose all information such as the origin. Let's fix this.

Differential Revision: https://phabricator.services.mozilla.com/D72616
2020-05-05 22:41:00 +00:00
Bob Owen c86a9b6e30 Bug 1632583: Only register taskbar button creation message in the parent process. r=aklotz
This also removes XRE_Win32kCallsAllowed and replaces its other use.

Differential Revision: https://phabricator.services.mozilla.com/D73909
2020-05-05 16:11:44 +00:00
sotaro df9c735cbe Bug 1574746 - Remove AllowWebRenderForThisWindow() r=nical
Differential Revision: https://phabricator.services.mozilla.com/D71440
2020-05-05 23:44:36 +00:00
Mihai Alexandru Michis 6c13bc9a50 Backed out changeset 2f5143da4986 (bug 1631584) for causing gv jobs to fail as exceptions.
CLOSED TREE
2020-05-06 02:23:54 +03:00
Markus Stange 1bb0550030 Bug 1631584 - Add profiler labels for JNI binding method/getter/setter/constructor calls. r=gerald,snorp,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D71645
2020-05-05 21:42:21 +00:00
Timothy Nikkel fe7e341120 Bug 1634855. Rollup select dropdowns for pinch gestures. r=mstange
Chrome and Safari ignore pinch zooming while a select dropdown is open.

The other option is to close the dropdown, which is what we already do if you two finger scroll on the touchpad. Chrome and Safari also ignoring two finger scrolling while a select dropdown is open.

Differential Revision: https://phabricator.services.mozilla.com/D73539
2020-05-05 21:05:52 +00:00
Botond Ballo 6bda5b208d Bug 1556556 - Document WidgetEvent::mRefPoint as being in visual coordinates. r=kats
This is already the case for real input events since that's how they
arrive from APZ, and we are no longer changing the coordinates at
the process boundary.

For synthesized events, a future patch will add layout-to-visual
converions to code that sets mRefPoint as appropriate.

Differential Revision: https://phabricator.services.mozilla.com/D68917
2020-05-05 19:24:41 +00:00
Botond Ballo 7cf10dca6d Bug 1556556 - Remove many uses of IgnoreRootScrollFrame. r=mstange,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D68913
2020-05-05 19:23:35 +00:00
Botond Ballo f32f10a719 Bug 1556556 - Remove applications of the visual-to-layout transform at the process boundary (and equivalent places for non-e10s). r=kats
Note that the propagation of the target guid to places where the transform
will be applied is best-effort at the moment. In particular, the
InputAPZContext will result in the correct guid being available in places
that are called synchronously from the Recv*() functions, but not places
called asynhcronously (e.g. via DelayedFireSingleTapEvent).

To mitigate this, places where the transform is applied fall back on the
RCD-RSF if a guid is not available via InputAPZContext (added in a
subsequent patch).

The cases that this gets wrong are fairly edge casey (it requires (a) an
asynchronous codepath, (b) an event targeting a subframe, and (c) that
subframe having a "could not accept the APZ scroll position" transform),
so we just punt on them for now. If it turns out to be important to handle,
then options for doing so include (1) propagating the guid through each of
the affected asynchronous codepaths, or (2) attaching the guid to the event
itself.

Differential Revision: https://phabricator.services.mozilla.com/D68723
2020-05-05 19:37:26 +00:00
Ian Moody 011b59d595 Bug 1536556 - Replace raw thrown Cr.ERRORs with Components.Exception. r=mossop,remote-protocol-reviewers,marionette-reviewers,whimboo,necko-reviewers,geckoview-reviewers,valentin,agi
Raw Cr.ERROR don't get stack information, same as throwing JS literals instead
of `new Error()`s.

This was done automatically with a new eslint rule that will be introduced in
the next commit.  One instance of a raw Cr.ERROR was not replaced since it is
used in a test that specifically checks the preservation of raw Cr values in
XPCJS.  The rule will be disabled for that instance.

Differential Revision: https://phabricator.services.mozilla.com/D28073
2020-05-05 17:41:36 +00:00
Razvan Maries 0c308b94ae Backed out 2 changesets (bug 1632794) for build bustages on aboutProcesses.ftl. CLOSED TREE
Backed out changeset e616abcb192d (bug 1632794)
Backed out changeset 47701348412d (bug 1632794)
2020-05-05 19:21:24 +03:00
David Teller 615c6f8762 Bug 1632794 - Expose full remoteType through ChromeUtils.requestProcInfo;r=tarek
The current `type` field doesn't expose all information such as the origin. Let's fix this.

Differential Revision: https://phabricator.services.mozilla.com/D72616
2020-05-05 15:36:02 +00:00
Martin Stransky 2b4f80fd04 Bug 1629198 Use CSD for toplevel window on Pop! OS, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D73224
2020-05-05 07:05:14 +00:00
Razvan Maries 2632be905a Backed out 6 changesets (bug 1630912) for build bustages on gfxAndroidPlatform.cpp. CLOSED TREE
Backed out changeset 21dc02bc12b9 (bug 1630912)
Backed out changeset 08a6a1f1c4c7 (bug 1630912)
Backed out changeset 108b1a07929b (bug 1630912)
Backed out changeset e202ddeb4e40 (bug 1630912)
Backed out changeset f7d9852a3d09 (bug 1630912)
Backed out changeset e6cd2ceab183 (bug 1630912)
2020-05-05 09:04:37 +03:00
Timothy Nikkel 6754211292 Bug 1630912. Handle sending Direct Manipulation input events properly. r=kats
The old code didn't handle content prevent defaulting the input.

The pinch gesture code doesn't seem to fully work properly, it will allow a little pinch zooming before halting it if content is prevent defaulting it. Not sure what is up yet.

Differential Revision: https://phabricator.services.mozilla.com/D73220
2020-05-01 23:33:25 +00:00
Timothy Nikkel 0cd34c7541 Bug 1630912. Add a small state machine and code to send pinch and pan events from direct manipulation. r=kats
We can't just get pinch events, we need to handle both.

This state machine code is basically copied from Chrome's implementation.

Differential Revision: https://phabricator.services.mozilla.com/D71307
2020-05-01 23:33:18 +00:00
Timothy Nikkel 89c161209f Bug 1630912. Hook up direct manipulation object to vsync. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D71306
2020-05-01 23:33:00 +00:00
Timothy Nikkel aa7153cfe0 Bug 1630912. Create the necessary direct manipulation objects. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D71305
2020-05-04 15:26:39 +00:00
Timothy Nikkel 138b7903ce Bug 1630912. Add PT_TOUCHPAD to touchinjection_sdk80.h. r=aklotz
We need this in a later patch.

Differential Revision: https://phabricator.services.mozilla.com/D71304
2020-05-01 23:32:38 +00:00
Kartikaya Gupta 7908209483 Bug 1630912. Add a simple way to observe vsync on the mainthread. r=jrmuizel
I had to mess with the refcounting of Display (and hence destructors) because we create a NewRunnableMethod inside Display that holds a pointer to |this|. There are versions of NewRunnableMethod that don't take a ref but I'm not sure of the lifetime of Display, so easier to just take a ref since several of the subclasses are already refcounted.

Differential Revision: https://phabricator.services.mozilla.com/D71303
2020-05-01 23:32:30 +00:00
Dorel Luca c46daa5d4d Backed out changeset 786823305560 (bug 1574746) for Browser-chrome failures in test/performance/browser_startup_syncIPC.js. CLOSED TREE 2020-05-05 08:00:52 +03:00
Stephen A Pohl ee3fa26401 Bug 1616404: Change macOS version detection to accommodate major versions between 10 and 255 as well as minor and bugfix versions between 0 and 255. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D73180
2020-05-04 21:11:09 +00:00
sotaro 4fa1b411fd Bug 1574746 - Remove AllowWebRenderForThisWindow() r=nical
Differential Revision: https://phabricator.services.mozilla.com/D71440
2020-05-03 11:38:53 +00:00
Emilio Cobos Álvarez f41369c350 Bug 1634606 - Round wayland popup anchor rect to outside pixels. r=stransky
Rounding to nearest means that if you get a fractional pixel like 10.2px
you round down to 10, which means that the popup text may wrap
undesirably. I've seen this a bunch lately.

Differential Revision: https://phabricator.services.mozilla.com/D73393
2020-05-04 20:54:03 +00:00
Dorel Luca 34f3c60771 Backed out changeset 06fadee788b3 (bug 1616404) for XPCShell failures on OSX in xpcshell/rs-blocklist/test_gfxBlacklist_OK.js. CLOSED TREE 2020-05-04 22:46:01 +03:00
Stephen A Pohl 056c89cd8c Bug 1616404: Change macOS version detection to accommodate major versions between 10 and 255 as well as minor and bugfix versions between 0 and 255. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D73180
2020-05-04 17:01:45 +00:00
Stephen A Pohl 5a60bc58b1 Bug 1629533: Fix an issue that prevented some icons from drawing in the macOS share menu. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D71871
2020-05-01 22:30:46 +00:00
Timothy Nikkel 005270cdd1 Bug 1619187. Handle content prevent defaulting pinch gestures. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D73217
2020-05-02 23:03:20 +00:00
Cosmin Sabou b9a814e53b Backed out changeset 70d9a096070b (bug 1619187) for causing Gtest failures. CLOSED TREE 2020-05-02 03:29:43 +03:00
Timothy Nikkel f9e267a4a7 Bug 1619187. Handle content prevent defaulting pinch gestures. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D73217
2020-05-01 23:21:08 +00:00
Gerald Squelart 6f36a3fdb8 Bug 1609907 - Remove AUTO_PROFILER_THREAD_SLEEP before mozilla::CondVar waits - r=mstange
CondVar already calls `AUTO_PROFILER_THREAD_SLEEP`, which shouldn't be called recursively.

mozilla::Monitor also uses CondVar, so it shouldn't be surrounded by `AUTO_PROFILER_THREAD_SLEEP` either.

Depends on D72850

Differential Revision: https://phabricator.services.mozilla.com/D72851
2020-05-01 22:12:22 +00:00
Jonathan Watt 5039526672 Bug 1634154. Make `widget/gtk` buildable outside of `unified-build` environment. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D73123
2020-05-01 03:02:13 +00:00
Toshihito Kikuchi fae0df7eaf Bug 1633718 - Make sure not to call OpenThemeData if it failed before. r=mstange
As bug 1544435, we blocked wbload.dll from being loaded in content processes.
Because that modules is injected via `user32!RegisterUserApiHook` and Windows
keeps trying to load hooking modules even if the previous attempt has failed,
blocking wbload.dll caused repetitive loading attempts in the tab process,
resulting in bad rendering performance.

This patch is to mitigate that performance issue by not calling `OpenThemeData`,
which is one of the entrypoints triggering user api hook, if the previous call
has failed.  With this patch, performance is still slower than with the default
theme.  We will seek out a long-term solution to solve the issue.

Differential Revision: https://phabricator.services.mozilla.com/D73344
2020-04-30 21:28:21 +00:00
Mike de Boer 95f38c631d Bug 1630732 - Disable moving windows to a different space when the 'screensHaveSeparateSpaces' configuration option is set in Mission Control on Mac OSX. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D72169
2020-04-30 16:40:11 +00:00
Makoto Kato fc29e1e8e1 Bug 1596920 - Don't set selection on dispatching key event if unnecessary. r=geckoview-reviewers,snorp
Actually we emulate key event (down, press and up) from replace transaction of
`Editable`. When dispatching key press, we always update current caret position.

Most situations is the following.
1. Dispatch keypress
2. Dispatch another keypress
3. Receive merged text/selection change result by 1. and 2.
4. Sync shadow (Java's Editable) text with 3.'s result. It means selection is
   correct position now.
5. Dispatch keypress with correct position.

When this issue occurs, the following situation occurs.
1. Dispatch keypress
2. Dispatch another keypress
3. Receive text/selection change result of 1.
4. Sync shadow (Java's Editable) text with 3.'s result. It means selection is
   old position now.
5. Dispatch another keypress with old position.
6. Receive text/selection change result of 2.
7. Receive text/selection change result of 5.

So when dispatching key press, we shouldn't always update selection if unnecessary.
Because selection range is already often set before dispatching key press.

Differential Revision: https://phabricator.services.mozilla.com/D71179
2020-04-28 14:02:10 +00:00
Simon Giesecke 49eb05a114 Bug 1626570 - Improve handling of copying arrays in widget/. r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D72321
2020-04-30 09:38:38 +00:00
Gerald Squelart 22a7a23613 Bug 1530419 - Move PROFILER_AUTO_THREAD_SLEEP into WinUtils::WaitForMessage from callers - r=mstange
Both `nsAppShell::ProcessNextNativeEvent()` and `MessagePumpForUI::WaitForWork()` have a `PROFILER_AUTO_THREAD_SLEEP` surrounding the `mozilla::widget::WinUtils::WaitForMessage()` call.
However inside `WaitForMessage()` the call to `PeekMessageW()` may trigger a sequence of events (because the system delivers pending messages) that end in the initialization of a new thread, which invokes `ReentrantMonitor::Wait()` where there is a `PROFILER_AUTO_THREAD_SLEEP`.

To avoid this recursion, this patch moves `PROFILER_AUTO_THREAD_SLEEP` from both callers into `WaitForMessage()` to only enclose the actual potentially-sleeping operation `::MsgWaitForMultipleObjectsEx()`.

Differential Revision: https://phabricator.services.mozilla.com/D72850
2020-04-28 16:22:13 +00:00
Jeff Muizelaar c2562601fe Bug 1633490 - Rollout WebRender to AMD Evergreen on Nightly. r=aosmond
Let's keep this Nightly only for now because it's an older set of
devices.

Differential Revision: https://phabricator.services.mozilla.com/D72709
2020-04-28 14:53:13 +00:00
Csoregi Natalia b073baab86 Backed out 30 changesets (bug 1556556, bug 1631568) for multiple mochitest failures. CLOSED TREE
Backed out changeset edd529f7a9c5 (bug 1631568)
Backed out changeset 1cc0881e244b (bug 1631568)
Backed out changeset ed3c1e85d5e3 (bug 1556556)
Backed out changeset 38ffc6215bbf (bug 1556556)
Backed out changeset 03c2c25d8023 (bug 1556556)
Backed out changeset 9c717eb067b8 (bug 1556556)
Backed out changeset 98e26bc98b85 (bug 1556556)
Backed out changeset 05a6a581e755 (bug 1556556)
Backed out changeset 867946cf05bb (bug 1556556)
Backed out changeset 20d72a334530 (bug 1556556)
Backed out changeset 2c62e61d9054 (bug 1556556)
Backed out changeset 62a223d057d2 (bug 1556556)
Backed out changeset 2c5d55a1f0b1 (bug 1556556)
Backed out changeset 700447945b4e (bug 1556556)
Backed out changeset 93190ae4f5ff (bug 1556556)
Backed out changeset a7bd34d961bb (bug 1556556)
Backed out changeset fccd1d3c7189 (bug 1556556)
Backed out changeset 24056e47183d (bug 1556556)
Backed out changeset 204881474cc1 (bug 1556556)
Backed out changeset 387320881876 (bug 1556556)
Backed out changeset be8f5eb58460 (bug 1556556)
Backed out changeset 629c58a9166b (bug 1556556)
Backed out changeset 4312b2b5dda8 (bug 1556556)
Backed out changeset d11dbf6403a5 (bug 1556556)
Backed out changeset 95c54c023779 (bug 1556556)
Backed out changeset 80fcb7e71188 (bug 1556556)
Backed out changeset d75a4ecb0d47 (bug 1556556)
Backed out changeset 903c4de34e7a (bug 1556556)
Backed out changeset f15334a3e803 (bug 1556556)
Backed out changeset 9553e99137ea (bug 1556556)
2020-04-28 12:43:11 +03:00
Botond Ballo 219449f114 Bug 1556556 - Document WidgetEvent::mRefPoint as being in visual coordinates. r=kats
This is already the case for real input events since that's how they
arrive from APZ, and we are no longer changing the coordinates at
the process boundary.

For synthesized events, a future patch will add layout-to-visual
converions to code that sets mRefPoint as appropriate.

Differential Revision: https://phabricator.services.mozilla.com/D68917
2020-04-28 01:38:15 +00:00
Botond Ballo b11a399d42 Bug 1556556 - Remove many uses of IgnoreRootScrollFrame. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D68913
2020-04-28 02:25:51 +00:00
Botond Ballo f9e919a8f4 Bug 1556556 - Remove applications of the visual-to-layout transform at the process boundary (and equivalent places for non-e10s). r=kats
Note that the propagation of the target guid to places where the transform
will be applied is best-effort at the moment. In particular, the
InputAPZContext will result in the correct guid being available in places
that are called synchronously from the Recv*() functions, but not places
called asynhcronously (e.g. via DelayedFireSingleTapEvent).

To mitigate this, places where the transform is applied fall back on the
RCD-RSF if a guid is not available via InputAPZContext (added in a
subsequent patch).

The cases that this gets wrong are fairly edge casey (it requires (a) an
asynchronous codepath, (b) an event targeting a subframe, and (c) that
subframe having a "could not accept the APZ scroll position" transform),
so we just punt on them for now. If it turns out to be important to handle,
then options for doing so include (1) propagating the guid through each of
the affected asynchronous codepaths, or (2) attaching the guid to the event
itself.

Differential Revision: https://phabricator.services.mozilla.com/D68723
2020-04-28 01:34:22 +00:00
Jeff Muizelaar 951ea8e9b4 Bug 1628809. Allow WebRender on Nvidia+battery all screen sizes. r=aosmond
We want this to ride into 77. It's a very small population.

Differential Revision: https://phabricator.services.mozilla.com/D72761
2020-04-27 22:24:37 +00:00
Timothy Nikkel 38a1920e37 Bug 1633343. Also use the style WS_EX_TRANSPARENT on the compositor window. r=sotaro
The original workaround given by Microsoft was both WS_EX_TRANSPARENT and WS_EX_LAYERED. In bug 1627505 we tried to just add WS_EX_LAYERED because it was all that was needed to fix that bug and we hoped it wouldn't re-introduce the blank window problem. But it did. So we may as well go with both flags as recommended by Microsoft.

Differential Revision: https://phabricator.services.mozilla.com/D72598
2020-04-27 13:27:07 +00:00
Jeff Muizelaar ad14a3ebc3 Bug 1633508 - Rollout WebRender to Coffeelake GT1 GPUs. r=aosmond
These aren't particularly common but there basically
the same as Skylake GT1.

Differential Revision: https://phabricator.services.mozilla.com/D72719
2020-04-27 18:14:27 +00:00
Jeff Muizelaar fcce3abceb Bug 1633412 - Rollout WebRender to Intel Icelake r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D72660
2020-04-27 15:28:43 +00:00
Jeff Muizelaar f9a64ef094 Bug 1633411 - Roll out WebRender to AMD Raven Ridge devices. r=aosmond
This is a modern AMD APU

Differential Revision: https://phabricator.services.mozilla.com/D72658
2020-04-27 15:05:21 +00:00
Jeff Muizelaar 2362f66489 Bug 1633290 - Enable WebRender on Skylake GT1. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D72571
2020-04-27 00:52:57 +00:00
Sylvestre Ledru 34acbb653a Bug 1619165 - Reformat recent changes to the Google coding style r=andi
First reformat with clang-format 10

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D68802
2020-04-25 09:40:08 +00:00
Chun-Min Chang 530a6c8ee6 Bug 1631608 - P6: Log error message when `PropertiesChanged` signal fails being emitted r=alwu
- Log error messages when `PropertiesChanged` signal fails being emitted
- Add some missing `':'` in error messages

Differential Revision: https://phabricator.services.mozilla.com/D72195
2020-04-24 22:39:20 +00:00
Chun-Min Chang ec57fa6d2a Bug 1631608 - P5: Define `mpris:trackid` r=alwu
The `"mpris:trackid"` [1] is an unique dbus path identifying the track.
It's better to use a more specific path for `"mpria:trackid"` instead of
using a `"/valid/path"` that can appear on any example code. The
rythembox [2,3] and vlc [4,5] also uses their own special path for their
`"mpris:trackid"` so Firefox should do the same.

On the other hand, Chrome doesn't use `"mpris:trackid"` at all. That
indeed works but the spec [1] explicitly states `"mpris:trackid"` must
be defined if there is a current track.

Thus, to make sure the implementation meets the spec [1], the
`"mpris:trackid"` must be defined in MPRIS's `"Metadata"` field by an
unique path value that belongs to Firefox only.

[1] https://specifications.freedesktop.org/mpris-spec/2.2/Player_Interface.html#Property:Metadata
[2] 7542759eda/plugins/mpris/rb-mpris-plugin.c (L547)
[3] 7542759eda/plugins/mpris/rb-mpris-plugin.c (L55)
[4] 9ddf27caa7/modules/control/dbus/dbus.c (L1300)
[5] 9ddf27caa7/modules/control/dbus/dbus_common.h (L90)

Differential Revision: https://phabricator.services.mozilla.com/D71869
2020-04-24 22:39:12 +00:00
Chun-Min Chang c9eafeca3c Bug 1631608 - P4: Define "org.mpris.MediaPlayer2.Player" in macro r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D71868
2020-04-24 22:39:10 +00:00
Chun-Min Chang e3b7390390 Bug 1631608 - P3: Use `%d` for `int` r=alwu
Align the policy to get the dbus name in `MPRISServiceHandler::Open`
with the one in `MPRISServiceHandler::Close()`

Differential Revision: https://phabricator.services.mozilla.com/D71865
2020-04-24 22:39:08 +00:00
Chun-Min Chang cff082955d Bug 1631608 - P2: Emit DBus signal once MPRIS `Metadata` is set r=alwu
According to spec [1], when the `Metadata` is changed, a signal with the
new `Metadata` value should be emitted.

[1] https://specifications.freedesktop.org/mpris-spec/2.2/Player_Interface.html#Property:Metadata

Differential Revision: https://phabricator.services.mozilla.com/D71864
2020-04-24 22:39:00 +00:00
Chun-Min Chang 9236093c78 Bug 1631608 - P1: Log messages when getting or setting metadata r=alwu
By monitoring the added logs, any access to the metadata can be watched.

Differential Revision: https://phabricator.services.mozilla.com/D71863
2020-04-24 22:38:58 +00:00
Jeff Muizelaar e11b7fe8c4 Bug 1632961 - Fix up kabylake ids. r=aosmond
Remove duplicates and add back 0x5912

Differential Revision: https://phabricator.services.mozilla.com/D72441
2020-04-24 19:34:12 +00:00
Martin Stransky 42d551312e Bug 1628583 [Wayland] Use mutex to access mozcontainer wayland internals, r=jhorak
Mozcontainer is accessed from various threads - Main/Compositor/Renderer - which causes races
when wayland surfaces are created/deleted/updated so we need to control it.

Differential Revision: https://phabricator.services.mozilla.com/D71737
2020-04-24 17:19:15 +00:00
Simon Giesecke 191a830575 Bug 1628715 - Part 7: Add MOZ_NONNULL_RETURN to infallible nsTArray::AppendElements. r=xpcom-reviewers,necko-reviewers,nika,valentin
Differential Revision: https://phabricator.services.mozilla.com/D70831
2020-04-24 13:31:14 +00:00
Timothy Nikkel ae8f3fddd1 Bug 1632357. Add a pref to disable adding the WS_EX_LAYERED style to the compositor window. r=sotaro
On older machines it creates a blank window and we only need the pref to direct manipulation (which hasn't landed yet and will be preffed off by default when it lands).

Differential Revision: https://phabricator.services.mozilla.com/D72283
2020-04-24 08:58:16 +00:00
Cosmin Sabou 16f21e6dae Backed out 1 changesets (bug 1632357) for build bustages. CLOSED TREE
Backed out changeset 428d3ada2cb2 (bug 1632357)
2020-04-24 11:21:31 +03:00
Timothy Nikkel ea404ff352 Bug 1632357. Add a pref to disable adding the WS_EX_LAYERED style to the compositor window. r=sotaro
On older machines it creates a blank window and we only need the pref to direct manipulation (which hasn't landed yet and will be preffed off by default when it lands).

Differential Revision: https://phabricator.services.mozilla.com/D72283
2020-04-24 07:38:09 +00:00
Tom Schuster 7abdca1793 Bug 1631196 - Implement MPRIS Raise event by focusing the window playing media. r=alwu
Implement MPRIS Raise event by focusing the window playing media.

Differential Revision: https://phabricator.services.mozilla.com/D71450
2020-04-23 19:32:34 +00:00
Brindusan Cristian 42e680a4ef Merge mozilla-central to autoland on a CLOSED TREE 2020-04-24 00:44:23 +03:00
Brindusan Cristian 295d851672 Merge autoland to mozilla-central. a=merge 2020-04-24 00:42:24 +03:00
Noemi Erli 71ad949346 Backed out changeset 779722364805 (bug 1628583) per request a=backout 2020-04-23 17:54:42 +03:00
Martin Stransky 59c99a1b8c Bug 1632059 [Wayland] Use wayland display directly for va-api, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D72122
2020-04-23 16:06:54 +00:00
Martin Stransky 7112c02038 Bug 1603839 [Linux] Explicitly set Wayland/X11 backend for GtkCompositorWidget, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D71888
2020-04-23 17:26:17 +00:00
Jeff Muizelaar 4cefa44bc5 Bug 1632239 - Reduce AMD DirectComposition blocking. r=aosmond
Haven't seen any problems so lets be less conservative.
This uses the arbitrary broken version as a new minimum.

Differential Revision: https://phabricator.services.mozilla.com/D72018
2020-04-22 19:02:27 +00:00
Jeff Muizelaar a158aafa00 Bug 1632240 - Add some more Kabylake ids. r=aosmond
This adds support for kabylake gt1 and gt1.5

Differential Revision: https://phabricator.services.mozilla.com/D72019
2020-04-22 19:02:44 +00:00
Emilio Cobos Álvarez 3e3dc71cba Bug 1631887 - Claim to support NonDisappearingScrollbarWidth on the non-native theme. r=spohl
This is used by platforms with overlay scrollbars, only in order to
reserve enough space for the chevron of the `<select>` element.

So our general min-widget-size, which is the same as for scrollbars
works.

Differential Revision: https://phabricator.services.mozilla.com/D71825
2020-04-22 17:45:39 +00:00
Kartikaya Gupta 763e05dece Bug 1627716 - Remove GeckoView API exposing the DynamicToolbarAnimator. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D71776
2020-04-22 11:50:40 +00:00
Martin Stransky bff4088157 Bug 1632100 [Wayland] Emulate window focus change by window hide/show when running in testsuite, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D71926
2020-04-22 15:54:06 +00:00
Martin Stransky f5dbae2f0c Bug 1628583 [Wayland] Use mutex to access mozcontainer wayland internals, r=jhorak
Mozcontainer is accessed from various threads - Main/Compositor/Renderer - which causes races
when wayland surfaces are created/deleted/updated so we need to control it.

Differential Revision: https://phabricator.services.mozilla.com/D71737
2020-04-22 15:53:49 +00:00
Jeff Muizelaar c0acfaa944 Bug 1632202. Enable WebRender on some Gen7 in Nightly. r=aosmond
Seems to work well enough.

Differential Revision: https://phabricator.services.mozilla.com/D71986
2020-04-22 15:28:14 +00:00
Makoto Kato 784bdca25f Bug 1626389 - Part 1. Use JNI to get password setting even if content process. r=geckoview-reviewers,snorp
Now we can use JNI on content process, so it is unnecessary to use sync IPC
to get password setting.

Differential Revision: https://phabricator.services.mozilla.com/D71707
2020-04-21 14:54:29 +00:00
Jeff Muizelaar c575c3531c Bug 1632002. Re-enable WebRender on Gen7.5 in Nightly.
Scrolling on Youtube (Bug 1576637) has improved enough
that we can turn gen7 back on in Nightly

Differential Revision: https://phabricator.services.mozilla.com/D71859
2020-04-22 01:18:23 +00:00
Bogdan Tara 62d94d25d6 Backed out changeset c7623d3b49ec (bug 1631887) for foreignObject-img-form-theme.html CLOSED TREE 2020-04-22 02:14:37 +03:00
Haik Aftandilian b6992791c8 Bug 1629313 - Part 1 - Set As Desktop Background fails on macOS r=spohl
Change the nsMacShellService::SetDesktopBackground() implementation (specifically code in the OnStateChange handler) to use the Apple setDesktopImageURL API instead of Apple Events to allow the "Set As Desktop Background..." context menu option to work again.

Alternatively, to allow the AppleEvent-base implementation to work again, Firefox could be signed with the com.apple.security.automation.apple-events entitlement but this would also require the user to grant Firefox permission to control Finder. setDesktopImageURL requires Mac OS 10.6 or newer and hence was not an option originally.

The implementation only changes the background of the focused screen in the current workspace (which matches the behavior of Safari).

Differential Revision: https://phabricator.services.mozilla.com/D71426
2020-04-21 19:57:29 +00:00
Emilio Cobos Álvarez 2368532cda Bug 1631887 - Claim to support NonDisappearingScrollbarWidth on the non-native theme. r=spohl
This is used by platforms with overlay scrollbars, only in order to
reserve enough space for the chevron of the `<select>` element.

So our general min-widget-size, which is the same as for scrollbars
works.

Differential Revision: https://phabricator.services.mozilla.com/D71825
2020-04-21 20:36:22 +00:00
Jan Horak 2cc879bea5 Bug 1623974 [wayland] Attach popups to anchor rects; r=stransky
If we want correct popup placement we need to use the right anchor rect
for gdk_window_move_to_rect under Wayland. Patch exports the anchor rect from the
nsMenuPopupFrame to be used in nsWindow.

This patch also fixes popup overflowing the screen by using the size returned from
gdk_window_move_to_rect for the nsMenuPopupFrame.

Differential Revision: https://phabricator.services.mozilla.com/D67810
2020-04-21 19:19:30 +00:00
Robert Mader a000f064be Bug 1629140 - Enable frame callback based VsyncSource by default. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D70551
2020-04-21 11:34:14 +00:00
Chris Peterson ce0c6b20bb Bug 1624786 - Replace "clang-format off" with semicolon workaround for clang-format bug 1629756. r=spohl
This semicolon workaround is tidier than the `// clang-format off/on` comments and avoids turning off all clang-format checks. The comment also links to clang-format bug 1629756 so future code readers can learn why this extra semicolon exists. And if we find a way to fix this in clang-format, then we can search for this bug number to find and remove these extra semicolons and comments.

Differential Revision: https://phabricator.services.mozilla.com/D71504
2020-04-20 12:18:48 +00:00
Ciure Andrei 33a2dc2141 Backed out changeset 339795d0a51e (bug 1574746) for causing browser_startup_syncIPC.js failures CLOSED TREE 2020-04-21 04:32:44 +03:00
sotaro 66fa9f31db Bug 1574746 - Remove AllowWebRenderForThisWindow() r=nical
nsBaseWidget::AllowWebRenderForThisWindow() limits WebRender usage to some  type of windows. It was added by Bug 1377321, because initialization of WebRender was heavy weight in the past. It is not necessary anymore.

Differential Revision: https://phabricator.services.mozilla.com/D71440
2020-04-20 14:15:08 +00:00
Arthur Iakab d0d3827cd2 Backed out changeset 880f56e1656b (bug 1603839) for causing build bustages on GtkCompositorWidget.h
CLOSED TREE
2020-04-23 12:28:10 +03:00
Jan Horak f9d7f39b74 Bug 1631458 Account font scale factor for the popup placement under wayland; r=stransky
The font scale factor needs to be accounted for the popup anchor rect under
Wayland.

Differential Revision: https://phabricator.services.mozilla.com/D72100
2020-04-23 08:43:52 +00:00
Martin Stransky 4d6599f102 Bug 1603839 [Linux] Explicitly set Wayland/X11 backend for GtkCompositorWidget, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D71888
2020-04-23 08:19:07 +00:00
Mihai Alexandru Michis 25a1d0163b Backed out changeset 86630db403c1 (bug 1623974) for causing failures in browser_toolbox_zoom_popup.js and in wpt.
CLOSED TREE
2020-04-20 18:07:23 +03:00
Jan Horak 5664a8f139 Bug 1623974 [wayland] Attach popups to anchor rects; r=stransky
If we want correct popup placement we need to use the right anchor rect
for gdk_window_move_to_rect under Wayland. Patch exports the anchor rect from the
nsMenuPopupFrame to be used in nsWindow.

This patch also fixes popup overflowing the screen by using the size returned from
gdk_window_move_to_rect for the nsMenuPopupFrame.

Differential Revision: https://phabricator.services.mozilla.com/D67810
2020-04-20 12:50:25 +00:00
sotaro c64e7f13d2 Bug 1611372 - Invalidate WebRender frame on nsWindow::OnExposeEvent() r=nical
Differential Revision: https://phabricator.services.mozilla.com/D71139
2020-04-17 17:27:37 +00:00
Kris Taeleman 0ec13882ab Bug 1607322 - Enable webrender for Pixel 2/3 on release r=jnicol
Preparing change to enable webrender on Fenix once the shader compilation changes are in.

Differential Revision: https://phabricator.services.mozilla.com/D70944
2020-04-17 16:34:10 +00:00
Jeff Muizelaar 264a9feb12 Bug 1629602 - Include reason for failure when describing features. r=aosmond
This should give us more information in telemetry.

Differential Revision: https://phabricator.services.mozilla.com/D70706
2020-04-15 22:11:19 +00:00
Makoto Kato ac14cb654b Bug 1629759 - Remove unused dom.event.touch.coalescing.enabled preference. r=geckoview-reviewers,agi
No one seems to reference `dom.event.touch.coalescing.enabled` after landing Bug 1291373.
So remove it.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 21:20:11 +00:00
Martin Stransky 6cfd5ed10f Bug 1629526 [Wayland] Add gWaylandThreadLoopMutex to guard thread loop shutdown, r=jhorak
- Add gWaylandThreadLoopMutex to guard thread loop shutdown
- Rename gWaylandDisplaysMutex to gWaylandDisplayArrayMutex to clarify it's mutex for gWaylandDisplays array access
- Add gWaylandDisplayArrayMutex lock at ReleaseDisplaysAtExit()
- Rename DispatcherThreadLoop names to ThreadLoop

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

--HG--
extra : moz-landing-system : lando
2020-04-16 06:07:06 +00:00
Makoto Kato ff4dcdc969 Bug 1629730 - Remove unnecessary AKEYCODE defines from GeckoEditableSupport. r=geckoview-reviewers,agi
Old NDK requires AKEYCODE defines for newer API version, but it is unnecessary
to define it when using NDK r20.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 21:25:46 +00:00
Harry Twyford 81fc12010b Bug 1629966 - Remove Touch Bar telemetry. r=mikedeboer,chutten
Differential Revision: https://phabricator.services.mozilla.com/D70904

--HG--
extra : moz-landing-system : lando
2020-04-15 17:57:42 +00:00
Ryan Pauls d6aeea13b9 Bug 1626762 Removed the else statement to improve readability and better meet guidelines as per http://clang.llvm.org/extra/clang-tidy/checks/readability-else-after-return.html r=sylvestre
Added braces around statements as per code review bot.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 11:07:44 +00:00
alwu ef4a16e0ae Bug 1628929 - part1 : break the cyclic reference after receiving decoded image. r=emilio,agi
Currently, there is a cyclic reference between `ImageDecoderListener` and `ImageCallbackHelper` that causes a memory leak on Android. `ImageDecoderListener` is holding `imgIContainerCallback` which is a `ImageCallbackHelper` and `ImageCallbackHelper` is holding `imgIContainer`, which is actually a `ImageDecoderListener`.

Therefore, we should break the cyclic reference after receiving decoded image.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 02:48:34 +00:00
Haik Aftandilian a4a88a4380 Bug 1627414 - getDisplayMedia does not work when firefox is full screen on macOS r=spohl
Change the GetScreenCapturePermissionState() heuristic to use the full window list instead of just on-screen windows to allow it it to work in full screen mode.

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

--HG--
extra : moz-landing-system : lando
2020-04-14 20:27:55 +00:00
Kristen Wright dcb3da64d1 Bug 1621359 - Update .idl files to work with ply3 r=mccr8
This pattern:
```
native nsSize (nsSize);
             ^
```
Causes a parsing error in `ply` 3.10. This can be easily fixed by removing the space and reformatting to this:
```
native nsSize(nsSize);
```

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

--HG--
extra : moz-landing-system : lando
2020-04-14 17:17:38 +00:00
Bogdan Tara f3495bfe11 Backed out changeset 575503d55ccd (bug 1629602) for gfx/tests/marionette/test_pref_rollout_workaround.py failures CLOSED TREE 2020-04-14 19:58:02 +03:00
Jeff Muizelaar 793f4a1198 Bug 1629602 - Include reason for failure when describing features. r=aosmond
This should give us more information in telemetry.

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

--HG--
extra : moz-landing-system : lando
2020-04-14 14:57:07 +00:00
Bogdan Tara c53091bec7 Bug 1629526 - Fix whitespace lint on nsWaylandDisplay.cpp CLOSED TREE 2020-04-14 17:42:03 +03:00
Martin Stransky 37e2e6954d Bug 1629526 [Wayland] Use mutex when clear mDispatcherThreadLoop, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D70848

--HG--
extra : moz-landing-system : lando
2020-04-14 13:25:12 +00:00
Bogdan Tara e2defa3249 Backed out changeset 34c45b73c707 (bug 1629602) by jrmuizel's request CLOSED TREE 2020-04-14 16:49:05 +03:00
Jeff Muizelaar 97cedcd665 Bug 1629602 - Include reason for failure when describing features. r=aosmond
This should give us more information in telemetry.

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

--HG--
extra : moz-landing-system : lando
2020-04-14 00:54:42 +00:00
Martin Stransky 1536f639a8 Bug 1628711 Remove #ifdef MOZ_WIDGET_GTK from widget/gtk, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D70391

--HG--
extra : moz-landing-system : lando
2020-04-14 12:35:34 +00:00
Cameron McCormack 91abb34d31 Bug 1333162 - Only call gdk_set_program_name in the parent process. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D70640

--HG--
extra : moz-landing-system : lando
2020-04-14 01:48:37 +00:00
Narcis Beleuzu f4695206da Backed out changeset 502e83464c91 (bug 1629602) for bustages on GfxInfoBase.h . CLOSED TREE 2020-04-14 03:51:15 +03:00
Jeff Muizelaar df9f30b0b8 Bug 1629602 - Include reason for failure when describing features. r=aosmond
This should give us more information in telemetry.

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

--HG--
extra : moz-landing-system : lando
2020-04-14 00:05:30 +00:00
Dylan Roeh 9541273b5d Bug 1619798 - Move GeckoView onLoadRequest calls to DocumentLoadListener.cpp r=snorp,mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D69594

--HG--
extra : moz-landing-system : lando
2020-04-10 16:38:48 +00:00
Chris Peterson 8b5365a15b Bug 1624786 - Replace MOZ_MUST_USE with [[nodiscard]] in widget/headless. r=bdahl
Also move MOZ_MUST_USE before function declarations' specifiers and return type. While clang and gcc's __attribute__((warn_unused_result)) can appear before, between, or after function specifiers and return types, the [[nodiscard]] attribute must precede the function specifiers.

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

--HG--
extra : moz-landing-system : lando
2020-04-08 16:41:43 +00:00
Chris Peterson 162b8c8490 Bug 1624786 - Replace MOZ_MUST_USE with [[nodiscard]] in widget/gtk. r=karlt
Also move MOZ_MUST_USE before function declarations' specifiers and return type. While clang and gcc's __attribute__((warn_unused_result)) can appear before, between, or after function specifiers and return types, the [[nodiscard]] attribute must precede the function specifiers.

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

--HG--
extra : moz-landing-system : lando
2020-04-08 16:41:43 +00:00
Chris Peterson eaafc27a70 Bug 1624786 - Replace MOZ_MUST_USE with [[nodiscard]] in widget/cocoa. r=spohl
Also move MOZ_MUST_USE before function declarations' specifiers and return type. While clang and gcc's __attribute__((warn_unused_result)) can appear before, between, or after function specifiers and return types, the [[nodiscard]] attribute must precede the function specifiers.

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

--HG--
extra : moz-landing-system : lando
2020-04-08 16:41:42 +00:00
Martin Stransky cbd149f1b6 Bug 1527976 [Wayland] Don't cancel Drag and Drop on MOZ_GTK_DRAG_RESULT_ERROR for application/x-moz-tabbrowser-tab (tab move), r=jhorak
- X11 uses MOZ_GTK_DRAG_RESULT_NO_TARGET to state 'no place' for drop. Wayland does not have protocol for it and always return MOZ_GTK_DRAG_RESULT_ERROR.
  To emulate X11 behaviour for tab D&D (application/x-moz-tabbrowser-tab mime) don't cancel D&D operation on Wayland for MOZ_GTK_DRAG_RESULT_ERROR
  to allow to create a new tab when user drops tab outside the tab bar.
- Provide some additional loging to D&D code.

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

--HG--
extra : moz-landing-system : lando
2020-04-09 14:18:41 +00:00
Kris Taeleman 990150b302 Bug 1626099 - Renewing FX_TOUCH_USED telemetry. r=chutten,botond
Differential Revision: https://phabricator.services.mozilla.com/D69840

--HG--
extra : moz-landing-system : lando
2020-04-08 20:51:57 +00:00
Andrew Osmond 23745bab40 Bug 1628817 - Revert blocking of all features with NVIDIA driver version 26.21.14.4575. r=jrmuizel
This reverts the patch landed in bug 1625857. As it turns out, the
driver version is less significant than the fact that it is a laptop
with dual GPUs. We should continue to give users with this driver
hardware acceleration for optimal performance.

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

--HG--
extra : moz-landing-system : lando
2020-04-09 18:49:43 +00:00
Emilio Cobos Álvarez 8ae896a132 Bug 1622075 - Fix a memory leak in MakePrintTarget(). r=jld,karlt
Differential Revision: https://phabricator.services.mozilla.com/D69748

--HG--
extra : moz-landing-system : lando
2020-04-09 15:11:02 +00:00
James Willcox c5411d0ed9 Bug 1627737 - Return `INPUT_RESULT_HANDLED_CONTENT` for gestures handled in subframes r=geckoview-reviewers,botond,agi
This isn't technically correct given our current definition for this
result, but it matches the spirit of what we're trying to do here.

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

--HG--
extra : moz-landing-system : lando
2020-04-08 16:14:20 +00:00
Cosmin Sabou 5bbd5314ab Backed out 2 changesets (bug 1616245) for causing a raise in browser chrome failures. CLOSED TREE
Backed out changeset 86458febcf2d (bug 1616245)
Backed out changeset 69e9b40608e3 (bug 1616245)

--HG--
extra : amend_source : b034c15ef3ade9dee6bd1b2c4b7df0804c4cf81e
2020-04-09 09:40:53 +03:00
Mike Hommey ac5b6e6cd0 Bug 1628200 - Fix config/tests/test_mozbuild_reading.py. r=rstewart
Since the test goes through all moz.build files disregarding DIRS and
the conditions that may disable directories, in some cases, moz.builds
can fail to be evaluated properly because of missing variables in
config.status. This time (because it's not the first), it's
LLVM_DLLTOOL.

After fixing that, it turns out many of the files/directories pointed to
by Files() directives were removed or moved.

While here, make the test script python3-ready.

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

--HG--
extra : moz-landing-system : lando
2020-04-09 00:24:29 +00:00
Kartikaya Gupta 30bc520fec Bug 1616245 - Make better use of the rect/size structs. r=jfkthame
No functional change here, but this improves readability by using the
Rect and Size structs' operators, rather than breaking out the x/y/width/height
components and doing operations directly.

Depends on D70232

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

--HG--
extra : moz-landing-system : lando
2020-04-08 22:02:04 +00:00
Kartikaya Gupta c4cd70e6d4 Bug 1616245 - Use GetBounds instead of mBounds. r=jfkthame
It doesn't make sense to mix mBounds with GetClientBounds(), as the windows
widget overrides both GetBounds() and GetClientBounds(). So if we're using
GetClientBounds() for the client bounds, we should be using GetBounds() for
the bounds.

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

--HG--
extra : moz-landing-system : lando
2020-04-08 22:01:26 +00:00
nicolaspacheco b16dee417b Bug 1626765 - delete 'else' after 'return'. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D70145

--HG--
extra : moz-landing-system : lando
2020-04-08 16:55:00 +00:00
Mike de Boer f33ab75520 Bug 890125 - Part 4 - Implement virtual desktop switching for Windows 10 and above. r=mhowell,emk
Differential Revision: https://phabricator.services.mozilla.com/D67825

--HG--
extra : moz-landing-system : lando
2020-04-07 11:02:56 +00:00
Mike de Boer 3490db967d Bug 890125 - Part 3 - Convert the Linux virtual desktop handling to accept string-type workspace IDs. r=stransky,nika
Differential Revision: https://phabricator.services.mozilla.com/D67824

--HG--
extra : moz-landing-system : lando
2020-04-07 20:21:14 +00:00
Mike de Boer c481cd83d4 Bug 890125 - Part 2 - Convert the OSX Spaces handling to accept string-type workspace IDs. r=mstange,nika
Differential Revision: https://phabricator.services.mozilla.com/D67823

--HG--
extra : moz-landing-system : lando
2020-04-07 11:02:10 +00:00
Mike de Boer 1ebc8eec6b Bug 890125 - Part 1 - Change Window widget base classes to return and use strings for workspace IDs, rather than integers. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D67822

--HG--
extra : moz-landing-system : lando
2020-04-07 11:01:47 +00:00
Makoto Kato 04158012da Bug 1618759 - Part 6. Don't open on-screen keyboard when inputmode is none. r=masayuki
`inputmode=none` means that OSK is closed.

`SetInputContext` doesn't call `DismissOnScreenKeyboard` directly since
`DismissOnScreenKeyboard` has no hack of Firefox VR.

Depends on D68316

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

--HG--
extra : moz-landing-system : lando
2020-04-07 22:31:16 +00:00
Makoto Kato cb21fe6467 Bug 1618759 - Part 5. Lazy check whether OSK is closed. r=masayuki
As long as I test on my environment, bug 1226148 isn't fixed. Since native
message queue has high priority, Gecko may check whether focus is changed
before changing focus to another.

So we shouldn't use native message queue for this. It is better to use idle
queue instead.

Depends on D68315

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

--HG--
extra : moz-landing-system : lando
2020-04-07 22:30:58 +00:00
Makoto Kato 8a25b6b137 Bug 1618759 - Part 4. Use InputPane to open on-screen keyboard for Windows 10 RS1+. r=masayuki
Unfortunately, current on-screen keyboard (OSK) code in Gecko doesn't work on
current Windows 10. Actually, Windows automatically control OSK when getting
focus. But this isn't good for web browser since `inputmode` spec can close
OSK by `none` value.

Windows 10 RS1 has new API (IInputPane [*1]) to control software keyboard. So
we have to use it if OS is RS1 or later.

TSF has new flag as `TS_SD_INPUTPANEMANUALDISPLAYENABLE` not to control OSK by
TSF. We should use it.

IMM doesn't have this feature to manage OSK. This will become a limitation for
`inputmode` implementation.

[*1] https://docs.microsoft.com/en-us/uwp/api/windows.ui.viewmanagement.inputpane

Depends on D68314

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

--HG--
extra : moz-landing-system : lando
2020-04-07 22:30:37 +00:00
Makoto Kato 5010b729b6 Bug 1618759 - Part 3. Allow inputmode for non-input element. r=masayuki
Current WHATWG spec is that `inputmode` attribute supports non-input element.
I would like to remove input element check for bug 142484 that is
contenteditable support.

Microsoft IME, Google IME and etc refer 1st input scope that they support, so
we will add both input scopes from `type` and `inputmode`.

Depends on D68313

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

--HG--
extra : moz-landing-system : lando
2020-04-07 22:30:30 +00:00
Makoto Kato 3b55303417 Bug 1618759 - Part 2. Support decimal and search value for inputmode. r=masayuki
Current WHATWG spec means that `numeric` is `IS_DIGITS` and `decimal` is
`IS_NUMBER`.

Depends on D68312

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

--HG--
extra : moz-landing-system : lando
2020-04-07 22:30:24 +00:00
Makoto Kato 7045529ab7 Bug 1618759 - Part 1. Use common method to set input scope. r=masayuki
Gecko has duplicated code for input scope support, so I would like to clean up
this.

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

--HG--
extra : moz-landing-system : lando
2020-04-07 22:30:19 +00:00
Randall E. Barker 1dde134b0f Bug 1626979 - Add GeckoView API for appending app notes to crash report. r=geckoview-reviewers,snorp,droeh
Differential Revision: https://phabricator.services.mozilla.com/D69662

--HG--
extra : moz-landing-system : lando
2020-04-07 23:42:42 +00:00
Emilio Cobos Álvarez 6b61f09b5d Bug 1579824 - Minor cleanup, and fixup field to be white again.
(And unify some other colors. I audited the rest for typos manually)

MANUAL PUSH: Minor reftest fix on a CLOSED TREE.
2020-04-07 18:17:12 +02:00
Andreas Farre 25ca8d7890 Bug 1620594 - Part 7: Remove TabGroup and SystemGroup. r=nika,bas
TabGroup never really made any difference in which thread something go
dispatched to. This was the intended use, but development of TabGroups
with abstract main threads never made it that far. The good thing is
that thish makes it safe to also remove to the SystemGroup and instead
switch all SystemGroup dispatches to dispatches to main thread.

Timers for setTimeout and workers were the sole users of wrapped and
throttled event targets, that those throttled queues have been moved
to the BrowsingContextGroup and are now accessed explicitly.

The SchedulerEventTarget has been removed, since there are no longer a
separate event target for every TaskCategory. Instead a
LabellingEventTarget has been added to DocGroup to handle the case
where an event is dispatched do DocGroup or when an AbstractThread is
created using a DocGroup. This means that we'll actually label more
events correctly with the DocGroup that they belong to.

DocGroups have also been moved to BrowsingContextGroup.

Depends on D67636

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

--HG--
extra : moz-landing-system : lando
2020-04-07 15:17:47 +00:00