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

25971 Коммитов

Автор SHA1 Сообщение Дата
Kartikaya Gupta d633586fcc Bug 1618545 - Delete obsolete/unused code relating to Fennec's experimental ui.zoomedview feature. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D65022

--HG--
extra : moz-landing-system : lando
2020-03-03 15:27:50 +00:00
Mihai Alexandru Michis 27d7312e19 Backed out changeset 469d7894f720 (bug 1618545) for causing bustages in src/layout/base/PositionedEventTargeting.cpp
CLOSED TREE
2020-03-03 14:52:13 +02:00
Kartikaya Gupta 432394ae9f Bug 1618545 - Delete obsolete/unused code relating to Fennec's experimental ui.zoomedview feature. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D65022

--HG--
extra : moz-landing-system : lando
2020-03-02 21:53:50 +00:00
Makoto Kato 700ac16e44 Bug 1499076 - Dispatch key down event before firing input event. r=geckoview-reviewers,snorp
When deleting text by backspace key of VKB, VKB might use `InputConnection.setComposingText`, not using KeyEvent. So although we dispatch dummy key event, the order of events is incorrect. We should dispatch keydown before input event.

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

--HG--
extra : moz-landing-system : lando
2020-03-02 22:27:44 +00:00
Masayuki Nakano dace885161 Bug 1449831 - part 4: Add automated tests for `InputEvent.getTargetRanges()` r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D64731

--HG--
extra : moz-landing-system : lando
2020-03-03 03:41:16 +00:00
Masayuki Nakano f5af8613ec Bug 1449831 - part 3: Make editor set target ranges of `beforeinput` event if the editor instance is an `HTMLEditor` r=smaug
In most cases, `InputEvent.getTargetRange()` of `beforeinput` event should
return `Selection` ranges at dispatching the event.

This patch also handles special cases.
* composition change - target range should be the previous composition string
  which will be replaced with new composition string.
* replace text - target range should be the replace range.  This is used by
  spellchecker.
* drop - target range should be the drop point.

However, the other exception is not handled by this patch.  That is, deletions.
The target range(s) should be the range(s) which will be removed.  In most
cases, they also matches selection ranges, but may be extended to:
* surrogate pair boundary
* grapheme cluster boundary like complex emoji
* word/line deletion deletion
* `Backspace` or `Delete` from collapsed selection
* to end of unnecessary whitespaces

For supporting these cases, we need to separate
`HTMLEditor::HandleDeleteSelection()` and its helper methods and helper class
to range computation part and modifying the DOM tree part.  Of course, it
requires big changes and `InputEvent.getTargetRanges()` may be important for
feature detection of `beforeinput` event so that we should put off the big
changes to bug 1618457.

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

--HG--
extra : moz-landing-system : lando
2020-03-03 03:39:26 +00:00
Masayuki Nakano 0af4f88f9d Bug 1449831 - part 2: Make `InputEventOptions` be able to take target ranges r=smaug
`InputEventOptions` should be able to take target ranges for `beforeinput`
event.  However, it requires to include `StaticRange.h` from `nsContentUtils.h`
even though most `nsContentUtils.h` users don't need it.  Therefore, this patch
moves it from `nsContentUtils.h` to new header file.

And makes `nsContentUtils::DispatchInputEvent()` moves the target ranges
from `InputEventOptions` to `InternalEditorInputEvent`.

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

--HG--
extra : moz-landing-system : lando
2020-03-03 03:38:43 +00:00
Masayuki Nakano b4cc4486d4 Bug 1449831 - part 1: Add `InputEvent.getTargetRanges()` r=smaug
`InputEvent.getTargetRanges()` can be used only when event type is
`beforeinput`.  So, it may be used for feature detection of `beforeinput`
event because Chrome does not implement `onbeforeinput` event handler attribute.
Therefore, this patch makes it behind the pref for `beforeinput` event.

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

--HG--
extra : moz-landing-system : lando
2020-03-02 07:39:38 +00:00
Emilio Cobos Álvarez 2b1bbce9a6 Bug 1618988 - Move text selection colors outside of geckoview.css. r=m_kato
Maybe we should be using some native color, but the background for that is white
in my testing, so probably not, or at least probably it can be a follow-up.

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

--HG--
extra : moz-landing-system : lando
2020-03-02 04:28:14 +00:00
Stephen A Pohl 81c6cdac1f Bug 1615101: Don't show :active state for disabled radio, checkbox and dropdown controls when the native theme is disabled. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D64982

--HG--
extra : moz-landing-system : lando
2020-03-02 18:09:00 +00:00
Mike de Boer 929799eef6 Bug 440895 - Add support for Mac OSX spaces in session restore, which allows any window to be restored to their respective (work)space. r=mconley,mstange,nika
Differential Revision: https://phabricator.services.mozilla.com/D61457

--HG--
extra : moz-landing-system : lando
2020-03-02 13:36:39 +00:00
Jonathan Watt a6385396aa Bug 1606512. Have save-as-PDF default to using the document title as the file name. r=bobowen
This behavior was broken by bug 1601775.

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

--HG--
extra : moz-landing-system : lando
2020-03-02 10:45:38 +00:00
Masatoshi Kimura ad824480a6 Bug 1615293 - Do not free global memory when TYMED_HGLOBAL is selected. r=masayuki
The caller will take the ownership in this case.

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

--HG--
extra : moz-landing-system : lando
2020-03-02 02:52:26 +00:00
Masayuki Nakano 2caf69bffb Bug 1617803 - Support 4th and 5th mouse button disabling pref on Linux r=karlt
Some users may want to disable 4th and 5th button of mouse.
This feature has already been implemented on Windows, and
our GTK widget can support this with this simple patch.

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

--HG--
extra : moz-landing-system : lando
2020-03-02 04:34:45 +00:00
James Willcox 7769e2195b Bug 1618582 - Make `GeckoView#onTouchEventForResult()` return correct values r=kats
This also makes `GeckoView#onTouchEvent()` always return `true`, because
returning `false` will cause us to not receive any more events for that
touch. We always want to receive events.

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

--HG--
extra : moz-landing-system : lando
2020-02-28 17:44:33 +00:00
Martin Stransky a8b9ee58f8 Bug 1618367 [Wayland] Make nsWaylandDisplay usable on child processes, rename dmabuf preferences, r=jhorak
- Increment MAX_DISPLAY_CONNECTIONS to 5 (main, compositor, renderer, and two media threads).
- Stop posting events to message loop when it's deleted. Use message loop shutdown observer for it.
- Shutdown nsWaylandDisplay event queue on both chrome and content processes.
- Use static preference variables which means dmabuf prefs are renamed to: widget.wayland-dmabuf-textures.enabled widget.wayland-dmabuf-webgl.enabled widget.wayland-dmabuf-vaapi.enabled

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

--HG--
extra : moz-landing-system : lando
2020-02-28 10:09:04 +00:00
Makoto Kato 9c31a9e27c Bug 1617778 - Log text and selection change via ALOGIME. r=geckoview-reviewers,esawin
To debug more easily, I would like to add it.

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

--HG--
extra : moz-landing-system : lando
2020-02-28 04:30:27 +00:00
Makoto Kato 833d15a69d Bug 1617778 - Use ToString.h to share text and selection change logging. r=masayuki
It is useful to use ToString.h to log text and selection change instead of
adding it each source code. Actually, there is same code in
IMEContentObserver and widget.

Also, mozilla namespace is required since this conflicts with
WinModifierKeyState.h.

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

--HG--
extra : moz-landing-system : lando
2020-02-28 04:45:05 +00:00
Chris Martin 0d05486ea9 Bug 1617523 - Ensure remote backbuffer only reused if initialized properly r=jrmuizel
This crash was caused because there was a case where the Provider would
store the SharedImage even if it failed to initialize it or send it to the
Client.

When the Client next requested a borrow, the Provider would see it was
already storing a SharedImage and would tell the Client to just
reuse the one it already had.

Since the Client never actually received it, it would end up dereferencing
a null pointer.

The fix for this is to wait until the SharedImage is fully initialized and
shared with the Client before storing it. That way, we know that if we have
it then so does the Client.

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

--HG--
extra : moz-landing-system : lando
2020-02-28 01:34:26 +00:00
Andrew McCreight 4babb2b5ab Bug 1609815 - Remove Web Replay C++ implementation. r=jgilbert,jandem,gbrown
Patch by bhackett and jlaster. Also reviewed by mccr8.

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

--HG--
extra : moz-landing-system : lando
2020-02-27 17:39:15 +00:00
Martin Stransky b432a2a607 Bug 1618493 [Wayland] Set opaque region for accelerated window immediately, r=jhorak"
Recently opaque region is set when wl_surface is obtained by renderer/compositor.
It does not work as GL/WebRender get wl_surface only once and creates egl_window
on top of it so the opaque region is never updated.

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

--HG--
extra : moz-landing-system : lando
2020-02-27 16:39:32 +00:00
Andrew Osmond 7322e0dfc4 Bug 1618326 - Remove/replace AMD with ATI in our blocklist rules. r=jrmuizel
AMD does not release any graphics cards under the vendor ID 0x1022. That
appears to be reserved for their non-graphics hardware. Instead they
have chosen to continue releasing graphics hardware under the ATI vendor
ID 0x1002. This patch removes all of the AMD ID rules and replaces them,
if applicable, with ATI ID rules. This has meant that sometimes we
failed to block things in the past that we expected to.

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

--HG--
extra : moz-landing-system : lando
2020-02-27 15:39:12 +00:00
Emilio Cobos Álvarez b66090cb02 Bug 1618202 - Support widget.disable-native-theme-for-content on Android, and don't apply geckoview.css in that case. r=snorp
I browsed a bit with it and it looks pretty nice. Should we consider enabling it
on Nightly so we find if there's any obvious problem?

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

--HG--
extra : moz-landing-system : lando
2020-02-27 15:38:34 +00:00
Henri Sivonen 2339507e78 Bug 1618204 - DeCOMtaminate GetActiveWindow in nsWindow::BringToFront(). r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D64372

--HG--
extra : moz-landing-system : lando
2020-02-26 22:34:57 +00:00
Ciure Andrei 00dd87f6f4 Backed out changeset d407a28318e6 (bug 1609815) for causing windows ming bustages CLOSED TREE
--HG--
extra : histedit_source : b2c748e31e0f6ba8fcf9960a336e0bbd361b07e6
2020-02-27 07:05:19 +02:00
Andrew McCreight b197e1f783 Bug 1609815 - Remove Web Replay C++ implementation. r=jgilbert,jandem,gbrown
Patch by bhackett and jlaster. Also reviewed by mccr8.

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

--HG--
extra : moz-landing-system : lando
2020-02-27 04:43:48 +00:00
Masayuki Nakano 37b2bfa576 Bug 1615977 - Don't modify key value while pressing a numpad key with `Alt` but the virtual keycode is a function key r=m_kato
Inputting Unicode scalar value with `Alt` + numpad keys is available even
without NumLock state.  However, `Alt` + function key on numpad should also
be worked because user may intent to perform it.  Therefore, this patch
stops the hacking for bug 1606655 when given virtual keycode value is a
function key, but this means that users cannot type a Unicode scalar value
without NumLock key state if the value includes `7` (`Home`),
`4` (`ArrowLeft`), `6` (`ArrowRight`) because Firefox UI handles they are
shortcut keys (for "Go home", "Go back" and "Go forward").  Unfortunately,
I have no idea how to solve this conflict (if it's second key or latter key
after pressing `Alt` key, we could do that with a boolean flag, but I don't
like to make it only for this kind of edge case unless a lot of users want
to do it).

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

--HG--
extra : moz-landing-system : lando
2020-02-27 03:21:36 +00:00
Emilio Cobos Álvarez 9724c94c25 Bug 1617990 - Remove three silly uses of nsACString::Adopt in GTK widget code. r=froydnj
NS_Convert* has small string optimizations and doesn't require an extra strlen()
call from Adopt().

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

--HG--
extra : moz-landing-system : lando
2020-02-25 20:09:29 +00:00
Simon Giesecke aaf6cb4e75 Bug 1617628 - Hide nsBaseHashtable Put overloads in nsRefPtrHashtable subclass. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D63899

--HG--
extra : moz-landing-system : lando
2020-02-25 17:03:36 +00:00
Martin Stransky a37d672244 Bug 1617575 [Wayland] Don't pass invalid file descriptors to SurfaceDescriptorDMABuf, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D63850

--HG--
extra : moz-landing-system : lando
2020-02-25 13:48:39 +00:00
Martin Stransky f0afedd24a Bug 1617858 [Linux/Gtk] Don't use a fallback widget when it's missing, r=jhorak
With Bug 1613130 fixed we may not need a fallback widget so let's remove this workaround.

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

--HG--
extra : moz-landing-system : lando
2020-02-25 13:32:47 +00:00
Simon Giesecke 32c9aeaad4 Bug 1617542 - Remove nsRefPtrHashtable::Put overload accepting already_AddRefed and adapt all uses. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D63865

--HG--
extra : moz-landing-system : lando
2020-02-25 09:36:12 +00:00
Cosmin Sabou 7f1afff492 Backed out 5 changesets (bug 1617604, bug 1617542, bug 1617546) for causing build bustages on ipc/mscom/Interceptor.cpp.
CLOSED TREE

Backed out changeset 5faa54ad950e (bug 1617542)
Backed out changeset cb38779e1eb6 (bug 1617604)
Backed out changeset 3aea18e0396f (bug 1617542)
Backed out changeset bc3eeefdfb6c (bug 1617542)
Backed out changeset b76a3aa5ff6f (bug 1617546)
2020-02-24 19:50:13 +02:00
Simon Giesecke df538d9a79 Bug 1617542 - Remove nsRefPtrHashtable::Put overload accepting already_AddRefed and adapt all uses. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D63865

--HG--
extra : moz-landing-system : lando
2020-02-24 17:08:30 +00:00
Sylvestre Ledru ca6530131a Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan,kvark
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2020-02-24 15:33:38 +00:00
Martin Stransky b929ff1886 Bug 1616680 [Wayland] Use widget.wayland_dmabuf_vaapi.enabled to enable VAAPI / dmabuf video playback, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D63381

--HG--
extra : moz-landing-system : lando
2020-02-24 09:50:23 +00:00
Martin Stransky a61d164b44 Bug 1613130 [Linux] Check that we have gtk_style_context_set_scale() and style, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D63390

--HG--
extra : moz-landing-system : lando
2020-02-24 08:48:35 +00:00
Marc Streckfuss 66937693fb Bug 1615270 - [Media-Control Linux] MPRIS: Correctly emit the PropertyChange Event on the Player Interface (https://specifications.freedesktop.org/mpris-spec/latest/Player_Interface.html), r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D63811

--HG--
extra : moz-landing-system : lando
2020-02-23 22:58:39 +00:00
Marc Streckfuss f31f18655c Bug 1617405 - MediaControl Windows: Fix propagating the Playback State to the UI by separating asserts from method calls, r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D63773

--HG--
extra : moz-landing-system : lando
2020-02-22 20:59:21 +00:00
Andrew Osmond 2f5b8e09b8 Bug 1617148 - Re-enable WebRender for Intel Haswell on Linux nightly. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D63635

--HG--
extra : moz-landing-system : lando
2020-02-21 13:16:35 +00:00
Masayuki Nakano 1110bedb45 Bug 1613830 - Add `nsINode::GetAsElementOrParentElement()` r=smaug
This patch assumes that only element node can have content node.  I.e., we
won't hit the following `MOZ_ASSERT`:

```
Element* element = nullptr;
nsIContent* content = aContent;
while (content) {
  if (content->IsElement()) {
    element = content->AsElement();
    break;
  }
  content = content->GetParent();
}
MOZ_ASSERT(!content || content == element || content->GetParent() == element);
```

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

--HG--
extra : moz-landing-system : lando
2020-02-21 02:47:05 +00:00
Mike Shal c8abdd68c2 Bug 1616630 - Use py3_action for GENERATED_FILES that already support it; r=firefox-build-system-reviewers,kvark,rstewart
Differential Revision: https://phabricator.services.mozilla.com/D63438

--HG--
extra : moz-landing-system : lando
2020-02-21 00:05:17 +00:00
Csoregi Natalia 6360b24e80 Backed out 2 changesets (bug 1616630) for Android bustage. CLOSED TREE
Backed out changeset 15016546c954 (bug 1616630)
Backed out changeset dcb7dc51633b (bug 1616630)
2020-02-20 21:24:11 +02:00
Marc Streckfuss 8f47daac4b Bug 1584501: Draft Implementation of the Windows SystemMediaTransportControl WinRT Interface r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D47546

--HG--
extra : moz-landing-system : lando
2020-02-20 12:04:12 +00:00
Mike Shal 39492660f4 Bug 1616630 - Use py3_action for GENERATED_FILES that already support it; r=firefox-build-system-reviewers,kvark,rstewart
Depends on D63437

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

--HG--
extra : moz-landing-system : lando
2020-02-20 16:21:55 +00:00
Simon Giesecke 9350e6b741 Bug 1613985 - Use MOZ_COUNTED_DEFAULT_CTOR_*/MOZ_COUNTED_DTOR_* macros. r=froydnj
This removes the need for explicit #ifdef NS_BUILD_REFCNT_LOGGING without
introducing user-defined destructors when it is not defined.

Also, some uses of virtual for declaring destructors are replaced by the
appropriate override declaration through these changes.

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

--HG--
extra : moz-landing-system : lando
2020-02-20 11:40:14 +00:00
Dorel Luca 63445ea1cc Backed out changeset 3dbd1e653555 (bug 1584501) for WPT failures in widget/windows/WindowsSMTCProvider.cpp 2020-02-20 04:17:08 +02:00
Marc Streckfuss 1218a48794 Bug 1584501: Draft Implementation of the Windows SystemMediaTransportControl WinRT Interface r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D47546

--HG--
extra : moz-landing-system : lando
2020-02-19 23:34:46 +00:00
Chris Martin 270ba49604 Bug 1616000 - Fix broken push notifications r=handyman
Bug 1604412 enabled "remote backbuffer" compositing when using non-accelerated
layers. However, due to my misunderstanding of how nWindow and compositing
handles layered windows, I broke the usecase where a child window is
transparent.

In this case, it is the top-level anscestor window that has the
WS_EX_LAYERED attribute and not the child window. The ancestor is the one
that needs to be repainted when a present is requested.

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

--HG--
extra : moz-landing-system : lando
2020-02-19 22:20:33 +00:00
Dorel Luca 1fcff09173 Backed out changeset 647e98de0262 (bug 1584501) for Build bustage in widget/windows/WindowsSMTCProvider.h. CLOSED TREE 2020-02-20 00:37:57 +02:00