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

26197 Коммитов

Автор SHA1 Сообщение Дата
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