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

29150 Коммитов

Автор SHA1 Сообщение Дата
Mirko Brodesser f4c5025751 Bug 1728955: part 7) Log result of Windows' `OleGetClipboardResult` . r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D125394
2021-09-14 08:01:18 +00:00
Emilio Cobos Álvarez f39a1503ae Bug 1730603 - Use standins if forced to in nsNativeBasicTheme.
MANUAL PUSH: hcm test fix CLOSED TREE
2021-09-14 02:55:51 +02:00
Masatoshi Kimura 2554362da2 Bug 1730312 - Do not handle WM_NCLBUTTONDOWN if the system buttons are used. r=handyman
Windows 7/8.1 uses the system buttons even if the system title bar is disabled.
`mWindowButtonsRect` holds the button area when the system buttons are used.

Differential Revision: https://phabricator.services.mozilla.com/D125308
2021-09-13 22:05:40 +00:00
Masatoshi Kimura 50f8fb12bf Bug 1729627 - Call ::GetAncestor even if GetDpiForWindow is available r=handyman
Differential Revision: https://phabricator.services.mozilla.com/D125306
2021-09-13 22:04:58 +00:00
Robert Mader 0430d9aecd Bug 1695933 - Enable X11 EGL by default, r=aosmond
EGL on X11 has been reported to work well on both Mesa and
prop. Nvidia, but has been blocked by some CI failures.
As these so far can not get reproduced on recent driver version,
require such very recent versions.

For Nvidia it's also important to note that the 470 series is
the first to support DmaBuf and thus benefits much more than
older drivers.

Differential Revision: https://phabricator.services.mozilla.com/D125395
2021-09-13 13:35:22 +00:00
stransky d52fcd4636 Bug 1730141 [Linux] Advertise and provide image types directly for Drop operations, r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D125186
2021-09-13 11:15:17 +00:00
stransky fb4a8d8bca Bug 1730141 [Linux] Implement TargetArrayAddTarget() to add MIME types to drag targets, r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D125185
2021-09-13 11:15:16 +00:00
stransky f26438ab5c Bug 1730476 [Wayland] Use wl_output screen getter workaround on Gnome/mutter only, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D125381
2021-09-13 10:28:58 +00:00
Emilio Cobos Álvarez d41c93a17a Bug 1687682 - Make autofill use a semi-transparent background-image rather than filter. r=mstange,tgiles
With the non-native theme we don't need filter for this to affect
"native" inputs, we can just implement the logic in nsNativeBasicTheme
instead.

A bit unfortunate that we need that special-case, but it seems better
than using filter, which can break websites due to it creating an
stacking context.

I _think_ there are tests that I need to adjust for this change, but if
not I'll write some.

Keep the current behavior behind a pref just in case.

Differential Revision: https://phabricator.services.mozilla.com/D125232
2021-09-12 11:16:07 +00:00
Iulian Moraru 1121a4ab66 Backed out changeset 282b96702ce9 (bug 1687682) for causing multiple mochitest failures. 2021-09-11 04:07:28 +03:00
Emilio Cobos Álvarez 269520d9e9 Bug 1687682 - Make autofill use a semi-transparent background-image rather than filter. r=mstange,tgiles
With the non-native theme we don't need filter for this to affect
"native" inputs, we can just implement the logic in nsNativeBasicTheme
instead.

A bit unfortunate that we need that special-case, but it seems better
than using filter, which can break websites due to it creating an
stacking context.

I _think_ there are tests that I need to adjust for this change, but if
not I'll write some.

Keep the current behavior behind a pref just in case.

Differential Revision: https://phabricator.services.mozilla.com/D125232
2021-09-10 22:44:44 +00:00
stransky 9890f5f0ae Bug 1730079 [Wayland] Get popup text direction by nsWindow::IsPopupDirectionRTL(), r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D125152
2021-09-10 11:11:20 +00:00
Masatoshi Kimura 4815d7d469 Bug 1729742 - Send normal mouse events when cursor is over a maximize button on Windows. r=handyman
Differential Revision: https://phabricator.services.mozilla.com/D125041
2021-09-09 22:25:20 +00:00
Masatoshi Kimura 1b5cf56a3b Bug 1729749 - Handle WM_NCLBUTTONDOWN on the maximize button only if the system title bar is hidden. r=handyman
Differential Revision: https://phabricator.services.mozilla.com/D125016
2021-09-09 18:42:43 +00:00
stransky d1b0d26008 Bug 1729709 [Wayland] Avoid move-to-rect calls when popup size changes but it still fits main window bounds, r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D124914
2021-09-09 10:20:18 +00:00
stransky 646adf404e Bug 1611407 [Linux/X11] Don't try to get text clipboard data of binary MIME types, r=jhorak
X11 tries to convert any binary clipboard data to text if text MIME type is missing in clipboard.
This leads to various errors, wrong conversions and timeouts.
So get clipboard content first and if there are only binary MIME types in clipboard advertise only these types.

Differential Revision: https://phabricator.services.mozilla.com/D123687
2021-09-09 09:46:09 +00:00
Mirko Brodesser c3810f3407 Bug 1728955: part 6) Log result of Windows' `OleSetClipboardResult`. r=masayuki
Helps to understand when something goes wrong.

Differential Revision: https://phabricator.services.mozilla.com/D124899
2021-09-09 07:47:33 +00:00
stransky f6f3d51dcd Bug 1718867 [Wayland] Move noautohide popup in bounds of parent window, r=emilio
When we position noautohide popup we can't use xdg_positioner as the popup
is rendered aside popup hierarchy and can be closed by user interaction only.

Try to keep the popup on screen by just moving it in scope of
it's parent window.

Differential Revision: https://phabricator.services.mozilla.com/D124909
2021-09-09 04:37:04 +00:00
Mirko Brodesser b8d73211a5 Bug 1728955: part 5) Add missing `// static` comment to `nsClipboard::CreateNativeDataObject`. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D124758
2021-09-08 13:27:46 +00:00
Mirko Brodesser 3f7a9641dc Bug 1728955: part 4) Add logging for some cases when `nsBaseClipboard::SetData` fails. r=masayuki
This doesn't handle the error, but at least increases chances to become
aware of it.

Differential Revision: https://phabricator.services.mozilla.com/D124757
2021-09-08 13:27:45 +00:00
Mirko Brodesser 6fd3bac4f8 Bug 1728955: part 3) Add logging to `nsBaseClipboard`. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D124756
2021-09-08 13:27:45 +00:00
Mirko Brodesser 6b2ff56bad Bug 1728955: part 2) Add more logging to Windows-specific clipboard code. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D124754
2021-09-08 13:27:44 +00:00
Cristian Tuns b62a05a36a Backed out 4 changesets (bug 1728955) for causing build bustages on nsBaseClipboard.cpp. CLOSED TREE
Backed out changeset 4dc199dadc4d (bug 1728955)
Backed out changeset f97f21f46037 (bug 1728955)
Backed out changeset 7e7345ede64d (bug 1728955)
Backed out changeset d5ca18235f11 (bug 1728955)
2021-09-08 07:50:22 -04:00
Mirko Brodesser e27513e8d0 Bug 1728955: part 5) Add missing `// static` comment to `nsClipboard::CreateNativeDataObject`. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D124758
2021-09-08 10:34:59 +00:00
Mirko Brodesser 0cb615b2ca Bug 1728955: part 4) Add logging for some cases when `nsBaseClipboard::SetData` fails. r=masayuki
This doesn't handle the error, but at least increases chances to become
aware of it.

Differential Revision: https://phabricator.services.mozilla.com/D124757
2021-09-08 10:34:59 +00:00
Mirko Brodesser e30ec8244e Bug 1728955: part 3) Add logging to `nsBaseClipboard`. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D124756
2021-09-08 10:34:58 +00:00
Mirko Brodesser 5722ce6acf Bug 1728955: part 2) Add more logging to Windows-specific clipboard code. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D124754
2021-09-08 10:34:58 +00:00
Jeff Muizelaar e08d396870 Bug 1690687. Remove unneeded postEvent. r=mstange
This avoids always posting a NSEvent to the event loop everytime we run a
non-native event. Servicing native NSEvents appears to have quite a high
overhead and causes us to commit a CoreAnimation transaction and communicate
with the WindowServer for every Gecko event. This change should also reduce the
CPU usage of the WindowServer process.

It appears that we still need to post an NSEvent when we're in a nested event loop
or when we're shutting down, but those situations are uncommon.

Differential Revision: https://phabricator.services.mozilla.com/D124857
2021-09-08 00:37:04 +00:00
Robert Mader 6930916e71 Bug 1728891 - Some cleanups for WaylandVsyncSource, r=stransky
To make it easier to understand. No functional changes intended.

Differential Revision: https://phabricator.services.mozilla.com/D124571
2021-09-08 00:04:09 +00:00
David Parks 45d0452571 Bug 1718629: Handle Windows WM_NCHITTEST message for maximize button r=emilio,cmartin
Windows 11's Snap Layouts feature generates a window of layout options when the maximize window button is moused over.  This requires the WM_NCHITTEST message to handle hit detection for the button.  Since WM_NCHITTEST messages are very common, although we limit them to no more than every 50ms, we don't want to do a full hit test each time.  Instead, we cache the maximize button rect in the widget when it is positioned during layout.

Differential Revision: https://phabricator.services.mozilla.com/D123982
2021-09-07 16:03:57 +00:00
stransky 7fe2f36056 Bug 1729424 [Wayland] Remove WindowSurfaceWayland backend r=rmader
Differential Revision: https://phabricator.services.mozilla.com/D124747
2021-09-07 12:48:23 +00:00
Florian Quèze 7e2521c727 Bug 1729285 - Observers used with NS_NewTimerWithObserver should implement nsINamed, r=smaug.
Differential Revision: https://phabricator.services.mozilla.com/D124619
2021-09-07 08:01:19 +00:00
Makoto Kato d60b6a18cc Bug 1724811 - Use selection data from notification instead of get current selection. r=geckoview-reviewers,agi
Although root cause isn't bug 1713334, this occurs after landing it.

When inputting "." by Swiftkey, it generates key event then dispatches it to
Gecko. After text is changed by this key event, we will update this change
to GeckoView.

But when this occurs, we post invalid selection change to GeckoView, then
`GeckoEditableChild` throws `IllegalArgumentException`.

Normal
======
1. Dispatch "." text change.
2. Receive text and selection change notification by 1.
3. Posted text/selection change notification to GV's parent

This situation
==============
1. Dispatch "." text change.
2. Receive text and selection change notification by 1.
3. Dispatch next "." text change.
4. Posted 2.'s text/selection change notification to GV's parent.
5. `GeckoEditableChild` throws `IllegalArgumentException`.

So when step 4.., we should use 2.'s change data. But since we query current
Gecko's selection data, we may use invalid selection data.

So we should cache selection change, then use it.

Differential Revision: https://phabricator.services.mozilla.com/D124435
2021-09-06 12:38:26 +00:00
Kagami Sascha Rosylight 6c8d3ce28a Bug 1728171 - Part 2: Add button parameter to utils.sendNativePenInput r=cmartin,edgar
Differential Revision: https://phabricator.services.mozilla.com/D124172
2021-09-06 11:50:34 +00:00
Kagami Sascha Rosylight acc4457efd Bug 1728171 - Part 1: Fire eContextMenu from pen contact with barrel button r=cmartin,edgar
Differential Revision: https://phabricator.services.mozilla.com/D124171
2021-09-06 11:50:34 +00:00
Matt Woodrow d41e38aec0 Bug 1727682 - Make WebRenderLayerManager not inherit LayerManager. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D124433
2021-09-05 22:36:45 +00:00
Matt Woodrow 3d0a5489ce Bug 1728914 - Remove widget code references to AsLayerManager and access WebRender directly. r=gfx-reviewers,aosmond,jrmuizel
Depends on D124415

Differential Revision: https://phabricator.services.mozilla.com/D124416
2021-09-05 02:16:36 +00:00
Stephen A Pohl c494ddeedd Bug 1728167: Add ability for standard users to install from a DMG through elevation. r=mstange,application-update-reviewers,bytesized
Differential Revision: https://phabricator.services.mozilla.com/D123899
2021-09-03 20:41:31 +00:00
Jeff Muizelaar 4d2306308f Bug 1728991 - Drop some unused gfxASurface includes. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D124456
2021-09-03 16:00:34 +00:00
Mirko Brodesser 89e3536dd0 Bug 1728955: part 1) Remove ancient compile time flags for Windows' Clipboard logging. r=masayuki
The flags contain names of old contributers, which makes them inconvient
to use. Now it's also possible to simply enable logging for release
builds.

Differential Revision: https://phabricator.services.mozilla.com/D124445
2021-09-03 13:25:00 +00:00
Alexandru Michis 0ffe70c46e Backed out changeset b55cdb5c3841 (bug 1728167) for causing xpcshell failures in bootstrapSvc.js
CLOSED TREE
2021-09-03 02:56:46 +03:00
Stephen A Pohl 38585184d4 Bug 1728167: Add ability for standard users to install from a DMG through elevation. r=mstange,application-update-reviewers,bytesized
Differential Revision: https://phabricator.services.mozilla.com/D123899
2021-09-02 17:41:48 +00:00
Stephen A Pohl 1946ad3b48 Bug 1728580: Support replacing of an existing Dock icon during pinning on macOS if the first icon is pointing to an app inside a DMG. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D124209
2021-09-02 16:48:38 +00:00
Andreea Pavel fa7564ef7c Backed out 2 changesets (bug 1728167, bug 1728580) for win build bustages on a CLOSED TREE
Backed out changeset d28a7b6edac6 (bug 1728580)
Backed out changeset fc05d1c0d88a (bug 1728167)
2021-09-02 19:17:34 +03:00
Stephen A Pohl 49b06b7234 Bug 1728580: Support replacing of an existing Dock icon during pinning on macOS if the first icon is pointing to an app inside a DMG. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D124209
2021-09-02 15:41:17 +00:00
Stephen A Pohl 6a03b0b2a6 Bug 1728167: Add ability for standard users to install from a DMG through elevation. r=mstange,application-update-reviewers,bytesized
Differential Revision: https://phabricator.services.mozilla.com/D123899
2021-09-02 15:41:17 +00:00
Emilio Cobos Álvarez 3d1e69b292 Bug 1693222 - Fix selecteditem color on macOS.
This is an oversight. I made selecteditem be -moz-html-cellhighlight,
but that's for inactive cells.

Use the inactive cell color everywhere (though android doesn't
differentiate). This matches other browsers and what was reviewed on
this bug.

MANUAL PUSH: The semi-transparent text-selection-disabled color caused
one test failure CLOSED TREE.
2021-09-02 17:27:30 +02:00
Emilio Cobos Álvarez 8b10d3a89d Bug 1693222 - Implement SelectedItem and SelectedItemText system colors. r=mstange
Since Highlight / HighlightText are now equivalent to the text selection
ones, remove those too.

Differential Revision: https://phabricator.services.mozilla.com/D123964
2021-09-02 11:38:01 +00:00
stransky 307f123a76 Bug 1727709 [Wayland] Force GdkWindow repaint after gdk_window_input_shape_combine_region() call, r=emilio
On Wayland gdk_window_input_shape_combine_region() call is cached and applied to underlying wl_surface when GdkWindow is repainted.
Force repaint of GdkWindow at nsWindow::SetWindowMouseTransparent() to apply the changes immediately.

Differential Revision: https://phabricator.services.mozilla.com/D124256
2021-09-02 07:21:50 +00:00
Makoto Kato 4b0962f33f Bug 1728306 - Move enterkeyhint pref setter to mochitest.ini. r=masayuki
WebIDL's prefs enables on new window and doesn't apply current window/tab.
So I should move prefs settings to mochitest.ini instead.

When setting pref in mochitest.ini, it applies on all tests. But enterkeyhint
is used on this test only, so others won't be affected.

Differential Revision: https://phabricator.services.mozilla.com/D124183
2021-09-02 05:13:54 +00:00