Commit Graph

25797 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
da2e4ef888 Bug 981248 - Rewrite <input type=number> to avoid an anonymous input. r=masayuki,surkov,jwatt,ntim,jfkthame,smaug
Instead, subclass nsTextControlFrame. This simplifies the code and avoids
correctness issues.

I kept the localization functionality though it is not spec compliant. But I
filed a bug to remove it in a followup.

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

--HG--
extra : moz-landing-system : lando
2020-01-14 15:05:22 +00:00
Martin Stransky
168ab8579c Bug 1608800 [Wayland] Export GL texture from WaylandDMABufSurface class, r=jhorak
We need GL texture for WebGL backend.

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

--HG--
extra : moz-landing-system : lando
2020-01-14 13:10:38 +00:00
Martin Stransky
8df4dc66e5 Bug 1608800 [Wayland] Implement DMABUF modifiers, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D59677

--HG--
extra : moz-landing-system : lando
2020-01-14 13:13:51 +00:00
Martin Stransky
a3bc93170c Bug 1608800 [Wayland] Refactor dmabuf buffer mapping, r=jhorak
Refactor dmabuf buffer mapping, warn when we're mapping buffer with modifiers.

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

--HG--
extra : moz-landing-system : lando
2020-01-14 13:13:41 +00:00
Masayuki Nakano
90cd2122dd Bug 970802 - part 5: Make AutoEditActionDataSetter created method dispatch "beforeinput" event r=smaug,m_kato
`AutoEditActionDataSetter` is created in the stack when editor's public method
is called and that guarantees lifetime of global objects in editor such as
editor itself, selection controller, etc.

The dispatcher of `beforeinput` event returns `NS_ERROR_EDITOR_ACTION_CANCELED`
if an event is actually dispatched but canceled.  The reason why it's an error
is, editor code must stop handling anything when any methods return error.
So, returning an error code is reasonable in editor module.  But when it's
filtered by `EditorBase::ToGenericNSResult()` at return statement of public
methods, it's converted to `NS_SUCCESS_DOM_NO_OPERATION`.  This avoids throwing
new exception, but editor class users in C++ can distinguish whether each edit
action is canceled or handled.  The reason why we should not throw new
exception from XPCOM API is, without taking care of each caller may break some
our UI (especially for avoiding to break comm-central).  Therefore, this patch
does not make XPCOM methods return error code when `beforeinput` event is
canceled.

In most cases, immediately after creating `AutoEditActionDataSetter` is good
timing to dispatch `beforeinput` event since editor has not touched the DOM
yet.  If `beforeinput` requires `data` or `dataTransfer`, methods need to
dispatch `beforeinput` event after that.  Alhtough this is not a good thing
from point of view of consistency of the code.  However, I have no better
idea.

Note 1: Our implementation does NOT conform to the spec about event order
between `keypress` and `beforeinput` (dispatching `beforeinput` event after
`keypress` event).  However, we follow all other browsers' behavior so that it
must be safe and the spec should be updated for backward compatibility.
Spec issue: https://github.com/w3c/uievents/issues/220

Note 2: Our implementation does NOT conform to the spec about event order
between `compositionupdate` and `beforeinput`.  Our behavior is same as
Safari, but different from Chrome.  This might cause web-compat issues.
However, our behavior does make sense from point of view of consistency of
event spec.  Additionally, at both `compositionupdate` and `beforeinput`,
composition string in editor has not been modified yet.  Therefore, this
may not cause web-compat issues (and I hope so).
Spec issue: https://github.com/w3c/input-events/issues/49

Note that this patch makes editor detect bugs that `beforeinput` event hasn't
been handled yet when it dispatches `input` event or modifying `data` and
`dataTransfer` value are modified after dispatching `beforeinput` event with
`MOZ_ASSERT`s.

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

--HG--
extra : moz-landing-system : lando
2020-01-14 07:18:51 +00:00
Masayuki Nakano
4d302443ce Bug 970802 - part 3: Implement beforeinput event dispatcher and add onbeforeinput event handler attribute r=smaug
This patch makes `nsContentUtils::DispatchInputEvent()` dispatch `beforeinput`
event too.  And also adds `onbeforeinput` event handler which is really
important for feature detection (although Chrome has not implemented this
attribute yet: https://bugs.chromium.org/p/chromium/issues/detail?id=947408).

However, we don't implement `InputEvent.getTargetRanges()` in this bug and
implementing `beforeinput` event may hit bugs of some web apps.  Therefore,
this patch disables `beforeinput` event by default even in Nightly channel.

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

--HG--
extra : moz-landing-system : lando
2020-01-14 07:15:45 +00:00
Masayuki Nakano
0bf0eeeaa0 Bug 970802 - part 1: Add beforeinput event tests into existing mochitests r=smaug
This patch adds a lot of `beforeinput` event tests into existing mochitests
which test `input` events.  But this does not add tests of canceling
`beforeinput` event because it requires really complicated path until
implementing `beforeinput` actually.

Note that `beforeinput` event is not fired with `Document.execCommand()`.
Therefore, this patch does not add WPT for testing `beforeinput` event.
And unfortunately, WPT cannot test most cases of the new tests.

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

--HG--
extra : moz-landing-system : lando
2020-01-14 07:14:50 +00:00
Hiroyuki Ikezoe
21a5133d31 Bug 1606503 - Get the value for prefers-reduced-motion via LookAndFeelInt. r=geckoview-reviewers,snorp
With this change we have the same setup for prefers-reduced-motion so that
we can change the value with the same manner in automated tests.

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

--HG--
extra : moz-landing-system : lando
2020-01-14 05:51:06 +00:00
Hiroyuki Ikezoe
e538eea4dc Bug 1606503 - Move prefers-reduced-motion bits for testing into LookAndFeel. r=emilio
Now both of GTK and MacOSX backends use the same machinery, LookAndFeelInt, for
prefers-reduced-motion. And we are going to use it on Android as well so it'd
make sense to move the code into there.

On Windows we can also use the same LookAndFeelInt machinery and probably
all we have to do is to call SendNotifyMessage with SPI_SETCLIENTAREAANIMATION
in SetPrefersReducedMotionOverrideForTest.

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

--HG--
extra : moz-landing-system : lando
2020-01-14 05:50:53 +00:00
shindli
c03a2cf53a Backed out 3 changesets (bug 1606503) for causing bustages in nsXPLookAndFeel.cpp CLOSED TREE
Backed out changeset 7e9d421335e0 (bug 1606503)
Backed out changeset 371f74475fb9 (bug 1606503)
Backed out changeset 8aada655d8bc (bug 1606503)
2020-01-14 05:07:14 +02:00
Razvan Maries
0df75c8122 Backed out 5 changesets (bug 970802) for xpcshell perma fails. CLOSED TREE
Backed out changeset 5511edd700f7 (bug 970802)
Backed out changeset 1fb9cf2264b6 (bug 970802)
Backed out changeset 6b185296c742 (bug 970802)
Backed out changeset ce6853e64ed6 (bug 970802)
Backed out changeset aa9bd45c09b1 (bug 970802)
2020-01-14 04:41:15 +02:00
Hiroyuki Ikezoe
f2fbae5d7d Bug 1606503 - Get the value for prefers-reduced-motion via LookAndFeelInt. r=geckoview-reviewers,snorp
With this change we have the same setup for prefers-reduced-motion so that
we can change the value with the same manner in automated tests.

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

--HG--
extra : moz-landing-system : lando
2020-01-14 02:34:45 +00:00
Hiroyuki Ikezoe
37f0cf306c Bug 1606503 - Move prefers-reduced-motion bits for testing into LookAndFeel. r=emilio
Now both of GTK and MacOSX backends use the same machinery, LookAndFeelInt, for
prefers-reduced-motion. And we are going to use it on Android as well so it'd
make sense to move the code into there.

On Windows we can also use the same LookAndFeelInt machinery and probably
all we have to do is to call SendNotifyMessage with SPI_SETCLIENTAREAANIMATION
in SetPrefersReducedMotionOverrideForTest.

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

--HG--
extra : moz-landing-system : lando
2020-01-14 02:17:47 +00:00
Masayuki Nakano
00f4c31bb7 Bug 970802 - part 5: Make AutoEditActionDataSetter created method dispatch "beforeinput" event r=smaug,m_kato
`AutoEditActionDataSetter` is created in the stack when editor's public method
is called and that guarantees lifetime of global objects in editor such as
editor itself, selection controller, etc.

The dispatcher of `beforeinput` event returns `NS_ERROR_EDITOR_ACTION_CANCELED`
if an event is actually dispatched but canceled.  The reason why it's an error
is, editor code must stop handling anything when any methods return error.
So, returning an error code is reasonable in editor module.  But when it's
filtered by `EditorBase::ToGenericNSResult()` at return statement of public
methods, it's converted to `NS_SUCCESS_DOM_NO_OPERATION`.  This avoids throwing
new exception, but editor class users in C++ can distinguish whether each edit
action is canceled or handled.  The reason why we should not throw new
exception from XPCOM API is, without taking care of each caller may break some
our UI (especially for avoiding to break comm-central).  Therefore, this patch
does not make XPCOM methods return error code when `beforeinput` event is
canceled.

In most cases, immediately after creating `AutoEditActionDataSetter` is good
timing to dispatch `beforeinput` event since editor has not touched the DOM
yet.  If `beforeinput` requires `data` or `dataTransfer`, methods need to
dispatch `beforeinput` event after that.  Alhtough this is not a good thing
from point of view of consistency of the code.  However, I have no better
idea.

Note 1: Our implementation does NOT conform to the spec about event order
between `keypress` and `beforeinput` (dispatching `beforeinput` event after
`keypress` event).  However, we follow all other browsers' behavior so that it
must be safe and the spec should be updated for backward compatibility.
Spec issue: https://github.com/w3c/uievents/issues/220

Note 2: Our implementation does NOT conform to the spec about event order
between `compositionupdate` and `beforeinput`.  Our behavior is same as
Safari, but different from Chrome.  This might cause web-compat issues.
However, our behavior does make sense from point of view of consistency of
event spec.  Additionally, at both `compositionupdate` and `beforeinput`,
composition string in editor has not been modified yet.  Therefore, this
may not cause web-compat issues (and I hope so).
Spec issue: https://github.com/w3c/input-events/issues/49

Note that this patch makes editor detect bugs that `beforeinput` event hasn't
been handled yet when it dispatches `input` event or modifying `data` and
`dataTransfer` value are modified after dispatching `beforeinput` event with
`MOZ_ASSERT`s.

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

--HG--
extra : moz-landing-system : lando
2020-01-14 01:09:45 +00:00
Masayuki Nakano
81d47ee6d5 Bug 970802 - part 3: Implement beforeinput event dispatcher and add onbeforeinput event handler attribute r=smaug
This patch makes `nsContentUtils::DispatchInputEvent()` dispatch `beforeinput`
event too.  And also adds `onbeforeinput` event handler which is really
important for feature detection (although Chrome has not implemented this
attribute yet: https://bugs.chromium.org/p/chromium/issues/detail?id=947408).

However, we don't implement `InputEvent.getTargetRanges()` in this bug and
implementing `beforeinput` event may hit bugs of some web apps.  Therefore,
this patch disables `beforeinput` event by default even in Nightly channel.

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

--HG--
extra : moz-landing-system : lando
2020-01-08 09:23:40 +00:00
Masayuki Nakano
583465bce4 Bug 970802 - part 1: Add beforeinput event tests into existing mochitests r=smaug
This patch adds a lot of `beforeinput` event tests into existing mochitests
which test `input` events.  But this does not add tests of canceling
`beforeinput` event because it requires really complicated path until
implementing `beforeinput` actually.

Note that `beforeinput` event is not fired with `Document.execCommand()`.
Therefore, this patch does not add WPT for testing `beforeinput` event.
And unfortunately, WPT cannot test most cases of the new tests.

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

--HG--
extra : moz-landing-system : lando
2020-01-08 09:22:50 +00:00
Emilio Cobos Álvarez
2951992c4e Bug 1608729 - Initialize some variable in nsWindow.cpp. r=stransky
GCC warns about it and it's right. There's code null-checking the return value
of this function, so we should either initialize it or assert it's never null.

Depends on D59648

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

--HG--
extra : moz-landing-system : lando
2020-01-13 06:37:04 +00:00
Eric Rahm
78ee6675cf Bug 1606187 - Part 2b: Update users of nsClassHashtable to handle UniquePtr differences r=KrisWright,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D59042

--HG--
extra : moz-landing-system : lando
2020-01-13 19:18:56 +00:00
Mark Osborne
7afd921740 Bug 782547 - Focus on last focussed control after dialog closed; r=Jamie,NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D54464

--HG--
extra : moz-landing-system : lando
2020-01-13 14:08:43 +00:00
Martin Stransky
661b57c13f Bug 1608380 [Wayland] Divide dmabuf configuration for textures and webgl backend, r=jhorak
We need to enable dmabuf backend for textures and webgl backend independently.
There's no gain from dmabuf texture backend right now but it brings performance improvements
as WebGL framebuffer.

Depends on D59485

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

--HG--
extra : moz-landing-system : lando
2020-01-13 13:30:36 +00:00
Martin Stransky
33a6c71df7 Bug 1608380 [Wayland] Return nullptr from CreateDMABufSurface() when dmabuf creation failed, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D59485

--HG--
extra : moz-landing-system : lando
2020-01-13 13:30:38 +00:00
Martin Stransky
e26a186637 Bug 1608361 [Wayland] Use WaylandDisplayGet() to get and check Wayland display, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D59473

--HG--
extra : moz-landing-system : lando
2020-01-13 10:53:31 +00:00
Adam Gashlin
fcb2f897dd Bug 1501311 - Clear last-error code before WaitForInputIdle r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D58678

--HG--
extra : moz-landing-system : lando
2020-01-10 19:23:00 +00:00
Chris Martin
795cf400a0 Bug 1604412 - Give CompositorWidgetChild more window info r=sotaro
CompositorWidgetChild is about to be responsible for creating,
destroying, and presenting a shared buffer that CompositorWidgetParent
will draw into. To do this, it will need the window handle,
transparency mode changes, window size changes, and window size mode
changes.

Its creation is also about to become fallible, so it needs a separate
initialization routine.

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

--HG--
extra : moz-landing-system : lando
2020-01-08 18:37:38 +00:00
James Willcox
3a8c22db22 Bug 1508730 - Add WebRequestError#certificate. r=geckoview-reviewers,droeh,agi
This is useful if you get a certificate-related error and want
to inspect the broken certificate.

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

--HG--
extra : moz-landing-system : lando
2020-01-10 15:24:08 +00:00
James Willcox
e2656f7f99 Bug 1508730 - Add WebResponse#certificate r=geckoview-reviewers,droeh,agi
This is the server certificate, if any, as a
java.security.cert.X509Certificate.

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

--HG--
extra : moz-landing-system : lando
2020-01-10 15:09:24 +00:00
James Willcox
4764fe7733 Bug 1508730 - Add WebResponse#isSecure r=geckoview-reviewers,droeh,agi
Differential Revision: https://phabricator.services.mozilla.com/D58155

--HG--
extra : moz-landing-system : lando
2020-01-10 15:09:22 +00:00
Marco Castelluccio
757d5fb883 Bug 1608080 - Disable widget/tests/browser/browser_test_clipboardcache.js as it is consistently timing out with the Linux coverage build. r=aryx
Differential Revision: https://phabricator.services.mozilla.com/D59414

--HG--
extra : moz-landing-system : lando
2020-01-10 10:56:57 +00:00
Narcis Beleuzu
b5b7a719b8 Backed out 4 changesets (bug 1594820) for geckoview failures. CLOSED TREE
Backed out changeset 5bf29e6ca1e8 (bug 1594820)
Backed out changeset a6554cbe8a2f (bug 1594820)
Backed out changeset 9cc8d70c23bb (bug 1594820)
Backed out changeset b7ff66be3a86 (bug 1594820)
2020-01-10 03:16:20 +02:00
Sylvestre Ledru
c521758c5e Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2020-01-09 21:50:11 +00:00
Aaron Klotz
cec0194852 Bug 1594820: Part 1 - Modify XPCOMEventTarget to accept method calls before JNI is ready; r=snorp
Since `XPCOMEventTarget` uses JNI, this patch makes it possible for consumers to
retrieve and invoke methods on one without needing to worry about whether JNI
is actually up yet.

To achieve this, we create the `IXPCOMEventTarget` interface, and observe that
both of its methods can be handled by a proxy if JNI is not ready:

* Calls to `dispatch` may be enqueued until JNI is up;
* Observe that, when JNI is not up yet, the result of `isOnCurrentThread`
  can never be `true`.

Once JNI is up and the event targets have been resolved, the proxies are
replaced with the real, concrete `XPCOMEventTarget`s and are no longer used for
the remainder of the Gecko instance's lifetime.

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

--HG--
extra : moz-landing-system : lando
2020-01-09 21:39:31 +00:00
Harry Twyford
30f020b398 Bug 1581555 - Allow dynamic location switching in the Touch Bar. r=spohl,mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D58463

--HG--
extra : moz-landing-system : lando
2020-01-06 18:03:21 +00:00
Chris Martin
cebb0d2c6c Bug 1604412 - Clarify purpose of PlatformCompositorWidgetDelegate r=sotaro
PlatformCompositorWidgetDelegate was meant to be a pure virtual base
class for all the functions that nsWindow could call that would
either go to an in-process compositor widget or an OMTC widget.

By that definition, it does not seem like CompositorWidgetParent should
be a subclass, since nsWindow cannot directly call its methods and
currently CompositorWidgetParent has several "do nothing"
implementations of the interface methods because they don't really
belong.

This changeset remedies this by refactoring CompositorWidgetParent so
it is no longer an implementor of PlatformCompositorWidgetDelegate. Now
the only implementors are CompositorWidgetChild and InProcessWin-
CompositorWidget, which makes sense because they are both directly
called through the nsWindow delegate.

It also eliminates some of the methods that seem like they don't belong
in PlatformCompositorWidgetDelegate.

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

--HG--
extra : moz-landing-system : lando
2020-01-08 18:36:30 +00:00
Greg V
080fd4b4a6 Bug 1607368 - check for headless when checking for Wayland idle-inhibit r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D59094

--HG--
extra : moz-landing-system : lando
2020-01-09 00:12:37 +00:00
Chris Martin
3d665908f0 Bug 1604412 - Duplicate WinCompositorWidget logic into subclasses r=sotaro
This looks like a large change, but it's really just moving stuff
around.

It takes the logic in WinCompositorWidget and duplicates it into
its only 2 subclasses: InProcessWinCompositorWidget and
CompositorWidgetParent.

This is because CompositorWidgetParent is about to change *a lot*, but
InProcessWinCompositorWidget will basically stay the same. This is an
easy way to verify that I don't accidently break
InProcessWinCompositorWidget.

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

--HG--
extra : moz-landing-system : lando
2020-01-08 18:35:22 +00:00
Emilio Cobos Álvarez
e363a41bd4 Bug 1607595 - Remove uses of mozilla::IsBaseOf. r=froydnj
Automatically generated by:

$ rg 'IsBaseOf<' | cut -d : -f 1 | xargs sed -i 's/mozilla::IsBaseOf</std::is_base_of</g'
$ rg 'IsBaseOf<' | cut -d : -f 1 | xargs sed -i 's/IsBaseOf</std::is_base_of</g

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

--HG--
extra : moz-landing-system : lando
2020-01-08 14:52:10 +00:00
Martin Stransky
654ba476fb Bug 1607721 [Wayland] Check default nsWaylandDisplay for an actual display type, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D59098

--HG--
extra : moz-landing-system : lando
2020-01-08 12:30:48 +00:00
Hiroyuki Ikezoe
6e7f3aff6a Bug 1607124 - Query system colors in child processes directly. r=geckoview-reviewers,snorp
Using LookAndFeelInt to query system colors is awkward, it's normally used for
eIntID_XX values.

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

--HG--
extra : moz-landing-system : lando
2020-01-07 15:41:07 +00:00
harry
19d7651f1d Bug 1607140 - Add mTouchBarHelper null-checks to makeItemForIdentifier and updateItem. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D58997

--HG--
extra : moz-landing-system : lando
2020-01-07 19:57:34 +00:00
harry
15e8e9bd91 Bug 1607140 - Add a more stringent check for mTouchBarHelper in loadIconForInput. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D58957

--HG--
extra : moz-landing-system : lando
2020-01-07 18:57:06 +00:00
Martin Stransky
2260f5f432 Bug 1607088 [Wayland] Request mShell window repaint instead of direct commit to wl_surface, r=heftig
Differential Revision: https://phabricator.services.mozilla.com/D58863

--HG--
extra : moz-landing-system : lando
2020-01-07 09:01:50 +00:00
Dave Townsend
243d8bb24d Bug 1602195: Attempt to always set a default app user model id for the application and make sure that jump lists and recent documents are associated with it. r=mhowell
Once we start supporting different model IDs for different windows of the same
application we need to make sure that the normal windows have a model ID and
the jump lists and recent documents are tagged with the same ID. We do this by
always having an app default model ID, when no window specific model ID is set
the app default is used.

At some point we may want to extend the jump list stuff to support using a
different model ID but that isn't needed right now.

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

--HG--
extra : moz-landing-system : lando
2020-01-02 16:06:35 +00:00
sotaro
37617ede78 Bug 1599981 - Blacklist old drivers on AMD Caicos GPU on Windows10 r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D58180

--HG--
extra : moz-landing-system : lando
2020-01-05 19:25:36 +00:00
Cameron McCormack
c6ae607f04 Bug 1601846 - Record telemetry for whether the user has a dark mode OS theme. r=jmathies
Differential Revision: https://phabricator.services.mozilla.com/D56130

--HG--
extra : moz-landing-system : lando
2019-12-20 19:05:12 +00:00
Adam Gashlin
40987c7634 Bug 1554490: Don't count popups as visible windows for CanTakeFocus. r=jmathies
I did some cleanup while here: This now uses the callback's lParam
instead of a global, and does the enumeration of all windows only if
the foreground window doesn't already belong to this process (which
was proposed in bug 259816 comment 68 but didn't make it into the patch).

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

--HG--
extra : moz-landing-system : lando
2020-01-06 13:09:15 +00:00
Martin Stransky
2f5ac3876d Bug 1606751 [Wayland] Manage opaque region of mozcontainer internally, r=heftig
nsWindow::UpdateOpaqueRegion() is used from Main thread and it collides with
moz_container_get_wl_surface() where opaque region is used and which is called from Compositor thread.

As a fix don't set opaque region directly for mozcontainer but rather just use a flag to signalize
there's an update needed and calculare/set the opaque region at moz_container_get_wl_surface() or
moz_container_egl_window_set_size().

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

--HG--
extra : moz-landing-system : lando
2020-01-06 20:18:19 +00:00
Arthur Iakab
987a0f5d27 Backed out changeset 5bef477e99ca (bug 1604412) for causing MinGw all bustages on include/ddraw.h CLOSED TREE 2020-01-06 20:12:38 +02:00
Ryan VanderMeulen
e01b63ab9f Backed out changeset 83762a3e8989 (bug 1581555) for suspicion of causing bug 1607140.
--HG--
extra : rebase_source : dfbf0316e1b1f65038240264eb14915b2e7557bf
2020-01-06 12:59:04 -05:00
Chris Martin
d3e470db13 Bug 1604412 - Duplicate WinCompositorWidget logic into subclasses r=sotaro
This looks like a large change, but it's really just moving stuff
around.

It takes the logic in WinCompositorWidget and duplicates it into
its only 2 subclasses: InProcessWinCompositorWidget and
CompositorWidgetParent.

This is because CompositorWidgetParent is about to change *a lot*, but
InProcessWinCompositorWidget will basically stay the same. This is an
easy way to verify that I don't accidently break
InProcessWinCompositorWidget.

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

--HG--
extra : moz-landing-system : lando
2020-01-06 07:39:42 +00:00
Greg V
97c5686fd7 Bug 1587360 - Add support for idle-inhibit Wayland protocol r=stransky
The idle-inhibit protocol allows idle wake locks on Wayland
without any of the supported D-Bus interfaces running.

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

--HG--
extra : moz-landing-system : lando
2020-01-06 16:11:19 +00:00