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

26479 Коммитов

Автор SHA1 Сообщение Дата
Martin Stransky b650f11f94 Bug 1641778 [Wayland] Always lock wayland surface when se use it, r=jhorak
- moz_container_wayland_get_surface() is replaced by moz_container_wayland_surface_lock()/moz_container_wayland_surface_unlock()
pair which ensures the surface is locked and won't be destroyed by other thread when window is hidden for instance.

- nsWindow::GetWaylandSurface() is removed and nsWindow::GetMozContainer() needs to be used instead.

Differential Revision: https://phabricator.services.mozilla.com/D77698
2020-06-02 16:22:16 +00:00
Makoto Kato 0917864e45 Bug 1593683 - Part 2. Handle arrow left/right key when having composition. r=geckoview-reviewers,esawin
Most IMEs handle arrow key, then set caret position by IME. But GBoard doesn't
handle it. GBoard will dispatch key event to application for arrow left/right
even if having IME composition.

Since Gecko doesn't dispatch key press during IME composition due to DOM UI
events spec, we have to emulate arrow key's behaviour.

And, `GeckoEditable` has a hack that composition text is committed when
dispatching key event. This hack is unnecessary after landing
bug 1613804 that `InputConnection.finishComposingText` is implemented.

Differential Revision: https://phabricator.services.mozilla.com/D76658
2020-06-01 08:36:29 +00:00
Makoto Kato 83fbd04e63 Bug 1593683 - Part 1. Restore caret position after committing composition. r=geckoview-reviewers,esawin
When calling `InputConnection.finishComposingText` commits composition string,
but caret position isn't changed. But
`RemoveComposition(COMMIT_IME_COMPOSITION)` sets caret position to end of
string.

So we have to restore caret position after calling
`RemoveComposition(COMMIT_IME_COMPOSITION)` via `finishComposingText`.

Differential Revision: https://phabricator.services.mozilla.com/D76657
2020-06-01 08:36:26 +00:00
Kartikaya Gupta 01c7b3c016 Bug 1254030 - Fix size of drag image outline when nglayout.enable_drag_images=false. r=botond
The positioning isn't right, but it's not right even without APZ zooming, so
this patch doesn't mess with it.

Differential Revision: https://phabricator.services.mozilla.com/D77437
2020-06-01 21:40:34 +00:00
Razvan Maries a36bb7751f Backed out 3 changesets (bug 1638153) for perma failures on cross-origin-objects.html. CLOSED TREE
Backed out changeset f7aedc92d396 (bug 1638153)
Backed out changeset 07ec713926c6 (bug 1638153)
Backed out changeset 5a656842e241 (bug 1638153)
2020-06-01 23:51:35 +03:00
Kris Maglione b3fcd970ec Bug 1638153: Part 2 - Fix uses of .rootTreeItem to get top browser window. r=geckoview-reviewers,nika,snorp
Differential Revision: https://phabricator.services.mozilla.com/D75429
2020-06-01 17:59:01 +00:00
Ricky Stewart 0bbaac721b Bug 1641693 - Replace a bunch of uses of `GENERATED_FILES` with the `GeneratedFile` template r=necko-reviewers,geckoview-reviewers,aklotz,dragana,froydnj
Also update documentation to suggest using the `GeneratedFile` template rather than directly referencing `GENERATED_FILES` where possible.

Differential Revision: https://phabricator.services.mozilla.com/D77496
2020-06-01 16:00:28 +00:00
Mihai Alexandru Michis 7ac149a023 Backed out 2 changesets (bug 1593683) for causing failures in test_selectevents.html
Backed out changeset 05d7ad574df4 (bug 1593683)
Backed out changeset 16cc9284bc5f (bug 1593683)
2020-06-01 06:29:24 +03:00
Makoto Kato 6608bcb9fd Bug 1593683 - Part 2. Handle arrow left/right key when having composition. r=geckoview-reviewers,esawin
Most IMEs handle arrow key, then set caret position by IME. But GBoard doesn't
handle it. GBoard will dispatch key event to application for arrow left/right
even if having IME composition.

Since Gecko doesn't dispatch key press during IME composition due to DOM UI
events spec, we have to emulate arrow key's behaviour.

And, `GeckoEditable` has a hack that composition text is committed when
dispatching key event. This hack is unnecessary after landing
bug 1613804 that `InputConnection.finishComposingText` is implemented.

Differential Revision: https://phabricator.services.mozilla.com/D76658
2020-05-28 15:38:03 +00:00
Makoto Kato 605c87a3ce Bug 1593683 - Part 1. Restore caret position after committing composition. r=geckoview-reviewers,esawin
When calling `InputConnection.finishComposingText` commits composition string,
but caret position isn't changed. But
`RemoveComposition(COMMIT_IME_COMPOSITION)` sets caret position to end of
string.

So we have to restore caret position after calling
`RemoveComposition(COMMIT_IME_COMPOSITION)` via `finishComposingText`.

Differential Revision: https://phabricator.services.mozilla.com/D76657
2020-05-28 15:38:03 +00:00
Randell Jesup 78facb122a Bug 1602757: add preallocation cache for webIsolated (fission) processes r=nika,smaug
Differential Revision: https://phabricator.services.mozilla.com/D69589
2020-05-30 14:38:30 +00:00
Sylvestre Ledru 63be8d152d Bug 1519636 - Reformat recent changes to the Google coding style r=necko-reviewers,dragana
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D77580
2020-05-30 09:55:27 +00:00
Timothy Nikkel b65d41e67d Bug 1641996. Small follow up.
Depends on D77576

Differential Revision: https://phabricator.services.mozilla.com/D77583
2020-05-30 10:13:37 +00:00
Timothy Nikkel bb27bfe8b2 Bug 1641996. Put the focus point of pinch events from Direct Manipulation in widget relative coordinates. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D77576
2020-05-30 08:33:24 +00:00
Mihai Alexandru Michis 8e7c95bdb3 Backed out changeset ac8ebdcda25b (bug 1641996) for causing bustages in DirectManipulationOwner.
CLOSED TREE
2020-05-30 11:05:52 +03:00
Timothy Nikkel 0a375e5a95 Bug 1641996. Put the focus point of pinch events from Direct Manipulation in widget relative coordinates. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D77576
2020-05-30 06:58:47 +00:00
Makoto Kato 2a241751b2 Bug 1639071 - Don't dispatch key press when key down handler calls preventDefault. r=geckoview-reviewers,esawin
If key down event handler calls `event.preventDefault()`, web browser
shouldn't fire key press event. But GeckoView may fire key press
unfortunately if using software keyboard.

So we don't fire key press event when dispatching `eKeyDown` returns
`nsEventStatus_eConsumeNoDefault`.

Differential Revision: https://phabricator.services.mozilla.com/D75981
2020-05-30 07:00:46 +00:00
Jeff Muizelaar 9a078db557 Bug 1642014 - Expose HW_COMPOSITING feature to telemetry. r=aosmond
FEATURE_FAILURE_D3D11_NEED_HWCOMP is one of the main reasons
people get the basic compositor. This will let us dig into
why we get FEATURE_FAILURE_D3D11_NEED_HWCOMP.

Differential Revision: https://phabricator.services.mozilla.com/D77554
2020-05-29 22:35:13 +00:00
Jonathan Watt 974e4621b9 Bug 1641949. Removing the rest of the hacky print prefs code introduced by bug 1276717. r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D77506
2020-05-29 19:07:39 +00:00
Erik Nordin 4c06dea151 Bug 1639990 - Rename defaultPrinterName to lastUsedPrinterName r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D76955
2020-05-29 17:37:01 +00:00
Martin Stransky ec6a3bec56 Bug 1619882 [Wayland] Implement dmabuf global ref count, r=jhorak
This patch implements:

- Global surface UID for better tracking/debugging. The UID is passes acros all processes so we can track
  surface usage.
- WaylandAllocateShmMemory() function which uses shm_open() instead of files at tmp for Shm memory creation.
- DMABufRefcount() class based on eventfd() which is used as a global surface reference count.

Differential Revision: https://phabricator.services.mozilla.com/D76689
2020-05-29 15:21:50 +00:00
Edgar Chen 38dcba8fbb Bug 1640883 - Treat ctrl-c, ctrl-x and ctrl-v as user activation; r=smaug
ctrl-c and ctrl-x is quite common shortcut for clipboard operation, we should
treat it as user activation.

Differential Revision: https://phabricator.services.mozilla.com/D77046
2020-05-28 21:56:30 +00:00
Narcis Beleuzu 4e6564f9f0 Backed out 7 changesets (bug 1602757, bug 1640801, bug 1612063, bug 1569928) for wpt failures on operator-dictionary-spacing-002/003/006.html CLOSED TREE
Backed out changeset 11277f03c48c (bug 1640801)
Backed out changeset 6d2a92d25b8f (bug 1569928)
Backed out changeset 383fd9b931ae (bug 1602757)
Backed out changeset 58ec60831af6 (bug 1602757)
Backed out changeset 4b9c579de3b2 (bug 1602757)
Backed out changeset a34288a6f60c (bug 1612063)
Backed out changeset 5134aaa3278e (bug 1602757)
2020-05-29 05:38:02 +03:00
Erik Nordin 3a7fc409b7 Bug 117233 - Implement nsIPrinterEnumeratorX r=jwatt
- Implement the nsPrinterEnumeratorX
- Enable the contract @mozilla.org/gfx/printerenumerator;1 for macOS
- Add test for default printer name.
- Remove restrictions preventing some tests from running on macOS

Differential Revision: https://phabricator.services.mozilla.com/D76356
2020-05-28 15:36:44 +00:00
Randell Jesup a6b0fd37c6 Bug 1602757: add preallocation cache for webIsolated (fission) processes r=nika,smaug
Differential Revision: https://phabricator.services.mozilla.com/D69589
2020-05-28 21:37:03 +00:00
Jeff Muizelaar b13f4ee4b3 Bug 1636225. Roll out WebRender to all screen sizes on modern Intel on release. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D76769
2020-05-26 10:46:51 +00:00
Narcis Beleuzu 0d860681b7 Backed out 6 changesets (bug 1602757, bug 1612063, bug 1569928) for wpt failure on operator-dictionary-spacing-001.html . CLOSED TREE
Backed out changeset 0f9c7960f36e (bug 1569928)
Backed out changeset 9456c9f960c9 (bug 1602757)
Backed out changeset 8dc7e11dbb9c (bug 1602757)
Backed out changeset 8bacf5ad656e (bug 1602757)
Backed out changeset b15fc1090ac7 (bug 1612063)
Backed out changeset bd19c329c6b7 (bug 1602757)
2020-05-28 21:29:25 +03:00
Noemi Erli b2592ed343 Backed out changeset aa89e2840bce (bug 1640883) for causing failures in test_autoplay_policy_key_blacklist.html CLOSED TREE 2020-05-28 19:38:12 +03:00
Randell Jesup 4899b7707e Bug 1602757: add preallocation cache for webIsolated (fission) processes r=nika,smaug
Differential Revision: https://phabricator.services.mozilla.com/D69589
2020-05-28 14:33:24 +00:00
Edgar Chen 45646b6a07 Bug 1640883 - Treat ctrl-c, ctrl-x and ctrl-v as user activation; r=smaug
ctrl-c and ctrl-x is quite common shortcut for clipboard operation, we should
treat it as user activation.

Differential Revision: https://phabricator.services.mozilla.com/D77046
2020-05-28 14:23:14 +00:00
Martin Stransky bce2082606 Bug 1552128 [Linux] Allow to use frame extents in CSD mode when system titlebar is on, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D77207
2020-05-28 06:25:55 +00:00
Haik Aftandilian 0a19d8eeb2 Bug 1592416 - Right click opens context menu on wrong monitor or virtual desktop (mac OS Catalina) r=spohl
Add the NSWindowCollectionBehaviorMoveToActiveSpace behavior to nsCocoaWindow
popups so that they override the "Assign To" space setting and display on the
active space.

This also addresses bug 1589893 where, when "Assign To" space is used, popup
menus are not visible in full screen mode.

With mutiple displays, recreate the popup widget each time it is displayed
to workaround a problem where the re-shown popup appears on the "Assign To"
display instead of the current display.

Differential Revision: https://phabricator.services.mozilla.com/D75419
2020-05-28 04:00:02 +00:00
Razvan Maries c2dda9f2ae Backed out changeset 854feb05fff6 (bug 1592416) for assertion failures. CLOSED TREE 2020-05-28 03:42:16 +03:00
Stephen A Pohl e3c972281a Bug 1543813: Fix a race condition that can lead to a crash when using the color picker on macOS. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D71045
2020-05-27 22:07:45 +00:00
Stephen A Pohl fbcafaf7ae Bug 1543813: Minor refactor of macOS color picker. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D71043
2020-05-19 17:27:42 +00:00
Razvan Maries 749be00108 Backed out 2 changesets (bug 1543813) for assertion failures. CLOSED TREE
Backed out changeset 868982681ab3 (bug 1543813)
Backed out changeset c9b75701fcee (bug 1543813)
2020-05-28 03:17:13 +03:00
Haik Aftandilian 76c2f2d30d Bug 1592416 - Right click opens context menu on wrong monitor or virtual desktop (mac OS Catalina) r=spohl
Add the NSWindowCollectionBehaviorMoveToActiveSpace behavior to nsCocoaWindow
popups so that they override the "Assign To" space setting and display on the
active space.

This also addresses bug 1589893 where, when "Assign To" space is used, popup
menus are not visible in full screen mode.

With mutiple displays, recreate the popup widget each time it is displayed
to workaround a problem where the re-shown popup appears on the "Assign To"
display instead of the current display.

Differential Revision: https://phabricator.services.mozilla.com/D75419
2020-05-27 22:41:34 +00:00
Stephen A Pohl 87257b906f Bug 1543813: Fix a race condition that can lead to a crash when using the color picker on macOS. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D71045
2020-05-27 22:07:45 +00:00
Stephen A Pohl bb9d5ca840 Bug 1543813: Minor refactor of macOS color picker. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D71043
2020-05-19 17:27:42 +00:00
Eitan Isaacson 553616aa05 Bug 1641002 - Introduce MOXAccessible protocol and MOXAccessibleBase. r=morgan
This sets up the possibility of moving most non-gecko things to a base class, and
start a protocol to add for all the subclasses to implement as needed.

Differential Revision: https://phabricator.services.mozilla.com/D76920
2020-05-27 17:24:44 +00:00
Emilio Cobos Álvarez 54fd961a29 Bug 1641245 - Make string comparators not virtual. r=froydnj,necko-reviewers,geckoview-reviewers,jgilbert,agi,valentin
There's no use case for stateful comparators, so they can be just plain
function pointers.

This is used in some hot places like CSS selector matching.

Differential Revision: https://phabricator.services.mozilla.com/D77084
2020-05-27 18:11:12 +00:00
Martin Stransky f8879f2c2d Bug 1552128 [Linux] Update client offset in on-size-allocate event, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D76999
2020-05-27 08:42:17 +00:00
Edgar Chen acf69e7f98 Bug 1640139 - Don't dispatch contextmenu event triggered from control-left-click as right-button in Mac; r=masayuki
All other browsers dispatch contextmenu as left-button in this case.

Differential Revision: https://phabricator.services.mozilla.com/D76493
2020-05-26 13:11:45 +00:00
Emilio Cobos Álvarez 8d8d416c63 Bug 1638107 - Scale gtk entry min height by the font-size for smaller-than-default font-sizes. r=karlt
This makes inputs not remain very big at small font sizes, which is
needed for compat both with other browsers and platforms, while keeping
the right native appearance at normal / large font sizes.

Differential Revision: https://phabricator.services.mozilla.com/D76256
2020-05-26 01:34:25 +00:00
Jeff Muizelaar 3cd235964d Bug 1640412 - Include failure id for status=unavailable/blocked too. r=aosmond
We get a fair amount of this on modern hardware.
It would be good to know why.

Differential Revision: https://phabricator.services.mozilla.com/D76605
2020-05-25 12:42:12 +00:00
sotaro 1e3d052869 Bug 1632357 - Use compositor window only when it is necessary r=nical
With current gecko, there are cases that compositor window is used even when it is not necessary. For example, fallback from DirectComposite with WebRender and fallback from double buffering with Compositor. With some gpu drivers, the fallbacks with compositor window causes rendering problem.

Differential Revision: https://phabricator.services.mozilla.com/D76470
2020-05-25 11:57:05 +00:00
Sylvestre Ledru e8574b55a1 Bug 1519636 - follow up - Reformat recent changes to the Google coding style r=andi
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D76675
2020-05-25 09:55:23 +00:00
Sylvestre Ledru 615c83d723 Bug 1519636 - Reformat recent changes to the Google coding style r=andi
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D76451
2020-05-25 07:42:38 +00:00
Nicklas Boman c6d034eba4 Bug 1432090 - [CSD] Button layout not according to settings - Widget background work r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D73453
2020-05-24 09:22:58 +00:00
Narcis Beleuzu 34d12babb2 Backed out 5 changesets (bug 1602757, bug 1612063) for marionette failures on test_crash.py
Backed out changeset 232da017dc6a (bug 1602757)
Backed out changeset 32851bed1929 (bug 1602757)
Backed out changeset 1c6a6bfaaeef (bug 1602757)
Backed out changeset 45e22f062bce (bug 1612063)
Backed out changeset a7d7edf158a4 (bug 1602757)
2020-05-23 23:45:59 +03:00