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

25775 Коммитов

Автор SHA1 Сообщение Дата
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
Dave Townsend 3f0c6ba8fc Bug 1605997: Unregister notifications that are replaced by a new notification with the same name. r=jmathies
Showing a new notification with the same name of an existing notification
replaces the old notification so we must unregister it from Windows at that
point.

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

--HG--
extra : moz-landing-system : lando
2020-01-06 13:08:14 +00:00
Dave Townsend 2ca21259af Bug 1605997: Send the finished notification when the notification is hidden. r=jmathies
Other platforms send out the finished notification when the notification is
programmatically cancelled. This patch ensures that finished is always sent.

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

--HG--
extra : moz-landing-system : lando
2020-01-06 13:08:16 +00:00
Masatoshi Kimura 08c5488cba Bug 1602615 - Add a support for free-threaded IStream to handle Internet shortcuts. r=jmathies
By making the IStream object free-threaded (or "agile"), IStream::Read will be
called off the main thread. So we can wait until favicon is created.

Depends on D56478

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

--HG--
extra : moz-landing-system : lando
2020-01-06 13:31:47 +00:00
Masatoshi Kimura 95241d2225 Bug 1602615 - Add a callback parameter to ObtainCachedIconFile and use it in GetFileContentsInternetShortcut. r=jmathies
Differential Revision: https://phabricator.services.mozilla.com/D56478

--HG--
extra : moz-landing-system : lando
2020-01-06 13:31:54 +00:00
Ben Iofel b92dbf5479 Bug 726479 - Use GTK's support for startup notifications, r=karlt
Original author: Ben Iofel <iofelben@gmail.com>

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

--HG--
extra : moz-landing-system : lando
2020-01-06 12:03:38 +00:00
Vlad Zahorodnii 30aa62894e Bug 1497066 - [Linux/HiDPI] Draw header bar buttons at correct scale on HiDPI, r=stransky
Set the style scale in order to be in line with GetStyleContext().

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

--HG--
extra : moz-landing-system : lando
2020-01-05 10:30:36 +00:00
Jonathan Kingston 27ca040dfd Bug 1606774 - Change GetAttribute to GetAttr where possible r=baku
Differential Revision: https://phabricator.services.mozilla.com/D58585

--HG--
extra : moz-landing-system : lando
2020-01-03 23:40:53 +00:00
Harry Twyford 8de8ca3b0c 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-03 18:06:57 +00:00
harry df31f5d57a Bug 1600356 - Part 3 - Streamline Touch Bar image loading. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D55314

--HG--
extra : moz-landing-system : lando
2020-01-03 17:07:25 +00:00
harry 2eee9add65 Bug 1600356 - Part 2 - Introduce TouchBarInputBaseType enum and change signatures on TouchBarInput update methods. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D56590

--HG--
extra : moz-landing-system : lando
2020-01-03 17:07:25 +00:00
harry 02ad23c3cc Bug 1600356 - Part 1 - Split out TouchBarInput into its own files. r=spohl
nsTouchBar.h/.mm were getting a bit unwieldy, particularly after the TouchBarInputBaseType enum from the next part of this patch was added. This part splits out TouchBarInput into its own files. This makes the Touch Bar's file structure similar to that of the menu bar's: nsMenuBarX, nsMenuBarItemX, and nsMenuBarItemIconX contrasted with nsTouchBar, nsTouchBarInput, and nsTouchBarInputIcon.

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

--HG--
extra : moz-landing-system : lando
2019-12-31 20:26:00 +00:00
Martin Stransky ebc6009b2b Bug 1606776 [Wayland] Commit opaque region change to mShell wl_surface r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D58597

--HG--
extra : moz-landing-system : lando
2020-01-03 10:41:55 +00:00
Martin Stransky b579b97bc6 Bug 1606601 - [Linux/HiDPI] Set scale factor to GtkStyleContext when WidgetStyleCache is not used, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D58507

--HG--
extra : moz-landing-system : lando
2020-01-03 07:42:49 +00:00
Greg V cd4b391a87 Bug 1556301 - Wayland-EGL/GLES support in glxtest r=stransky,aosmond
This allows GfxInfoX11 to get GLES3 and Mesa version from Wayland-EGL, which
allows automatic enablement of acceleration to work without Xwayland.

This also fixes bug 1578598 - WebRender did not work correctly
without this GL version information.

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

--HG--
extra : moz-landing-system : lando
2020-01-03 01:02:44 +00:00
Emilio Cobos Álvarez b8b46c17fb Bug 1606036 - Implement high contrast mode in GTK. r=stransky
Over in bug 1604761 I realized that GTK has a high-contrast accessibility
setting, that GTK does not honor the same way as windows does.

There's no good reason for that IMO, and high contrast mode on windows is
getting some love.

This hooks the relevant parts of the GTK widget code so that we also avoid
websites overriding high contrast colors (via PreferenceStyleSheet and co).

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

--HG--
extra : moz-landing-system : lando
2020-01-02 13:59:05 +00:00
Martin Stransky 0f1c8a2adc Bug 1605120 [Wayland] Calculate and set opaque region for all wayland surfaces, r=heftig
Calculate and set correct opaque regions for all wl_surfaces, which are:

- mShell - toplevel window with CSD decorations, opaque mask needs to be shifted by titlebar/CSD size and subtracted transparent corners.
- mContainer - child window with subtracted transparent corners.

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

--HG--
extra : moz-landing-system : lando
2020-01-02 13:35:26 +00:00
Paul Warner 7fec362cac Bug 1591230 - On macOS use MediaPlayer library for media keys when available. r=spohl,alwu
On macOS 10.12.1+, we use `MediaPlayer` library, which has better media key integration, to replace the implementation of `CG EventLoop`.

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

--HG--
extra : moz-landing-system : lando
2019-12-31 01:41:33 +00:00
Markus Stange 239125933c Bug 1592026 - Move NativeLayerRoot::CommitToScreen call from PostRender into the compositors. r=jrmuizel
This makes it more similar to how SwapBuffers was used.
This patch also makes us call glFlush directly when using native layers, rather than going through the misleadingly-named GLContext::SwapBuffers method.

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

--HG--
extra : moz-landing-system : lando
2019-12-29 12:41:04 +00:00
Markus Stange c96a136f94 Bug 1592026 - Move AsyncCATransaction suspension into NativeLayerRootCA. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D57061

--HG--
extra : moz-landing-system : lando
2019-12-29 12:18:32 +00:00
Masayuki Nakano 0a74bf0038 Bug 1605918 - Get rid of synthesizeDragStart() in EventUtils.js r=smaug
All usage of `synthesizeDragStart()` is, starting drag, cancel `dragstart`,
and finally compares `dataTransfer` items and given expected data.  So,
we can make the users use `synthesizePlainDragAndDrop()` instead.  It's
better API because it computes position of mouse operations at runtime and
checks whether the drag start was succeeded with optional logging feature
(i.e., it's easier to debug of intermittent failures).

This patch creates `synthesizePlainDragAndCancel()` for convenience.  It
handles `dragstart` instead of the callers.

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

--HG--
extra : moz-landing-system : lando
2019-12-27 16:25:24 +00:00
Masayuki Nakano 3abbdc38ed Bug 1605855 - Make `window_composition_text_querycontent.xhtml` high DPI aware r=m_kato
The failures which you see running the tests on high DPI display are caused by
`synthesizeQuery*` returns device pixels, but some of the failures
calculating/comparing with CSS pixels, or the other of them caused just
rounding error.  This patch makes they refer `window.devicePixelRatio` and/or
use `isfuzzy` to compare.

The patched tests pass on 100%, 125%, 150%, 175%, 200% and 225% on Win10-ja.

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

--HG--
extra : moz-landing-system : lando
2019-12-25 10:44:36 +00:00
Emilio Cobos Álvarez 0c1f14102b Bug 1031662 - Use more const in gtk3drawing. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D58132

--HG--
extra : moz-landing-system : lando
2019-12-24 02:02:09 +00:00