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

26353 Коммитов

Автор SHA1 Сообщение Дата
Chris Peterson ce0c6b20bb Bug 1624786 - Replace "clang-format off" with semicolon workaround for clang-format bug 1629756. r=spohl
This semicolon workaround is tidier than the `// clang-format off/on` comments and avoids turning off all clang-format checks. The comment also links to clang-format bug 1629756 so future code readers can learn why this extra semicolon exists. And if we find a way to fix this in clang-format, then we can search for this bug number to find and remove these extra semicolons and comments.

Differential Revision: https://phabricator.services.mozilla.com/D71504
2020-04-20 12:18:48 +00:00
Ciure Andrei 33a2dc2141 Backed out changeset 339795d0a51e (bug 1574746) for causing browser_startup_syncIPC.js failures CLOSED TREE 2020-04-21 04:32:44 +03:00
sotaro 66fa9f31db Bug 1574746 - Remove AllowWebRenderForThisWindow() r=nical
nsBaseWidget::AllowWebRenderForThisWindow() limits WebRender usage to some  type of windows. It was added by Bug 1377321, because initialization of WebRender was heavy weight in the past. It is not necessary anymore.

Differential Revision: https://phabricator.services.mozilla.com/D71440
2020-04-20 14:15:08 +00:00
Arthur Iakab d0d3827cd2 Backed out changeset 880f56e1656b (bug 1603839) for causing build bustages on GtkCompositorWidget.h
CLOSED TREE
2020-04-23 12:28:10 +03:00
Jan Horak f9d7f39b74 Bug 1631458 Account font scale factor for the popup placement under wayland; r=stransky
The font scale factor needs to be accounted for the popup anchor rect under
Wayland.

Differential Revision: https://phabricator.services.mozilla.com/D72100
2020-04-23 08:43:52 +00:00
Martin Stransky 4d6599f102 Bug 1603839 [Linux] Explicitly set Wayland/X11 backend for GtkCompositorWidget, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D71888
2020-04-23 08:19:07 +00:00
Mihai Alexandru Michis 25a1d0163b Backed out changeset 86630db403c1 (bug 1623974) for causing failures in browser_toolbox_zoom_popup.js and in wpt.
CLOSED TREE
2020-04-20 18:07:23 +03:00
Jan Horak 5664a8f139 Bug 1623974 [wayland] Attach popups to anchor rects; r=stransky
If we want correct popup placement we need to use the right anchor rect
for gdk_window_move_to_rect under Wayland. Patch exports the anchor rect from the
nsMenuPopupFrame to be used in nsWindow.

This patch also fixes popup overflowing the screen by using the size returned from
gdk_window_move_to_rect for the nsMenuPopupFrame.

Differential Revision: https://phabricator.services.mozilla.com/D67810
2020-04-20 12:50:25 +00:00
sotaro c64e7f13d2 Bug 1611372 - Invalidate WebRender frame on nsWindow::OnExposeEvent() r=nical
Differential Revision: https://phabricator.services.mozilla.com/D71139
2020-04-17 17:27:37 +00:00
Kris Taeleman 0ec13882ab Bug 1607322 - Enable webrender for Pixel 2/3 on release r=jnicol
Preparing change to enable webrender on Fenix once the shader compilation changes are in.

Differential Revision: https://phabricator.services.mozilla.com/D70944
2020-04-17 16:34:10 +00:00
Jeff Muizelaar 264a9feb12 Bug 1629602 - Include reason for failure when describing features. r=aosmond
This should give us more information in telemetry.

Differential Revision: https://phabricator.services.mozilla.com/D70706
2020-04-15 22:11:19 +00:00
Makoto Kato ac14cb654b Bug 1629759 - Remove unused dom.event.touch.coalescing.enabled preference. r=geckoview-reviewers,agi
No one seems to reference `dom.event.touch.coalescing.enabled` after landing Bug 1291373.
So remove it.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 21:20:11 +00:00
Martin Stransky 6cfd5ed10f Bug 1629526 [Wayland] Add gWaylandThreadLoopMutex to guard thread loop shutdown, r=jhorak
- Add gWaylandThreadLoopMutex to guard thread loop shutdown
- Rename gWaylandDisplaysMutex to gWaylandDisplayArrayMutex to clarify it's mutex for gWaylandDisplays array access
- Add gWaylandDisplayArrayMutex lock at ReleaseDisplaysAtExit()
- Rename DispatcherThreadLoop names to ThreadLoop

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

--HG--
extra : moz-landing-system : lando
2020-04-16 06:07:06 +00:00
Makoto Kato ff4dcdc969 Bug 1629730 - Remove unnecessary AKEYCODE defines from GeckoEditableSupport. r=geckoview-reviewers,agi
Old NDK requires AKEYCODE defines for newer API version, but it is unnecessary
to define it when using NDK r20.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 21:25:46 +00:00
Harry Twyford 81fc12010b Bug 1629966 - Remove Touch Bar telemetry. r=mikedeboer,chutten
Differential Revision: https://phabricator.services.mozilla.com/D70904

--HG--
extra : moz-landing-system : lando
2020-04-15 17:57:42 +00:00
Ryan Pauls d6aeea13b9 Bug 1626762 Removed the else statement to improve readability and better meet guidelines as per http://clang.llvm.org/extra/clang-tidy/checks/readability-else-after-return.html r=sylvestre
Added braces around statements as per code review bot.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 11:07:44 +00:00
alwu ef4a16e0ae Bug 1628929 - part1 : break the cyclic reference after receiving decoded image. r=emilio,agi
Currently, there is a cyclic reference between `ImageDecoderListener` and `ImageCallbackHelper` that causes a memory leak on Android. `ImageDecoderListener` is holding `imgIContainerCallback` which is a `ImageCallbackHelper` and `ImageCallbackHelper` is holding `imgIContainer`, which is actually a `ImageDecoderListener`.

Therefore, we should break the cyclic reference after receiving decoded image.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 02:48:34 +00:00
Haik Aftandilian a4a88a4380 Bug 1627414 - getDisplayMedia does not work when firefox is full screen on macOS r=spohl
Change the GetScreenCapturePermissionState() heuristic to use the full window list instead of just on-screen windows to allow it it to work in full screen mode.

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

--HG--
extra : moz-landing-system : lando
2020-04-14 20:27:55 +00:00
Kristen Wright dcb3da64d1 Bug 1621359 - Update .idl files to work with ply3 r=mccr8
This pattern:
```
native nsSize (nsSize);
             ^
```
Causes a parsing error in `ply` 3.10. This can be easily fixed by removing the space and reformatting to this:
```
native nsSize(nsSize);
```

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

--HG--
extra : moz-landing-system : lando
2020-04-14 17:17:38 +00:00
Bogdan Tara f3495bfe11 Backed out changeset 575503d55ccd (bug 1629602) for gfx/tests/marionette/test_pref_rollout_workaround.py failures CLOSED TREE 2020-04-14 19:58:02 +03:00
Jeff Muizelaar 793f4a1198 Bug 1629602 - Include reason for failure when describing features. r=aosmond
This should give us more information in telemetry.

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

--HG--
extra : moz-landing-system : lando
2020-04-14 14:57:07 +00:00
Bogdan Tara c53091bec7 Bug 1629526 - Fix whitespace lint on nsWaylandDisplay.cpp CLOSED TREE 2020-04-14 17:42:03 +03:00
Martin Stransky 37e2e6954d Bug 1629526 [Wayland] Use mutex when clear mDispatcherThreadLoop, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D70848

--HG--
extra : moz-landing-system : lando
2020-04-14 13:25:12 +00:00
Bogdan Tara e2defa3249 Backed out changeset 34c45b73c707 (bug 1629602) by jrmuizel's request CLOSED TREE 2020-04-14 16:49:05 +03:00
Jeff Muizelaar 97cedcd665 Bug 1629602 - Include reason for failure when describing features. r=aosmond
This should give us more information in telemetry.

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

--HG--
extra : moz-landing-system : lando
2020-04-14 00:54:42 +00:00
Martin Stransky 1536f639a8 Bug 1628711 Remove #ifdef MOZ_WIDGET_GTK from widget/gtk, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D70391

--HG--
extra : moz-landing-system : lando
2020-04-14 12:35:34 +00:00
Cameron McCormack 91abb34d31 Bug 1333162 - Only call gdk_set_program_name in the parent process. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D70640

--HG--
extra : moz-landing-system : lando
2020-04-14 01:48:37 +00:00
Narcis Beleuzu f4695206da Backed out changeset 502e83464c91 (bug 1629602) for bustages on GfxInfoBase.h . CLOSED TREE 2020-04-14 03:51:15 +03:00
Jeff Muizelaar df9f30b0b8 Bug 1629602 - Include reason for failure when describing features. r=aosmond
This should give us more information in telemetry.

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

--HG--
extra : moz-landing-system : lando
2020-04-14 00:05:30 +00:00
Dylan Roeh 9541273b5d Bug 1619798 - Move GeckoView onLoadRequest calls to DocumentLoadListener.cpp r=snorp,mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D69594

--HG--
extra : moz-landing-system : lando
2020-04-10 16:38:48 +00:00
Chris Peterson 8b5365a15b Bug 1624786 - Replace MOZ_MUST_USE with [[nodiscard]] in widget/headless. r=bdahl
Also move MOZ_MUST_USE before function declarations' specifiers and return type. While clang and gcc's __attribute__((warn_unused_result)) can appear before, between, or after function specifiers and return types, the [[nodiscard]] attribute must precede the function specifiers.

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

--HG--
extra : moz-landing-system : lando
2020-04-08 16:41:43 +00:00
Chris Peterson 162b8c8490 Bug 1624786 - Replace MOZ_MUST_USE with [[nodiscard]] in widget/gtk. r=karlt
Also move MOZ_MUST_USE before function declarations' specifiers and return type. While clang and gcc's __attribute__((warn_unused_result)) can appear before, between, or after function specifiers and return types, the [[nodiscard]] attribute must precede the function specifiers.

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

--HG--
extra : moz-landing-system : lando
2020-04-08 16:41:43 +00:00
Chris Peterson eaafc27a70 Bug 1624786 - Replace MOZ_MUST_USE with [[nodiscard]] in widget/cocoa. r=spohl
Also move MOZ_MUST_USE before function declarations' specifiers and return type. While clang and gcc's __attribute__((warn_unused_result)) can appear before, between, or after function specifiers and return types, the [[nodiscard]] attribute must precede the function specifiers.

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

--HG--
extra : moz-landing-system : lando
2020-04-08 16:41:42 +00:00
Martin Stransky cbd149f1b6 Bug 1527976 [Wayland] Don't cancel Drag and Drop on MOZ_GTK_DRAG_RESULT_ERROR for application/x-moz-tabbrowser-tab (tab move), r=jhorak
- X11 uses MOZ_GTK_DRAG_RESULT_NO_TARGET to state 'no place' for drop. Wayland does not have protocol for it and always return MOZ_GTK_DRAG_RESULT_ERROR.
  To emulate X11 behaviour for tab D&D (application/x-moz-tabbrowser-tab mime) don't cancel D&D operation on Wayland for MOZ_GTK_DRAG_RESULT_ERROR
  to allow to create a new tab when user drops tab outside the tab bar.
- Provide some additional loging to D&D code.

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

--HG--
extra : moz-landing-system : lando
2020-04-09 14:18:41 +00:00
Kris Taeleman 990150b302 Bug 1626099 - Renewing FX_TOUCH_USED telemetry. r=chutten,botond
Differential Revision: https://phabricator.services.mozilla.com/D69840

--HG--
extra : moz-landing-system : lando
2020-04-08 20:51:57 +00:00
Andrew Osmond 23745bab40 Bug 1628817 - Revert blocking of all features with NVIDIA driver version 26.21.14.4575. r=jrmuizel
This reverts the patch landed in bug 1625857. As it turns out, the
driver version is less significant than the fact that it is a laptop
with dual GPUs. We should continue to give users with this driver
hardware acceleration for optimal performance.

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

--HG--
extra : moz-landing-system : lando
2020-04-09 18:49:43 +00:00
Emilio Cobos Álvarez 8ae896a132 Bug 1622075 - Fix a memory leak in MakePrintTarget(). r=jld,karlt
Differential Revision: https://phabricator.services.mozilla.com/D69748

--HG--
extra : moz-landing-system : lando
2020-04-09 15:11:02 +00:00
James Willcox c5411d0ed9 Bug 1627737 - Return `INPUT_RESULT_HANDLED_CONTENT` for gestures handled in subframes r=geckoview-reviewers,botond,agi
This isn't technically correct given our current definition for this
result, but it matches the spirit of what we're trying to do here.

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

--HG--
extra : moz-landing-system : lando
2020-04-08 16:14:20 +00:00
Cosmin Sabou 5bbd5314ab Backed out 2 changesets (bug 1616245) for causing a raise in browser chrome failures. CLOSED TREE
Backed out changeset 86458febcf2d (bug 1616245)
Backed out changeset 69e9b40608e3 (bug 1616245)

--HG--
extra : amend_source : b034c15ef3ade9dee6bd1b2c4b7df0804c4cf81e
2020-04-09 09:40:53 +03:00
Mike Hommey ac5b6e6cd0 Bug 1628200 - Fix config/tests/test_mozbuild_reading.py. r=rstewart
Since the test goes through all moz.build files disregarding DIRS and
the conditions that may disable directories, in some cases, moz.builds
can fail to be evaluated properly because of missing variables in
config.status. This time (because it's not the first), it's
LLVM_DLLTOOL.

After fixing that, it turns out many of the files/directories pointed to
by Files() directives were removed or moved.

While here, make the test script python3-ready.

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

--HG--
extra : moz-landing-system : lando
2020-04-09 00:24:29 +00:00
Kartikaya Gupta 30bc520fec Bug 1616245 - Make better use of the rect/size structs. r=jfkthame
No functional change here, but this improves readability by using the
Rect and Size structs' operators, rather than breaking out the x/y/width/height
components and doing operations directly.

Depends on D70232

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

--HG--
extra : moz-landing-system : lando
2020-04-08 22:02:04 +00:00
Kartikaya Gupta c4cd70e6d4 Bug 1616245 - Use GetBounds instead of mBounds. r=jfkthame
It doesn't make sense to mix mBounds with GetClientBounds(), as the windows
widget overrides both GetBounds() and GetClientBounds(). So if we're using
GetClientBounds() for the client bounds, we should be using GetBounds() for
the bounds.

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

--HG--
extra : moz-landing-system : lando
2020-04-08 22:01:26 +00:00
nicolaspacheco b16dee417b Bug 1626765 - delete 'else' after 'return'. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D70145

--HG--
extra : moz-landing-system : lando
2020-04-08 16:55:00 +00:00
Mike de Boer f33ab75520 Bug 890125 - Part 4 - Implement virtual desktop switching for Windows 10 and above. r=mhowell,emk
Differential Revision: https://phabricator.services.mozilla.com/D67825

--HG--
extra : moz-landing-system : lando
2020-04-07 11:02:56 +00:00
Mike de Boer 3490db967d Bug 890125 - Part 3 - Convert the Linux virtual desktop handling to accept string-type workspace IDs. r=stransky,nika
Differential Revision: https://phabricator.services.mozilla.com/D67824

--HG--
extra : moz-landing-system : lando
2020-04-07 20:21:14 +00:00
Mike de Boer c481cd83d4 Bug 890125 - Part 2 - Convert the OSX Spaces handling to accept string-type workspace IDs. r=mstange,nika
Differential Revision: https://phabricator.services.mozilla.com/D67823

--HG--
extra : moz-landing-system : lando
2020-04-07 11:02:10 +00:00
Mike de Boer 1ebc8eec6b Bug 890125 - Part 1 - Change Window widget base classes to return and use strings for workspace IDs, rather than integers. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D67822

--HG--
extra : moz-landing-system : lando
2020-04-07 11:01:47 +00:00
Makoto Kato 04158012da Bug 1618759 - Part 6. Don't open on-screen keyboard when inputmode is none. r=masayuki
`inputmode=none` means that OSK is closed.

`SetInputContext` doesn't call `DismissOnScreenKeyboard` directly since
`DismissOnScreenKeyboard` has no hack of Firefox VR.

Depends on D68316

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

--HG--
extra : moz-landing-system : lando
2020-04-07 22:31:16 +00:00
Makoto Kato cb21fe6467 Bug 1618759 - Part 5. Lazy check whether OSK is closed. r=masayuki
As long as I test on my environment, bug 1226148 isn't fixed. Since native
message queue has high priority, Gecko may check whether focus is changed
before changing focus to another.

So we shouldn't use native message queue for this. It is better to use idle
queue instead.

Depends on D68315

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

--HG--
extra : moz-landing-system : lando
2020-04-07 22:30:58 +00:00
Makoto Kato 8a25b6b137 Bug 1618759 - Part 4. Use InputPane to open on-screen keyboard for Windows 10 RS1+. r=masayuki
Unfortunately, current on-screen keyboard (OSK) code in Gecko doesn't work on
current Windows 10. Actually, Windows automatically control OSK when getting
focus. But this isn't good for web browser since `inputmode` spec can close
OSK by `none` value.

Windows 10 RS1 has new API (IInputPane [*1]) to control software keyboard. So
we have to use it if OS is RS1 or later.

TSF has new flag as `TS_SD_INPUTPANEMANUALDISPLAYENABLE` not to control OSK by
TSF. We should use it.

IMM doesn't have this feature to manage OSK. This will become a limitation for
`inputmode` implementation.

[*1] https://docs.microsoft.com/en-us/uwp/api/windows.ui.viewmanagement.inputpane

Depends on D68314

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

--HG--
extra : moz-landing-system : lando
2020-04-07 22:30:37 +00:00
Makoto Kato 5010b729b6 Bug 1618759 - Part 3. Allow inputmode for non-input element. r=masayuki
Current WHATWG spec is that `inputmode` attribute supports non-input element.
I would like to remove input element check for bug 142484 that is
contenteditable support.

Microsoft IME, Google IME and etc refer 1st input scope that they support, so
we will add both input scopes from `type` and `inputmode`.

Depends on D68313

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

--HG--
extra : moz-landing-system : lando
2020-04-07 22:30:30 +00:00
Makoto Kato 3b55303417 Bug 1618759 - Part 2. Support decimal and search value for inputmode. r=masayuki
Current WHATWG spec means that `numeric` is `IS_DIGITS` and `decimal` is
`IS_NUMBER`.

Depends on D68312

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

--HG--
extra : moz-landing-system : lando
2020-04-07 22:30:24 +00:00
Makoto Kato 7045529ab7 Bug 1618759 - Part 1. Use common method to set input scope. r=masayuki
Gecko has duplicated code for input scope support, so I would like to clean up
this.

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

--HG--
extra : moz-landing-system : lando
2020-04-07 22:30:19 +00:00
Randall E. Barker 1dde134b0f Bug 1626979 - Add GeckoView API for appending app notes to crash report. r=geckoview-reviewers,snorp,droeh
Differential Revision: https://phabricator.services.mozilla.com/D69662

--HG--
extra : moz-landing-system : lando
2020-04-07 23:42:42 +00:00
Emilio Cobos Álvarez 6b61f09b5d Bug 1579824 - Minor cleanup, and fixup field to be white again.
(And unify some other colors. I audited the rest for typos manually)

MANUAL PUSH: Minor reftest fix on a CLOSED TREE.
2020-04-07 18:17:12 +02:00
Andreas Farre 25ca8d7890 Bug 1620594 - Part 7: Remove TabGroup and SystemGroup. r=nika,bas
TabGroup never really made any difference in which thread something go
dispatched to. This was the intended use, but development of TabGroups
with abstract main threads never made it that far. The good thing is
that thish makes it safe to also remove to the SystemGroup and instead
switch all SystemGroup dispatches to dispatches to main thread.

Timers for setTimeout and workers were the sole users of wrapped and
throttled event targets, that those throttled queues have been moved
to the BrowsingContextGroup and are now accessed explicitly.

The SchedulerEventTarget has been removed, since there are no longer a
separate event target for every TaskCategory. Instead a
LabellingEventTarget has been added to DocGroup to handle the case
where an event is dispatched do DocGroup or when an AbstractThread is
created using a DocGroup. This means that we'll actually label more
events correctly with the DocGroup that they belong to.

DocGroups have also been moved to BrowsingContextGroup.

Depends on D67636

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

--HG--
extra : moz-landing-system : lando
2020-04-07 15:17:47 +00:00
Andreas Farre 36eaf82163 Bug 1620594 - Part 2: Use SchedulerGroup::Dispatch instead of SystemGroup::Dispatch. r=nika
Depends on D67631

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

--HG--
extra : moz-landing-system : lando
2020-04-07 15:16:33 +00:00
Emilio Cobos Álvarez 0b00e7edf3 Bug 1579824 - Make the cell-highlight colors the same as highlight. r=snorp
They're supposed to be the same, though right now they are black on white
because only highlight was overridden via prefs.

I'll fix the bugs I found yesterday in a separate bug.

Depends on D69939

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

--HG--
extra : moz-landing-system : lando
2020-04-07 13:54:26 +00:00
Emilio Cobos Álvarez 027067ffbb Bug 1579824 - Hardcode some system colors. r=snorp
This doesn't change behavior, just makes the color return what we set right now
via prefs in mobile/android/app/mobile.js.

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

--HG--
extra : moz-landing-system : lando
2020-04-07 13:55:01 +00:00
Valentin Gosu f29e4186dd Bug 1625213 - Make txt records be resolved with onLookupComplete r=dragana
This patch makes nsIDNSByTypeRecord extend nsIDNSRecord, but implementations
will safely forward the nsIDNSRecord methods to `nullptr`, meaning they will
throw an error when called.

Consumers should try to QI the nsIDNSRecord to nsIDNSByTypeRecord (or any
future types) and use that.

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

--HG--
extra : moz-landing-system : lando
2020-04-07 12:39:45 +00:00
Mike Conley f217dbb0d0 Bug 1610613 - Make Picture-in-Picture window persist across workspaces on macOS. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D69932

--HG--
extra : moz-landing-system : lando
2020-04-07 13:28:24 +00:00
Mihai Alexandru Michis 2e69b21372 Backed out 6 changesets (bug 1618759) for causing mingw bustages on TSFTextStore.cpp
CLOSED TREE

Backed out changeset 77a93a01f924 (bug 1618759)
Backed out changeset f06a8ee813cf (bug 1618759)
Backed out changeset 020258996c4a (bug 1618759)
Backed out changeset 0e3a40bf9ba8 (bug 1618759)
Backed out changeset a4dcd48616d9 (bug 1618759)
Backed out changeset 010d99db9abd (bug 1618759)
2020-04-07 16:55:00 +03:00
Makoto Kato adc03fb040 Bug 1618759 - Part 6. Don't open on-screen keyboard when inputmode is none. r=masayuki
`inputmode=none` means that OSK is closed.

`SetInputContext` doesn't call `DismissOnScreenKeyboard` directly since
`DismissOnScreenKeyboard` has no hack of Firefox VR.

Depends on D68316

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

--HG--
extra : moz-landing-system : lando
2020-04-07 13:29:28 +00:00
Makoto Kato 697c8ef8d4 Bug 1618759 - Part 5. Lazy check whether OSK is closed. r=masayuki
As long as I test on my environment, bug 1226148 isn't fixed. Since native
message queue has high priority, Gecko may check whether focus is changed
before changing focus to another.

So we shouldn't use native message queue for this. It is better to use idle
queue instead.

Depends on D68315

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

--HG--
extra : moz-landing-system : lando
2020-04-07 13:28:11 +00:00
Makoto Kato 1b72c87658 Bug 1618759 - Part 4. Use InputPane to open on-screen keyboard for Windows 10 RS1+. r=masayuki
Unfortunately, current on-screen keyboard (OSK) code in Gecko doesn't work on
current Windows 10. Actually, Windows automatically control OSK when getting
focus. But this isn't good for web browser since `inputmode` spec can close
OSK by `none` value.

Windows 10 RS1 has new API (IInputPane [*1]) to control software keyboard. So
we have to use it if OS is RS1 or later.

TSF has new flag as `TS_SD_INPUTPANEMANUALDISPLAYENABLE` not to control OSK by
TSF. We should use it.

IMM doesn't have this feature to manage OSK. This will become a limitation for
`inputmode` implementation.

[*1] https://docs.microsoft.com/en-us/uwp/api/windows.ui.viewmanagement.inputpane

Depends on D68314

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

--HG--
extra : moz-landing-system : lando
2020-04-07 13:27:33 +00:00
Makoto Kato 9621dd2ac9 Bug 1618759 - Part 3. Allow inputmode for non-input element. r=masayuki
Current WHATWG spec is that `inputmode` attribute supports non-input element.
I would like to remove input element check for bug 142484 that is
contenteditable support.

Microsoft IME, Google IME and etc refer 1st input scope that they support, so
we will add both input scopes from `type` and `inputmode`.

Depends on D68313

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

--HG--
extra : moz-landing-system : lando
2020-04-07 13:25:02 +00:00
Makoto Kato ea43168d9c Bug 1618759 - Part 2. Support decimal and search value for inputmode. r=masayuki
Current WHATWG spec means that `numeric` is `IS_DIGITS` and `decimal` is
`IS_NUMBER`.

Depends on D68312

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

--HG--
extra : moz-landing-system : lando
2020-04-07 13:23:25 +00:00
Makoto Kato f71b23fdfc Bug 1618759 - Part 1. Use common method to set input scope. r=masayuki
Gecko has duplicated code for input scope support, so I would like to clean up
this.

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

--HG--
extra : moz-landing-system : lando
2020-04-07 13:23:12 +00:00
Mihai Alexandru Michis 5c60242230 Backed out 6 changesets (bug 1350875) for causing failures in test.util.UiThreadUtils$TimeoutException
CLOSED TREE

Backed out changeset c65f2c0b6332 (bug 1350875)
Backed out changeset 5084623c0f83 (bug 1350875)
Backed out changeset 4eda0d89d8a2 (bug 1350875)
Backed out changeset 149058087816 (bug 1350875)
Backed out changeset 71ba43d7b2df (bug 1350875)
Backed out changeset e65ead196f4b (bug 1350875)
2020-04-07 16:13:53 +03:00
Xidorn Quan 6175b78a78 Bug 1350875 part 4 - Have windows notify fullscreen will change. r=jmathies
Differential Revision: https://phabricator.services.mozilla.com/D68681

--HG--
extra : moz-landing-system : lando
2020-04-02 11:39:02 +00:00
Xidorn Quan 2dcd9a0339 Bug 1350875 part 3 - Have GTK notify fullscreen will change. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D68680

--HG--
extra : moz-landing-system : lando
2020-04-02 21:42:41 +00:00
Xidorn Quan 68303a274a Bug 1350875 part 2 - Have cocoa always notify fullscreen will change. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D68679

--HG--
extra : moz-landing-system : lando
2020-04-02 11:38:43 +00:00
Xidorn Quan 35eb065a86 Bug 1350875 part 1 - Have android notify fullscreen will change. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D68678

--HG--
extra : moz-landing-system : lando
2020-04-02 11:38:35 +00:00
Edgar Chen e8b067a7e7 Bug 1615732 - Don't treat control-left-click on mac as a right-click; r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D62968

--HG--
extra : moz-landing-system : lando
2020-04-06 20:56:12 +00:00
Timothy Nikkel 144d8ddf92 Bug 1627505. Use WS_EX_LAYERED on the compositor window to prevent Direct Manipulation from finding it. r=sotaro
Differential Revision: https://phabricator.services.mozilla.com/D69765

--HG--
extra : moz-landing-system : lando
2020-04-06 18:25:28 +00:00
Bogdan Tara 86041bd513 Backed out 4 changesets (bug 890125) for central bustages complaining about nsWindow.cpp
Backed out changeset 68475f12d4f1 (bug 890125)
Backed out changeset 6e2c1facb7e0 (bug 890125)
Backed out changeset 17b15e227d3b (bug 890125)
Backed out changeset 6e71761c1018 (bug 890125)
2020-04-07 01:31:47 +03:00
Cosmin Sabou 3b3f1af25e Backed out 7 changesets (bug 1615732) for bc failures on browser_ext_pageAction_click_types.js. CLOSED TREE
Backed out changeset 031b8abf43a8 (bug 1615732)
Backed out changeset 297d82b338dc (bug 1615732)
Backed out changeset bbcb173e6c44 (bug 1615732)
Backed out changeset d7c5824d4579 (bug 1615732)
Backed out changeset f648cf0653a7 (bug 1615732)
Backed out changeset fcd441a2a860 (bug 1615732)
Backed out changeset fa861e50f198 (bug 1615732)

--HG--
extra : histedit_source : 16a05a43f3a9666c4fcf244062c28a5dc81061fd
2020-04-06 23:49:58 +03:00
Brian Grinstead 30b9da5519 Bug 1623992 - Automated rewrite from chrome://global/skin/ to chrome://global/skin/global.css in markup r=marionette-reviewers,perftest-reviewers,mossop,whimboo,sparky
This was generated with

```
cp .gitignore .rgignore
rg -l -g '*.{html,xhtml}' 'href="chrome://global/skin/"' | xargs sed -i "" 's/href\="chrome:\/\/global\/skin\/"/href\="chrome:\/\/global\/skin\/global.css"/g'
```

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

--HG--
extra : moz-landing-system : lando
2020-04-03 22:23:23 +00:00
Edgar Chen 8ea93cf7b3 Bug 1615732 - Don't treat control-left-click on mac as a right-click; r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D62968

--HG--
extra : moz-landing-system : lando
2020-04-01 05:53:43 +00:00
Mike de Boer 6fc95824b2 Bug 890125 - Part 4 - Implement virtual desktop switching for Windows 10 and above. r=mhowell,emk
Differential Revision: https://phabricator.services.mozilla.com/D67825

--HG--
extra : moz-landing-system : lando
2020-04-06 13:09:19 +00:00
Mike de Boer c1863e1f34 Bug 890125 - Part 3 - Convert the Linux virtual desktop handling to accept string-type workspace IDs. r=stransky,nika
Differential Revision: https://phabricator.services.mozilla.com/D67824

--HG--
extra : moz-landing-system : lando
2020-04-06 12:56:51 +00:00
Mike de Boer 08cad74e72 Bug 890125 - Part 2 - Convert the OSX Spaces handling to accept string-type workspace IDs. r=mstange,nika
Differential Revision: https://phabricator.services.mozilla.com/D67823

--HG--
extra : moz-landing-system : lando
2020-04-06 12:56:38 +00:00
Mike de Boer 317a8e211a Bug 890125 - Part 1 - Change Window widget base classes to return and use strings for workspace IDs, rather than integers. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D67822

--HG--
extra : moz-landing-system : lando
2020-04-06 12:56:25 +00:00
Martin Stransky bf0f8f24a0 Bug 1627469 [Wayland] [Wayland] Don't use oversized wl_surface sizes, r=jhorak
- Calculate size of wl_buffer as an intersection of widget size and nsWindow bound size.
  We can't use wl_buffer bigger than nsWindow bound as it leads to rendering artifacts.

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

--HG--
extra : moz-landing-system : lando
2020-04-06 07:01:33 +00:00
Sylvestre Ledru 0aa6f03cf3 Bug 1519636 - Reformat recent changes to the Google coding style r=jgilbert
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2020-04-05 13:34:58 +00:00
Botond Ballo 400b5015cc Bug 1627482 - Fix non-unified build errors in gfx/tests. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D69733

--HG--
extra : moz-landing-system : lando
2020-04-05 03:50:23 +00:00
Oana Pop Rus 715930ff5b Backed out 4 changesets (bug 890125) for Windows MinGW build bustages failures. on a CLOSED TREE
Backed out changeset 1c8115a9a684 (bug 890125)
Backed out changeset eceeef4fc062 (bug 890125)
Backed out changeset cd850f6d0b0b (bug 890125)
Backed out changeset 08359730557d (bug 890125)
2020-04-03 22:44:14 +03:00
jayati 95217fe3b5 Bug 1606554 - Remove accidently introduced stub gdk_window_get_visible_region. r=ntim
Differential Revision: https://phabricator.services.mozilla.com/D69508

--HG--
extra : moz-landing-system : lando
2020-04-03 11:09:12 +00:00
Mike de Boer befee7a1de Bug 890125 - Part 4 - Implement virtual desktop switching for Windows 10 and above. r=mhowell,emk
Differential Revision: https://phabricator.services.mozilla.com/D67825

--HG--
extra : moz-landing-system : lando
2020-04-03 10:21:33 +00:00
Mike de Boer 2c14753eb4 Bug 890125 - Part 3 - Convert the Linux virtual desktop handling to accept string-type workspace IDs. r=stransky,nika
Differential Revision: https://phabricator.services.mozilla.com/D67824

--HG--
extra : moz-landing-system : lando
2020-04-03 10:20:57 +00:00
Mike de Boer 0f7ed04e2f Bug 890125 - Part 2 - Convert the OSX Spaces handling to accept string-type workspace IDs. r=mstange,nika
Differential Revision: https://phabricator.services.mozilla.com/D67823

--HG--
extra : moz-landing-system : lando
2020-04-03 10:20:20 +00:00
Mike de Boer f18c2f3af4 Bug 890125 - Part 1 - Change Window widget base classes to return and use strings for workspace IDs, rather than integers. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D67822

--HG--
extra : moz-landing-system : lando
2020-04-03 10:19:47 +00:00
Martin Stransky 3c3825bf9d Bug 1627098 [Linux] Provide more clipboard logging, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D69452

--HG--
extra : moz-landing-system : lando
2020-04-03 07:53:43 +00:00
Andrew Osmond fd8e276100 Bug 1625857 - Block all features with NVIDIA driver version 26.21.14.4575. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D69434

--HG--
extra : moz-landing-system : lando
2020-04-02 19:57:04 +00:00
Edwin Takahashi 5dc9f60364 Bug 1599943 - update pixel count expectations and re-enable test_scrollbar_colors.html for linux1804 r=jmaher
Changes:

Due to scrollbar and other UI element changes in linux1804 this test was permafailing and was marked as such.

Now that migration has completed for mochitest-plain, re-enable the test with updated pixel count expectations.

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

--HG--
extra : moz-landing-system : lando
2020-04-02 22:56:36 +00:00
Kartikaya Gupta 66b826a63e Bug 1626318 - Protect against dataSize being absurdly large. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D69264

--HG--
extra : moz-landing-system : lando
2020-04-01 21:22:57 +00:00
Andrew McCreight f1fe1626ec Bug 1615109, part 1 - Get rid of the unused content process share picker registration. r=marcosc
This file has an entry in kWidgetContracts for kNS_SHAREPICKER_CID, but not in
kWidgetCIDs, so there's no implementation. I think this is causing the "Could
not map contract" warning message. We never use the share picker in the content
process, so just remove this.

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

--HG--
extra : moz-landing-system : lando
2020-04-01 11:04:03 +00:00
Kartikaya Gupta 4e4cd29c90 Bug 1616245 - Fix unit mismatches by applying an appropriate scaling factor. r=jfkthame
Depends on D67696

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

--HG--
extra : moz-landing-system : lando
2020-04-01 10:50:40 +00:00
Kartikaya Gupta 19fc8e5c6a Bug 1616245 - Change a few nsIWidget functions to take strongly-typed arguments. r=jfkthame
These functions all have a single call site, and the call site clearly always
has rect in DesktopPixel units. So it makes sense to encode this in the API,
and propagate the strongly typed units.

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

--HG--
extra : moz-landing-system : lando
2020-04-01 11:50:47 +00:00
sonakshi a6f08454e0 Bug 1622619 - Replace URIParams with nsIURI in PContent.ipdl r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D67729

--HG--
extra : moz-landing-system : lando
2020-03-31 18:47:30 +00:00
Razvan Maries 40412d7928 Backed out changeset 2515c5b5a0d2 (bug 1622619) for build bustages. CLOSED TREE 2020-03-31 17:18:38 +03:00
sonakshi fc4a38cd03 Bug 1622619 - Replace URIParams with nsIURI in PContent.ipdl r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D67729

--HG--
extra : moz-landing-system : lando
2020-03-31 13:38:55 +00:00
Martin Stransky 1c00ea0aa0 Bug 1625296 [Wayland] Enable basic compositor smooth drawing by widget.wayland-smooth-rendering pref, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D68457

--HG--
extra : moz-landing-system : lando
2020-03-30 21:12:37 +00:00
Bogdan Tara e93ba090b8 Backed out changeset 2a1b5f29d43d (bug 1625296) for bustages complaining about WindowSurfaceWayland.cpp CLOSED TREE 2020-03-30 17:26:10 +03:00
Bogdan Tara 09fa9dbc7c Backed out changeset 61cc7740daa3 (bug 1623974) for bustages related to nsWindow.cpp CLOSED TREE 2020-03-30 17:23:10 +03:00
Christoph Walcher 14aaa55210 Bug 1624251 - Fix use-after-free in nsMacFinderProgress r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D68667

--HG--
extra : moz-landing-system : lando
2020-03-28 01:46:29 +00:00
Martin Stransky 822447aeb7 Bug 1625296 [Wayland] Enable basic compositor smooth drawing by widget.wayland-smooth-rendering pref, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D68457

--HG--
extra : moz-landing-system : lando
2020-03-30 13:40:22 +00:00
Jan Horak 75273113e5 Bug 1623974 [wayland] Attach popups to anchor rects; r=stransky
If we want correct popup placement we need to use the right anchor rect
for gdk_window_move_to_rect under Wayland. Patch exports the anchor rect from the
nsMenuPopupFrame to be used in nsWindow.

This patch also fixes popup overflowing the screen by using the size returned from
gdk_window_move_to_rect for the nsMenuPopupFrame.

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

--HG--
extra : moz-landing-system : lando
2020-03-30 13:29:47 +00:00
Makoto Kato 86298c9983 Bug 1618754 - Part 1. Support inputmode=none to hide software keyboard. r=geckoview-reviewers,snorp
`inputmode=none` has to close software keyboard. `inputmode` value is lower
case except to `mozAwesomebar` by bug 1618763, so we don't have to use
`equalsIgnoreCase` for `inputmode`.

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

--HG--
extra : moz-landing-system : lando
2020-03-26 18:22:47 +00:00
André Bargull 14ca007916 Bug 1625138 - Part 41: Remove no longer needed includes for mozilla/TypeTraits. r=froydnj
Also adds missing includes in some files, these were previously only transivitely
included through mozilla/TypeTraits.h.

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

--HG--
extra : moz-landing-system : lando
2020-03-28 16:00:09 +00:00
André Bargull 8d7aa62e32 Bug 1625138 - Part 29: Replace mozilla::IsVoid with std::is_void. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D68548

--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:19 +00:00
André Bargull cae4e1fdbc Bug 1606962: Replace mozilla::EnableIf with std::enable_if. r=froydnj,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D68401

--HG--
extra : moz-landing-system : lando
2020-03-28 13:35:31 +00:00
André Bargull 1be056677a Bug 1625138 - Part 26: Replace mozilla::Conditional with std::conditional. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D68381

--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:18 +00:00
André Bargull d53798e749 Bug 1625138 - Part 23: Replace mozilla::RemovePointer with std::remove_pointer. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D68378

--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:17 +00:00
André Bargull 13e9ad3137 Bug 1625138 - Part 14: Replace mozilla::IsSigned with std::is_signed. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D68369

--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:15 +00:00
André Bargull b0c9db06e3 Bug 1625138 - Part 12: Replace mozilla::IsPointer with std::is_pointer. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D68366

--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:14 +00:00
Kartikaya Gupta 7d2c8af30b Bug 1622360 - Remove SLGuidAndRenderRoot and convert remaining uses to ScrollableLayerGuid. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D68400

--HG--
extra : moz-landing-system : lando
2020-03-27 17:44:21 +00:00
Martin Stransky 39bcf103db Bug 1625294 [Wayland] Ship testing dmabuf preferences on nightly only, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D68455

--HG--
extra : moz-landing-system : lando
2020-03-27 08:49:47 +00:00
Chris Peterson c6e20cbb8c Bug 1624786 - Replace MOZ_MUST_USE with [[nodiscard]] in widget/android. r=snorp
Also move MOZ_MUST_USE before function declarations' specifiers and return type. While clang and gcc's __attribute__((warn_unused_result)) can appear before, between, or after function specifiers and return types, the [[nodiscard]] attribute must precede the function specifiers.

Depends on D68146

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

--HG--
extra : moz-landing-system : lando
2020-03-25 15:13:43 +00:00
Chris Peterson fd22d5d367 Bug 1624786 - Replace MOZ_MUST_USE with [[nodiscard]] in widget and widget/windows. r=jmathies
Also move MOZ_MUST_USE before function declarations' specifiers and return type. While clang and gcc's __attribute__((warn_unused_result)) can appear before, between, or after function specifiers and return types, the [[nodiscard]] attribute must precede the function specifiers.

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

--HG--
extra : moz-landing-system : lando
2020-03-26 18:48:30 +00:00
Stephen A Pohl eba159d415 Bug 1625199: Switch to non-deprecated API to load the MainMenu.nib. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D68447

--HG--
extra : moz-landing-system : lando
2020-03-26 19:56:33 +00:00
Emilio Cobos Álvarez a214514a58 Bug 1624080 - Simplify the implementation of HasAuthorSpecifiedRules. r=heycam
This patch computes the author-specified properties during the CSS cascade, and
removes the complex rule-tree-based implementation that tries to do the cascade
again.

This changes behavior in two ways, one of them which is not observable to
content, I believe:

 * revert now re-enables the native styling. This was brought up in
   https://github.com/w3c/csswg-drafts/issues/4777 and I think it is a bug-fix.

   This is observable to content, and I'm adding a test for it.

 * We don't look at inherited styles from our ancestors when `inherit` is
   specified in a non-author stylesheet. This was introduced for bug 452969 but
   we don't seem to inherit background anymore for file controls or such. It
   seems back then file controls used to have a text-field.

   I audited forms.css and ua.css and we don't explicitly inherit
   padding / border / background-color into any nested form control.

We keep the distinction between border/background and padding, because the later
has some callers. I think we should try to align with Chromium in the long run
and remove the padding bit.

We need to give an appearance to the range-thumb and such so that we can assert
that we don't call HasAuthorSpecifiedRules on non-themed stuff. I used a new
internal value for that.

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

--HG--
extra : moz-landing-system : lando
2020-03-26 16:48:01 +00:00
Razvan Maries 7155f2665a Backed out changeset ac0d06c0ca93 (bug 1624080) for assertion failures. CLOSED TREE 2020-03-26 16:52:18 +02:00
Masayuki Nakano 11c1ccc0d7 Bug 1596916 - Make `NativeKey` stop dispatching `eKeyPress` event when the key does not produce a character with `AltGr` key r=m_kato,smaug
On Windows, `AltGr` modifier state is represented with activating both
`Alt` and `Ctrl` modifiers.  I.e., when `AltGr` is pressed, any shortcut
keys whose modifier require `Control` and/or `Alt` because `NativeKey`
needs to consume both flags and set modifier state to only `AltGraph`.

That means that we don't need to dispatch `eKeyPress` event when `AltGr` key
is pressed and the key does not produce a character since we've stopped
dispatching non-printable `keypress` events on web content.

See the automated test changes for the detail in chrome script handling for
its detail.

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

--HG--
extra : moz-landing-system : lando
2020-03-26 14:03:44 +00:00
Emilio Cobos Álvarez c556351cd0 Bug 1624080 - Simplify the implementation of HasAuthorSpecifiedRules. r=heycam
This patch computes the author-specified properties during the CSS cascade, and
removes the complex rule-tree-based implementation that tries to do the cascade
again.

This changes behavior in two ways, one of them which is not observable to
content, I believe:

 * revert now re-enables the native styling. This was brought up in
   https://github.com/w3c/csswg-drafts/issues/4777 and I think it is a bug-fix.

   This is observable to content, and I'm adding a test for it.

 * We don't look at inherited styles from our ancestors when `inherit` is
   specified in a non-author stylesheet. This was introduced for bug 452969 but
   we don't seem to inherit background anymore for file controls or such. It
   seems back then file controls used to have a text-field.

   I audited forms.css and ua.css and we don't explicitly inherit
   padding / border / background-color into any nested form control.

We keep the distinction between border/background and padding, because the later
has some callers. I think we should try to align with Chromium in the long run
and remove the padding bit.

We need to give an appearance to the range-thumb and such so that we can assert
that we don't call HasAuthorSpecifiedRules on non-themed stuff. I used a new
internal value for that.

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

--HG--
extra : moz-landing-system : lando
2020-03-26 13:23:42 +00:00
Martin Stransky 86cb8bf916 Bug 1624921 [Linux/X11] Use CSD for PIP windows only, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D68330

--HG--
extra : moz-landing-system : lando
2020-03-26 12:08:26 +00:00
Martin Stransky f39d91ec59 Bug 1624745 [Wayland] Handle error states when wayland surfaces are created, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D68163

--HG--
extra : moz-landing-system : lando
2020-03-26 12:08:03 +00:00
Martin Stransky 4d1730dd79 Bug 1612377 [Wayland] Update opaque region and widget scale factor when screen DPI changes, r=jhorak
- Integrate scale factor setup to moz_container_get_wl_surface() and don't call it explicitly.
- No need to set it explicitly at nsWindow::GetWaylandSurface().
- Update client offset when scale changes in CSD mode by UpdateClientOffsetFromCSDWindow().
- Update scale factor/opaque region on EGL immediately.

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

--HG--
extra : moz-landing-system : lando
2020-03-26 12:12:48 +00:00
Martin Stransky f30e2a9e31 Bug 1612377 [Wayland] Remove moz_container_set_accelerated(), r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D68351

--HG--
extra : moz-landing-system : lando
2020-03-26 12:12:40 +00:00
Emilio Cobos Álvarez 8fb3d13c4e Bug 1624436 - Don't include GTK widget padding in outline: auto size. r=karlt,stransky
To paint outline: auto, we paint the focused border of a GTK_ENTRY_PAINT.

We're also adding the padding of the entry, and that's wrong and causes
undesirable padding that looks bogus.

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

--HG--
extra : moz-landing-system : lando
2020-03-26 10:23:39 +00:00
Masayuki Nakano 3fd73c16fb Bug 1589497 - Make PendingAction of TSFStore copy of key message r=m_kato
`TSFTextStore::sHandlingKeyMsg` refers pointer of struct, but referred via
`TSFTextStore::PendingAction` so that we should make it has a copy of
`sHandlingKeyMsg` because of for async handling.

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

--HG--
extra : moz-landing-system : lando
2020-03-26 07:33:37 +00:00
Andrew Osmond 8aa78032a6 Bug 1624858 - Fix graphics blocklist not recent Windows 10 comparison check. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D68200

--HG--
extra : moz-landing-system : lando
2020-03-25 14:12:56 +00:00
Emilio Cobos Álvarez e13b4495b3 Bug 1624708 - Make non-native theme keyboard navigable. r=spohl
By painting focus colors. I suspect this was mostly an oversight? But it is the
most obvious issue I always find with this theme.

I followed active > focus > hover, which seems to match what GTK does (and makes
sense, generally).

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

--HG--
extra : moz-landing-system : lando
2020-03-24 22:51:26 +00:00
Emilio Cobos Álvarez 53477db16b Bug 1624696 - Respect padding for all elements except checkbox/radio. r=spohl,mstange
Only button / menulist-button were missing from the hard-coded if condition. I
don't think we ever want to override author padding, and this can cause compat
issues as the one in this bug.

I'm making HasAuthorSpecifiedRules fast in bug 1624080, btw.

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

--HG--
extra : moz-landing-system : lando
2020-03-24 22:51:26 +00:00
Narcis Beleuzu 464f343178 Backed out changeset f3c5f5a1b35d (bug 1624696) for wpt failures on baseline-alignment-and-overflow.tentative.html . CLOSED TREE 2020-03-25 00:24:22 +02:00
Narcis Beleuzu 2f0ac811bf Backed out changeset 0ee82dc106f2 (bug 1624708) for reftest failure on 359903-1.html . CLOSED TREE 2020-03-25 00:22:30 +02:00
Emilio Cobos Álvarez 403e32fa76 Bug 1624708 - Make non-native theme keyboard navigable. r=spohl
By painting focus colors. I suspect this was mostly an oversight? But it is the
most obvious issue I always find with this theme.

I followed active > focus > hover, which seems to match what GTK does (and makes
sense, generally).

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

--HG--
extra : moz-landing-system : lando
2020-03-24 21:01:34 +00:00
Emilio Cobos Álvarez e1dadb10e3 Bug 1624696 - Respect padding for all elements except checkbox/radio. r=spohl,mstange
Only button / menulist-button were missing from the hard-coded if condition. I
don't think we ever want to override author padding, and this can cause compat
issues as the one in this bug.

I'm making HasAuthorSpecifiedRules fast in bug 1624080, btw.

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

--HG--
extra : moz-landing-system : lando
2020-03-24 21:02:12 +00:00
Makoto Kato dc6a8410d1 Bug 1618763 - Part 2. Use GtkInputPurpose and GtkInputHints by inputmode. r=masayuki
Let's use GtkInputPurpose and GtkInputHints by inputmode for software keyboard.

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

--HG--
extra : moz-landing-system : lando
2020-03-23 10:36:53 +00:00
Sylvestre Ledru 734f79b541 Bug 1624237 - Run misc-unused-using-decls - Remove useless declarations r=andi
$ ./mach static-analysis check --checks="-*, misc-unused-using-decls" --fix <path>

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

--HG--
extra : moz-landing-system : lando
2020-03-23 13:15:33 +00:00
Martin Stransky 8430fa3cd2 Bug 1623097 [Linux] Make widget aspect ratio configurable r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D67166

--HG--
extra : moz-landing-system : lando
2020-03-23 12:12:55 +00:00
Martin Stransky b263e97e9f Bug 1624199 [Linux/X11] Use resize workaround on X11 to avoid KDE regression, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D67805

--HG--
extra : moz-landing-system : lando
2020-03-23 10:21:25 +00:00
Dorel Luca c8058b7dd4 Backed out 2 changesets (bug 1618763) for build bustage in checkouts/gecko/widget/gtk/IMContextWrapper.cpp. CLOSED TREE
Backed out changeset 0b9d1afee478 (bug 1618763)
Backed out changeset ac1ff4be2662 (bug 1618763)
2020-03-23 09:35:16 +02:00
Makoto Kato a416d8ed45 Bug 1618763 - Part 2. Use GtkInputPurpose and GtkInputHints by inputmode. r=masayuki
Let's use GtkInputPurpose and GtkInputHints by inputmode for software keyboard.

Depends on D67770

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

--HG--
extra : moz-landing-system : lando
2020-03-23 07:20:05 +00:00
Simon Giesecke 58d0171406 Bug 1620632 - Ensure nsTArray_Impl only declares a copy-constructor/assignment operator if E is copy-constructible. r=froydnj
To correctly implement this, it must be known on instantiation whether E is
copy-constructible, which is not the case if only a forward declaration is
available. This can be resolved either by making sure a full definition of E is
available, which is preferable. But in cases where this is not (easily) possible,
the information can be explicitly provided by the MOZ_DECLARE_COPY_CONSTRUCTIBLE
and MOZ_DECLARE_NON_COPY_CONSTRUCTIBLE macros. In particular, declarations for
IPDL-declared types are added to nsTArray.h itself, like it was already done
for MOZ_DECLARE_RELOCATE_USING_MOVE_CONSTRUCTOR.

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

--HG--
extra : moz-landing-system : lando
2020-03-20 17:13:51 +00:00
Jonathan Kew f2b9997dda Bug 1587953 - Improve Gtk theme handling for some widgets in vertical writing-modes. r=jmathies
Differential Revision: https://phabricator.services.mozilla.com/D67289

--HG--
extra : moz-landing-system : lando
2020-03-19 19:29:55 +00:00
Oana Pop Rus 1f4abcaa1a Backed out changeset b8205184278a (bug 1587953) for crashtests/1547420-1.html on a CLOSED TREE 2020-03-19 20:18:31 +02:00
Eric Rahm 2ebdb299d2 Bug 1623181 - Remove nsAutoPtr usage from widget/gtk. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D67243

--HG--
extra : moz-landing-system : lando
2020-03-18 12:30:50 +00:00
Jonathan Kew d33a8b4407 Bug 1587953 - Improve Gtk theme handling for some widgets in vertical writing-modes. r=jmathies
Differential Revision: https://phabricator.services.mozilla.com/D67289

--HG--
extra : moz-landing-system : lando
2020-03-19 15:30:32 +00:00
Emilio Cobos Álvarez 04828e3a4a Bug 253870 - Make disabled form controls selectable. r=masayuki,MarcoZ
This rejiggers a bit the way selection focus is handled so that focusing a
disabled form control with the mouse handles selection properly, and hides the
document selection and so on.

This matches the behavior of other browsers as far as I can tell.

Given now readonly and disabled editors behave the same, we can simplify a bit
the surrounding editor code.

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

--HG--
extra : moz-landing-system : lando
2020-03-19 13:18:16 +00:00
Martin Stransky 66791c6155 Bug 1623106 [Linux/Gtk] Don't use window resize workaround for Gtk >= 3.24, r=jhorak
We have a workaround for https://gitlab.gnome.org/GNOME/gtk/issues/1044 which is already fixed
in Gtk 3.24 and causes resize regression there so let's remove it.

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

--HG--
extra : moz-landing-system : lando
2020-03-19 07:45:04 +00:00
Masayuki Nakano b4dde683df Bug 1614252 - Don't allow Korean IMEs of Apple to consume mouse events when there is no composition r=m_kato
The bugs is reproducible only with all Korean IMEs of Apple only on Catalina.
Until Apple fixes the bug, we should not allow the Korean IMEs to consume
mouse events.  (I think that we should keep notifying all mouse events for
backward compatibility.)

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

--HG--
extra : moz-landing-system : lando
2020-03-19 00:57:02 +00:00
Martin Stransky c811449120 Bug 1623060 [Wayland] Respect GtkWidget size then committing to wayland surface, r=jhorak
Mutter 3.36 requests exact match of wl_surface/wl_subsurface size so we need to respect
wl_surface size (GtkWidget size) and create a wl_subsurface with the same size.

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

--HG--
extra : moz-landing-system : lando
2020-03-18 09:43:34 +00:00
Michael 143adb8792 Bug 1619154 - Added .webp to supported image file types so that it is possible to upload .webp files. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D67026

--HG--
extra : moz-landing-system : lando
2020-03-18 06:14:10 +00:00
Emilio Cobos Álvarez 069fb5d5f9 Bug 1622893 - Don't use background color for 3d colors on GTK. r=stransky
On high contrast themes, we avoid using the colors from the author to ensure
contrast.

We allow the border-style though, and that unfortunately means that:

  <input type=text style="border: 1px solid black">

Ends up rendering like:

  <input type=text style="border-style: solid; border-width: 1px">

Which for a theme with a white background means that we'll render a white
border which users can't see, and is unfortunate.

Hard-code these colors, as using the background color for the light variant
doesn't seem right anyway, and the dark variant was hard-coded already.

These colors are taken from the cocoa widget. You can see the change in colors
with something like:

  <input type=text style="border-width: 2px">

For default themes it makes the colors a bit less subtle. But I don't think it
matters all that much in practice since the fallback unthemed border is very
rare on the web these days.

The rendering here is still not great, to be clear (we may want to tweak the
high-contrast heuristics here), but it's way better than invisible borders.

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

--HG--
extra : moz-landing-system : lando
2020-03-17 17:54:09 +00:00
Marc Streckfuss 59a971229a Bug 1620340 - part4: Implement SetMediaMetadata() for the WindowsSMTCProvider, r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D66587

--HG--
extra : moz-landing-system : lando
2020-03-17 01:23:43 +00:00
Marc Streckfuss 673ce25897 Bug 1620340 - part1: Implement SetMediaMetadata() for the MPRISServiceHandler, r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D65801

--HG--
extra : moz-landing-system : lando
2020-03-11 15:47:09 +00:00
Brindusan Cristian 85fc50fbee Backed out changeset 5497bb642dfd (bug 1622893) for wpt failures at the-fieldset-and-legend-elements/fieldset-default-style.html. CLOSED TREE 2020-03-17 19:42:01 +02:00
Emilio Cobos Álvarez 3c055e92e1 Bug 1622893 - Don't use background color for 3d colors on GTK. r=stransky
On high contrast themes, we avoid using the colors from the author to ensure
contrast.

We allow the border-style though, and that unfortunately means that:

  <input type=text style="border: 1px solid black">

Ends up rendering like:

  <input type=text style="border-style: solid; border-width: 1px">

Which for a theme with a white background means that we'll render a white
border which users can't see, and is unfortunate.

Hard-code these colors, as using the background color for the light variant
doesn't seem right anyway, and the dark variant was hard-coded already.

These colors are taken from the cocoa widget. You can see the change in colors
with something like:

  <input type=text style="border-width: 2px">

For default themes it makes the colors a bit less subtle. But I don't think it
matters all that much in practice since the fallback unthemed border is very
rare on the web these days.

The rendering here is still not great, to be clear (we may want to tweak the
high-contrast heuristics here), but it's way better than invisible borders.

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

--HG--
extra : moz-landing-system : lando
2020-03-17 16:01:35 +00:00
Narcis Beleuzu 17acc84da8 Backed out changeset ffafdc7c9f84 (bug 1622893) for wpt failures on fieldset-default-style.html . CLOSED TREE 2020-03-17 17:35:20 +02:00
Jeff Muizelaar 56b72e27ed Bug 1622959. Expand WebRender on Intel battery to medium screens. r=aosmond
We'll let this ride into early beta

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

--HG--
extra : moz-landing-system : lando
2020-03-17 10:51:24 +00:00
Emilio Cobos Álvarez 5cf27f7675 Bug 1622893 - Don't use background color for 3d colors on GTK. r=stransky
On high contrast themes, we avoid using the colors from the author to ensure
contrast.

We allow the border-style though, and that unfortunately means that:

  <input type=text style="border: 1px solid black">

Ends up rendering like:

  <input type=text style="border-style: solid; border-width: 1px">

Which for a theme with a white background means that we'll render a white
border which users can't see, and is unfortunate.

Hard-code these colors, as using the background color for the light variant
doesn't seem right anyway, and the dark variant was hard-coded already.

These colors are taken from the cocoa widget. You can see the change in colors
with something like:

  <input type=text style="border-width: 2px">

For default themes it makes the colors a bit less subtle. But I don't think it
matters all that much in practice since the fallback unthemed border is very
rare on the web these days.

The rendering here is still not great, to be clear (we may want to tweak the
high-contrast heuristics here), but it's way better than invisible borders.

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

--HG--
extra : moz-landing-system : lando
2020-03-17 13:50:58 +00:00
Chris Fronk d5b004443b Bug 1143478 - Rename mozilla::Pair to CompactPair. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D64511

--HG--
rename : mfbt/Pair.h => mfbt/CompactPair.h
extra : moz-landing-system : lando
2020-03-17 12:42:12 +00:00
alwu 252ad6b503 Bug 1582508 - part5 : replace 'PlaybackState' with 'MediaSessionPlaybackState'. r=chunmin
`PlaybackState` and `MediaSessionPlaybackState` are actually quite similar, and we don't want to have to many states to confuse reader and do unnecessary tranform between two states. Therefore, replaceing  `PlaybackState` with `MediaSessionPlaybackState`.

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

--HG--
extra : moz-landing-system : lando
2020-03-17 00:03:55 +00:00
Kenny Levinsen 510af72a67 Bug 1614212 - Migrate global VsyncSource users correctly on frame rate change r=sotaro
CompositorVsyncDispatcher holds a reference to the VsyncSource, so it must be informed on change.

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

--HG--
extra : moz-landing-system : lando
2020-03-16 23:24:39 +00:00
Mihai Alexandru Michis 58bc354025 Backed out changeset 9eeee9ec66d9 (bug 253870) for causing failures in browser_bug1261299.js
CLOSED TREE
2020-03-16 22:32:41 +02:00
Emilio Cobos Álvarez 9f28f89085 Bug 253870 - Make disabled form controls selectable. r=masayuki,MarcoZ
This rejiggers a bit the way selection focus is handled so that focusing a
disabled form control with the mouse handles selection properly, and hides the
document selection and so on.

This matches the behavior of other browsers as far as I can tell.

Given now readonly and disabled editors behave the same, we can simplify a bit
the surrounding editor code.

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

--HG--
extra : moz-landing-system : lando
2020-03-16 17:41:07 +00:00
Simon Giesecke cb0734d274 Bug 1613985 - Use default for equivalent-to-default constructors/destructors in widget. r=jmathies
Differential Revision: https://phabricator.services.mozilla.com/D66012

--HG--
extra : moz-landing-system : lando
2020-03-16 10:56:57 +00:00
Bogdan Tara c60fd3fdd2 Backed out 4 changesets (bug 1613985) for causing build bustages CLOSED TREE
Backed out changeset fba0caac746c (bug 1613985)
Backed out changeset 8605d7a19107 (bug 1613985)
Backed out changeset 41e858fbf235 (bug 1613985)
Backed out changeset 847433cf1e0a (bug 1613985)
2020-03-16 12:41:41 +02:00
Simon Giesecke 2d961c08ab Bug 1613985 - Use default for equivalent-to-default constructors/destructors in widget. r=jmathies
Differential Revision: https://phabricator.services.mozilla.com/D66012

--HG--
extra : moz-landing-system : lando
2020-03-16 09:14:12 +00:00
Makoto Kato edc87f1d99 Bug 1613804 - InputConnection.finishComposingText should commit composition text. r=geckoview-reviewers,snorp
Gecko don't commit composition when software keyboard calls
InputConnection.finishComposingText. It is incompatible with Blink's behaviour.

BaseInputConnection.finishComposingText() implementation is the following.

1. Begin batch edit.
2. Remove all composition span flag.
3. End batch edit.

So if no composition after batch edit is finished, we should commit it on Gecko
to synchronize composition state.

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

--HG--
extra : moz-landing-system : lando
2020-03-13 18:01:50 +00:00
Coroiu Cristina 9cec9676e6 Backed out changeset ef75f461147c (bug 1614212) for GTest failures 2020-03-16 03:52:15 +02:00
Kenny Levinsen a3358b92f4 Bug 1614212 - Migrate global VsyncSource users correctly on frame rate change r=sotaro
CompositorVsyncDispatcher holds a reference to the VsyncSource, so it must be informed on change.

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

--HG--
extra : moz-landing-system : lando
2020-03-16 00:05:20 +00:00
James Willcox 97a1646a17 Bug 1619778 - Remove unused `GeckoThread#waitOnGecko` methods. r=geckoview-reviewers,aklotz
Differential Revision: https://phabricator.services.mozilla.com/D66584

--HG--
extra : moz-landing-system : lando
2020-03-12 15:33:57 +00:00
Jessie Bonisteel 7a871da043 Bug 1615049 - Shipping WebRender to modern intel laptops with small screen. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D66643

--HG--
extra : moz-landing-system : lando
2020-03-13 19:59:43 +00:00
Andreea Pavel ffe2fa6ae0 Backed out changeset 180f1350fdd3 (bug 1615049) for build bustages at /GfxDriverInfo.cpp on a CLOSED TREE 2020-03-13 21:23:56 +02:00
Jessie Bonisteel 37e2c5ab60 Bug 1615049 - Shipping WebRender to modern intel laptops with small screen. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D66643

--HG--
extra : moz-landing-system : lando
2020-03-13 18:35:55 +00:00
Mihai Alexandru Michis 611150ca29 Backed out changeset 8bc3cd786136 (bug 1614212) for causing leaks.
CLOSED TREE
2020-03-13 19:21:34 +02:00
Kenny Levinsen 04165219d8 Bug 1614212 - Migrate global VsyncSource users correctly on frame rate change r=sotaro
CompositorVsyncDispatcher holds a reference to the VsyncSource, so it must be informed on change.

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

--HG--
extra : moz-landing-system : lando
2020-03-13 16:04:36 +00:00
Mike Conley 53803bd857 Bug 1607882 - Picture-in-Picture windows should be able to enter fullscreen on Linux GTK. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D66623

--HG--
extra : moz-landing-system : lando
2020-03-13 08:26:59 +00:00
Jeff Muizelaar a091f10bb0 Bug 1615420. Disable DirectComposition on AMD and older Intel drivers on beta & release. r=aosmond
This is similar to a change that landed directly into 74. We don't want to
roll-out to these users yet and we don't want to have to think about it every
release.

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

--HG--
extra : moz-landing-system : lando
2020-03-13 15:43:46 +00:00
Martin Stransky 48832a9055 Bug 1615098 [Wayland] Set opaque region to toplevel window only, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D66583

--HG--
extra : moz-landing-system : lando
2020-03-13 08:26:00 +00:00
Cosmin Sabou 7b3658a6c7 Backed out changeset 309c896d7f8e (bug 1599943) for linux tsan mochitest failures on test_scrollbar_colors.html. 2020-03-13 04:07:56 +02:00
Edwin Takahashi 79842aeb37 Bug 1599943 - update pixel count expectations and re-enable test_scrollbar_colors.html for linux1804 r=intermittent-reviewers,jmaher
Changes:

Due to scrollbar and other UI element changes in linux1804 this test was permafailing and was marked as such.

Now that migration has completed for mochitest-plain, re-enable the test with updated pixel count expectations.

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

--HG--
extra : moz-landing-system : lando
2020-03-12 23:38:09 +00:00
Marco Zehe 9c9833dee3 Bug 1620311 - Set an explicit accessibility label for image-only buttons, r=harry
Differential Revision: https://phabricator.services.mozilla.com/D66601

--HG--
extra : moz-landing-system : lando
2020-03-12 18:12:33 +00:00
Mike de Boer 9c44d249e7 Bug 1620101 - Apply the _NET_WM_DESKTOP property on the root window instead, to make workspace switching work on KDE and others. r=stransky
This patch also tweaks the behavior on Ubuntu Unity slightly to work with the
adaptive workspaces.

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

--HG--
extra : moz-landing-system : lando
2020-03-12 13:59:44 +00:00
Martin Stransky 19e49d0819 Bug 1617115 [GNOME] Use CSD mode in Gnome, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D66581

--HG--
extra : moz-landing-system : lando
2020-03-12 14:47:20 +00:00
Xidorn Quan b3d5ecd53b Bug 1575914 - Treat scrollbar tracks as scrollbar part. r=jmathies
Differential Revision: https://phabricator.services.mozilla.com/D66186

--HG--
extra : moz-landing-system : lando
2020-03-11 14:44:20 +00:00
Boris Zbarsky 4e0a47195b Bug 1621835. Make imgINotificationObserver::Notify a void method, since no one examines its return value anyway. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D66513

--HG--
extra : moz-landing-system : lando
2020-03-12 04:25:34 +00:00
Emilio Cobos Álvarez 0f47b5390f Bug 1621319 - Implement GetWidgetBorder properly for some widgets. r=mstange
I've left checkbox / radio / range-thumb alone because they don't have borders
on gtk either. We need this for the next patch to fix our test.

In particular, our combination of padding + no border means that
sanityEventUtils tries to hit an <input>, but it hits the anonymous scrollable
element instead, and asserts that it doesn't.

I don't think that test is particularly correct, but implementing
GetWidgetBorder works around it, and seems like the right thing to do anyways.

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

--HG--
extra : moz-landing-system : lando
2020-03-11 01:52:51 +00:00
Dorel Luca cefe4ffd34 Backed out 3 changesets (bug 1621319) for Mochitest failures in Harness_sanity/test_sanityEventUtils.html
Backed out changeset 9181798549f2 (bug 1621319)
Backed out changeset 0522121ddf22 (bug 1621319)
Backed out changeset b65f1bde461a (bug 1621319)
2020-03-11 03:48:03 +02:00
Emilio Cobos Álvarez 5302c2ab15 Bug 1621319 - Implement GetWidgetBorder properly for some widgets. r=mstange
I've left checkbox / radio / range-thumb alone because they don't have borders
on gtk either. We need this for the next patch to fix our test.

In particular, our combination of padding + no border means that
sanityEventUtils tries to hit an <input>, but it hits the anonymous scrollable
element instead, and asserts that it doesn't.

I don't think that test is particularly correct, but implementing
GetWidgetBorder works around it, and seems like the right thing to do anyways.

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

--HG--
extra : moz-landing-system : lando
2020-03-10 19:33:56 +00:00
David Parks 9d849a91cc Bug 1614585: Use background thread to shut down AudioSession on all Windows versions r=jmathies
Bug 1419488 moved AudioSession shutdown to a background thread on Windows 7 because it was leading to shutdown timeouts there.  Since then, audio seems to be inspiring timeouts on other versions of Windows as well.  This patch extends the Windows 7 work to all versions of Windows.

Bug 1430907 is removing AudioSession from content processes.  This is the only place we have seen these crashes but AudioSession is also used in the main and plugin processes, so we want this patch to preempt issues with those processes.

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

--HG--
extra : moz-landing-system : lando
2020-03-05 18:57:21 +00:00
Martin Stransky 9f5f941f67 Bug 1621258 [Wayland] Don't print 'Missing GtkWidget' warning, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D66221

--HG--
extra : moz-landing-system : lando
2020-03-10 16:39:24 +00:00
Martin Stransky d96c7ebdd5 Bug 1620973 [Wayland] Make opaque regions configurable by widget.wayland.use-opaque-region, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D65988

--HG--
extra : moz-landing-system : lando
2020-03-09 14:06:58 +00:00
Andrew Osmond 91b071ed14 Bug 1618345 - Enforce proper color management by splitting gfx::Color into sRGBColor and DeviceColor types. r=jrmuizel
gfx::Color is currently misused in many places. The DrawTargets expect
the color space to be in device space, e.g. what we are actually going
to draw using. Everything sitting above generally deals with sRGB, as
specified in CSS. Sometimes we missed the conversion from sRGB to device
space when issuing draw calls, and similarly sometimes we converted the
color to device space twice.

This patch splits the type in two. sRGBColor and DeviceColor now
represent sRGB and device color spaces respectively. DrawTarget only
accepts DeviceColor, and one can get a DeviceColor from an sRGBColor via
the ToDeviceColor helper API. The reftests now pass with color
management enabled for everything (e.g. CSS) instead of just tagged
raster images.

There will be a follow up patch to enable color management everywhere by
default on all supported platforms.

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

--HG--
extra : moz-landing-system : lando
2020-03-09 14:16:17 +00:00
Masayuki Nakano c90d6c80b3 Bug 1569512 - Make `PresShell` ignore synthesized `mousemove` events coming from another process if the child process stores mouse location of synthesized mouse events for tests r=smaug
The reason of intermittent failure of `test_bug656379-2.html` is, synthesized
`mousemove` event coming from the parent process causes `mouseout` and
`mouseleave` events of the last synthesized `mousemove` in the test.  The
reason is, synthesized `mousemove` for tests makes `PresShell` in the content
process record the cursor location, but won't make it `PresShell` in the
parent process do it.  Therefore, parent process may synthesize `mousemove`
event for the system cursor position which does not match with the synthesized
mouse location in the content process.  Therefore, `:hover` state may be
updated unexpectedly.

This patch makes `WidgetEvent::mFlags` have a flag to indicate whether it
came from another process.  Then, makes `PresShell::HandleEvent()` ignore
synthesized `mousemove` events coming from another process only when the
recorded mouse location was set by a mouse event synthesized for tests.

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

--HG--
extra : moz-landing-system : lando
2020-03-05 21:34:28 +00:00
Mark Banner 15cfe23b88 Bug 1620542 - Automatically fix ESLint errors in .eslintrc.js files. r=mossop
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2020-03-07 10:09:44 +00:00
Emilio Cobos Álvarez f102f74183 Bug 1615100 - Paint the range thumb using button colors. r=spohl
This is very basic, and just uses the button colors. Did this because I thought
that it was going to help me fix one test but it didn't in the end, feel free to
reject, or to tell me to land the cleanup somewhere else :)

Depends on D65674

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

--HG--
extra : moz-landing-system : lando
2020-03-06 17:54:04 +00:00
Emilio Cobos Álvarez b6508fca7c Bug 1620297 - Make the range background size fixed. r=mstange
Otherwise the rendering of stuff like:

  <input type=range style="height: 300px">

Makes no sense. So this is closer to other widgets, and also happens to fix the
only test which is a real regression from non-native widget :)

Depends on D65673

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

--HG--
extra : moz-landing-system : lando
2020-03-07 09:57:42 +00:00