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

26491 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez 57880152d6 Bug 1643474 - Cleanup and validate input in button layout placement code. r=stransky,smurfd
It is not clear whether this is the cause of the crash, but it seems
plausible as it is both recent code and it clearly doesn't validate the
length of the stack-allocated buffer, so a bad gconf could plausibly
cause this.

Clean stuff up a bit and validate the buffer length.

Differential Revision: https://phabricator.services.mozilla.com/D78405
2020-06-05 10:02:58 +00:00
sotaro 650f64603f Bug 1642839 - Implement WebRenderLayerManager::SendInvalidRegion() r=jrmuizel
When DWM is disabled, each window does not have own back buffer. They would paint directly to a buffer that was to be displayed by the video card. WM_PAINT via SendInvalidRegion() requests necessary re-paint. With it, RenderCompositorANGLE does not need to disable partial present.

Differential Revision: https://phabricator.services.mozilla.com/D77989
2020-06-05 05:03:40 +00:00
Noemi Erli 184f382e28 Backed out changeset 6b49139f2b9d (bug 1641033) for causing assertions in gfxPlatform.cpp CLOSED TREE 2020-06-05 04:31:45 +03:00
Kenny Levinsen 3950a7a3bf Bug 1641033 - Fire vsync observers directly from Wayland frame callback. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D77047
2020-06-04 23:39:30 +00:00
Jonathan Watt 4f0f4b029d Bug 1643418. Don't overwrite the print range type if 'Print Selection Only' is unchecked. r=nordzilla
Differential Revision: https://phabricator.services.mozilla.com/D78394
2020-06-04 21:09:12 +00:00
Marco Bonardo 28864a8c6f Bug 1628948 - Dispatch mousedown asynchronously on a WM_NCLBUTTONDOWN. r=NeilDeakin
On other platforms we get a mousedown event when the non-client area is clicked,
but not on Windows, where handling the WM_NCLBUTTONDOWN message breaks dragging
the window. This dispatches the mousedown event like other platforms, but on
the next tick.

Differential Revision: https://phabricator.services.mozilla.com/D77419
2020-06-04 08:00:20 +00:00
Jeff Muizelaar 529465e543 Bug 1643348 - Allow gen7.5 gt2/3 on early beta. r=aosmond
This also drops screen size and battery restrictions.

Differential Revision: https://phabricator.services.mozilla.com/D78290
2020-06-04 17:24:48 +00:00
Martin Stransky cb61ee92f5 Bug 1643149 [Wayland] Fix MozContainer deadlock, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D78278
2020-06-04 13:50:46 +00:00
Jonathan Watt cf7589cd57 Bug 1600623. Add telemetry probes for print dialog/preview opens/cancels and print target type. r=bobowen,mbalfanz
The probes collect counts for:

 - print preview open, and exit without print
 - print dialog opened from print preview, and cancelled
 - print dialog opened without print preview, and cancelled
 - silent prints
 - print target
   - PDF file
   - XPS file
   - other (probably print to physical printer, but we can never be sure)

There is some overlap with the existing PRINT_* probes, but I think we should
keep those in place temporarily until we confirm that the new probes produce
numbers that are consistent with the old probes.

This patch only adds 'print target' probes for Windows and macOS.

I use nsDeviceContextSpec*::Init() to collect the 'print target' telemetry
because the way we initialize settings from prefs (and the way macOS works in
particular) make it difficult to reliably determine the target type earlier in
the print process for all possible entry points into the printing code.

Differential Revision: https://phabricator.services.mozilla.com/D78033
2020-06-03 21:21:14 +00:00
Jeff Muizelaar 6bd11ae538 Bug 1643052 - Turn on WebRender on Stoney Ridge. r=aosmond
Let's let it ride to early beta for now.

Differential Revision: https://phabricator.services.mozilla.com/D78081
2020-06-03 17:20:21 +00:00
Simon Giesecke 47b44d078e Bug 1642666 - Remove obsolete test for removed nsIAppShell::RunBeforeNextEvent function. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D78013
2020-06-03 16:16:09 +00:00
Emilio Cobos Álvarez 4292aa557c Bug 1642343 - Fix Mac themed focus outline to not show white edges. r=mstange
This can be reproduced trivially on a MacBook on the test page with
layout.css.devPixelsPerPx = 1.

I wanted to fix this independently of following the outline radius.

Differential Revision: https://phabricator.services.mozilla.com/D77943
2020-06-02 22:36:20 +00:00
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