Adrian Wielgosik
3db377af3a
Bug 1460734 - Remove macro DEBUG_DOCSHELL_FOCUS. r=bz
...
The code guarded by it doesn't compile.
MozReview-Commit-ID: IgIp4pv2OwX
--HG--
extra : rebase_source : e95bced218725b60149ed766f5f7b96c34449fae
2018-05-10 22:41:32 +02:00
Chris Pearce
877859558b
Bug 1460282 - Handle touch events with no touches in ESM::IsEventOutsideDragThreshold(). r=masayuki
...
This fixes a bounds check assertion on the array access into the touch event's
touch list.
I don't know why we have a touch event with no touches. Maybe it's an internal
touch event?
MozReview-Commit-ID: 8MWF1SMAfor
--HG--
extra : rebase_source : 1b2477d5679d9f1a1adef680911263ff49a89da9
2018-05-10 09:54:40 +12:00
Cosmin Sabou
a916fb7c3e
Merge inbound to mozilla-central. a=merge
2018-05-09 20:27:38 +03:00
Olli Pettay
bb9609559b
Bug 1446834 - Make EventStateManager to use GetFlattenedTreeParent when updating hover/active content, r=emilio
2018-05-09 18:10:55 +03:00
Johann Hofmann
d04ab13682
Bug 1457338 - Stop touch drag on mouseUp. r=kats
...
MozReview-Commit-ID: 4uPibB3DR1D
--HG--
extra : rebase_source : 604159d63cbe73d0b944f0129cf3aa13aca302ec
2018-05-04 15:06:37 +02:00
Boris Zbarsky
cb7c822801
Bug 453968. Enable event.srcElement on all channels. r=smaug
...
I could keep using BinaryName to make the IDL look more like the spec, but this
is a bit more efficient...
2018-05-08 13:52:42 -04:00
Boris Zbarsky
1fb03996f4
Bug 1387143 part 29. Remove nsISelection. r=mats
2018-05-08 13:52:42 -04:00
Boris Zbarsky
a44e6132ff
Bug 1387143 part 28. Remove nsISelection::AsSelection(). r=mats
2018-05-08 13:52:42 -04:00
Boris Zbarsky
a72615f753
Bug 1387143 part 18. Remove ScrollIntoView bits from nsISelectionPrivate. r=mats
2018-05-08 13:52:38 -04:00
Boris Zbarsky
a36e7f946e
Bug 1387143 part 9. Remove nsISelectionPrivate::Get/SetAncestorLimiter. r=mats
2018-05-08 13:52:37 -04:00
Boris Zbarsky
921ee1d522
Bug 1387143 part 4. Stop using nsISelection in remaining xpidl. r=mats
2018-05-08 13:52:36 -04:00
Boris Zbarsky
46cae9462a
Bug 1387143 part 3. Stop using nsISelection in nsISelectionController. r=mats
2018-05-08 13:52:36 -04:00
Boris Zbarsky
3463812125
Bug 1387143 part 2. Stop using nsISelection in nsIDocumentEncoder. r=mats
2018-05-08 13:52:36 -04:00
arthur.iakab
2f2f2ffdbf
Merge mozilla-central to inbound
2018-05-08 15:44:33 +03:00
Chris Peterson
71422dcaa9
Bug 1457813 - Part 2: Replace non-asserting NS_PRECONDITIONs with MOZ_ASSERTs. r=froydnj
...
s/NS_PRECONDITION/MOZ_ASSERT/ and reindent
MozReview-Commit-ID: KuUsnVe2h8L
--HG--
extra : source : c14655ab3df2c9b1465dd8102b9d25683359a37b
2018-04-28 12:50:58 -07:00
Chris Pearce
d60b11662f
Bug 1452536 - Don't gesture activate for events targetting editable elements. r=masayuki
...
We don't want to gesture activate for key and mouse/pointer events sent to
editable elements, as that would mean user interaction intended as text input
could start media playback, which would not likely be the user's intention.
MozReview-Commit-ID: VemPfpuziz
--HG--
extra : rebase_source : b2267f5ae2c9f0f6626f622bc98e3c5f18faf8bb
2018-04-30 09:44:31 +12:00
Chris Pearce
21ea5f2ad6
Bug 1452536 - Don't gesture activate documents on non-printable key events. r=masayuki
...
We don't want key presses of keys which are likely to be intended to be
interaction with the browser or OS to gesture activate documents and unblock
autoplay videos. So don't gesture activate for key events which are modifier
keys, or which don't have a pseudo char code.
MozReview-Commit-ID: 6uyPmlzbAvg
--HG--
extra : rebase_source : 8be949228b666a2ff54385f14b38b8f89459b1e2
extra : source : 59979388ba67d5fbfa8f3801bb65ac0fd2a49408
2018-04-23 15:53:50 +12:00
Emilio Cobos Álvarez
14dba54ee1
Bug 1459401: Remove unused container argument in EventStateManager::ContentRemoved. r=smaug
...
MozReview-Commit-ID: HAuTfzuo3iY
2018-05-06 16:38:30 +02:00
Olli Pettay
96c6253308
Bug 1449560 - clear event.target and .relatedTarget in case they would otherwise reveal targets in shadow DOM, r=bz
2018-05-05 02:21:15 +03:00
Cosmin Sabou
2f93cbd6cb
Merge mozilla-central to inbound. a=merge CLOSED TREE
...
--HG--
rename : testing/profiles/prefs_general.js => testing/profiles/common/user.js
extra : rebase_source : e56a2d784bd87af73d03cc5fcdca84d8156ed054
2018-05-04 21:07:31 +03:00
Cosmin Sabou
603420de74
Backed out 3 changesets (bug 1452536) for causing crashes bug 1458166. a=backout
...
Backed out changeset 1259c5bc20a7 (bug 1452536)
Backed out changeset c454505cc025 (bug 1452536)
Backed out changeset 006f976d7963 (bug 1452536)
2018-05-04 20:56:41 +03:00
Olli Pettay
7721939208
Bug 1457867, remove useless virtual, r=bustage, CLOSED TREE
2018-05-04 20:01:32 +03:00
Olli Pettay
ed65a2bfc8
bug 1457867, store DOMEventTargetHelper objects in global object as a linked list, r=bkelly
...
--HG--
extra : rebase_source : 415c03249bae1edc4313bcf15f91716a748565f9
2018-05-04 19:25:05 +03:00
Botond Ballo
9033e3e120
Bug 1458063 - Introduce a new wheel action for pinch-zooming. r=kats
...
MozReview-Commit-ID: 7DWNvQc2pBE
--HG--
extra : rebase_source : 02d3efe180fb1cd6d49ca9b8a49e4051e6e05cac
2018-05-02 16:51:27 -04:00
Botond Ballo
2add094650
Bug 1458063 - Refactor WillHandleWheelEvent() to also indicate the type of action APZ should take. r=kats
...
MozReview-Commit-ID: LfinNZYqiwt
--HG--
extra : rebase_source : 2ea04360700530e1fbbbaaf94b484b6df2f79fe4
2018-04-30 22:11:10 -04:00
Chris Pearce
441564e8a4
Bug 1452536 - Don't gesture activate for events targetting editable elements. r=masayuki
...
We don't want to gesture activate for key and mouse/pointer events sent to
editable elements, as that would mean user interaction intended as text input
could start media playback, which would not likely be the user's intention.
MozReview-Commit-ID: VemPfpuziz
--HG--
extra : rebase_source : b2267f5ae2c9f0f6626f622bc98e3c5f18faf8bb
2018-04-30 09:44:31 +12:00
Chris Pearce
cd9d5f0dbf
Bug 1452536 - Don't gesture activate documents on non-printable key events. r=masayuki
...
We don't want key presses of keys which are likely to be intended to be
interaction with the browser or OS to gesture activate documents and unblock
autoplay videos. So don't gesture activate for key events which are modifier
keys, or which don't have a pseudo char code.
MozReview-Commit-ID: 6uyPmlzbAvg
--HG--
extra : rebase_source : 8be949228b666a2ff54385f14b38b8f89459b1e2
extra : source : 59979388ba67d5fbfa8f3801bb65ac0fd2a49408
2018-04-23 15:53:50 +12:00
Emilio Cobos Álvarez
981bc1c766
Bug 1457166: Fire online / offline events at the window. r=bz
...
MozReview-Commit-ID: 2v5zNwM9qSh
2018-04-28 09:38:53 +02:00
Brindusan Cristian
93d1017e0f
Backed out changeset b543167ab064 (bug 1457166) for mochitest failures on test_bug336682_1.html CLOSED TREE
2018-04-27 15:44:00 +03:00
Emilio Cobos Álvarez
28b9b16ea6
Bug 1457166: Fire online / offline events at the window. r=bz
...
MozReview-Commit-ID: 2v5zNwM9qSh
2018-04-27 13:39:02 +02:00
Cosmin Sabou
68fdb6cf4f
Merge inbound to mozilla-central. a=merge
2018-04-27 13:04:36 +03:00
Boris Zbarsky
25aa42d9a4
Bug 1455674 part 16. Remove most use of nsIDOMElement in dom. r=qdot
2018-04-26 23:37:34 -04:00
Boris Zbarsky
dd4506eee2
Bug 1457155. Rename various focus manager variables to make it clearer that they're Elements. r=mccr8
2018-04-26 15:28:31 -04:00
shindli
af700315a1
Backed out 2 changesets (bug 1457155, bug 1457156) for B failures in builds/worker/workspace/build/src/dom/html/HTMLObjectElement.cpp on a CLOSED TREE
...
Backed out changeset 8b2a6b54336c (bug 1457155)
Backed out changeset 4e267d999797 (bug 1457156)
2018-04-27 01:34:37 +03:00
Boris Zbarsky
25cec96459
Bug 1457155. Rename various focus manager variables to make it clearer that they're Elements. r=mccr8
2018-04-26 15:28:31 -04:00
Boris Zbarsky
dac6314cb8
Bug 1456588 part 2. Change nsIFocusManager::MoveFocus to take Element. r=enndeakin
2018-04-26 10:37:47 -04:00
Boris Zbarsky
8a0b50bea8
Bug 1456588 part 1. Change nsIFocusManager::SetFocus to take Element. r=enndeakin
2018-04-26 10:37:46 -04:00
shindli
c72db9830d
Merge mozilla-central to autoland. a=merge CLOSED TREE
2018-04-27 00:44:51 +03:00
Kartikaya Gupta
fc66c485b6
Bug 1456882 - Enable some passing mochitests on linux64-qr. r=jrmuizel
...
MozReview-Commit-ID: 5VIHjwx6A2j
--HG--
extra : rebase_source : d986028cff52ba52a58887225e272bf04ad88de3
2018-04-25 11:29:07 -04:00
Nils Ohlmeier [:drno]
dddddb816e
Bug 1448230: close PeerConnection to prevent leaking. r=jib
...
MozReview-Commit-ID: 9iC9mqpo5ef
--HG--
extra : rebase_source : a7b3dbe511cbfcfae695093eefc5021120a3d658
2018-04-19 17:14:52 -07:00
Chris Pearce
ed477977c2
Bug 1456037 - Gesture activate documents on key/mouse down not up. r=masayuki
...
We should gesture activate documents in key/mouse down instead of up because
if a web app wants to play a video inside a key/mouse handler, the document
needs to be activated before the handler runs.
Also, Chrome activates on key/mouse down, so we may have compat issues if
we have different behaviour.
MozReview-Commit-ID: JgGaQcNQfzz
--HG--
extra : rebase_source : edf5673be59a3714c3dd4eb239efd17d6a91ec32
2018-04-23 15:56:29 +12:00
shindli
b1f0ca2585
Backed out 2 changesets (bug 1456037) for bustage in z:/build/build/src/dom/events/EventStateManager.cpp on a CLOSED TREE
...
Backed out changeset 10ac210e88db (bug 1456037)
Backed out changeset e3b70cecf471 (bug 1456037)
2018-04-24 08:27:22 +03:00
Chris Pearce
a2d85597fe
Bug 1456037 - Gesture activate documents on key/mouse down not up. r=masayuki
...
We should gesture activate documents in key/mouse down instead of up because
if a web app wants to play a video inside a key/mouse handler, the document
needs to be activated before the handler runs.
Also, Chrome activates on key/mouse down, so we may have compat issues if
we have different behaviour.
MozReview-Commit-ID: JgGaQcNQfzz
--HG--
extra : rebase_source : de4269db9538e9c8aa5ff686c215bd619cf0c573
2018-04-23 15:56:29 +12:00
Boris Zbarsky
b58443d42d
Bug 1455052 followup. Re-remove the Event ToSupports/ToCanonicalSupports methods. r=bzbarsky
...
These are not needed, and they were removed by bug 1452981, but then that was
backed out. They obviously don't compile as written with nsIDOMEvent removed,
leading to a CLOSED TREE
MozReview-Commit-ID: FH5QqKEgalP
2018-04-20 15:55:17 -04:00
Dorel Luca
644bf34f8b
Backed out 8 changesets (bug 1453011, bug 1452981, bug 1146316) For xpcshell and mochitest failures on multiple files. CLOSED TREE
...
Backed out changeset 033299f27339 (bug 1453011)
Backed out changeset 4464997475c1 (bug 1453011)
Backed out changeset cae243fb2a3c (bug 1453011)
Backed out changeset adf56a83131b (bug 1453011)
Backed out changeset 80abe3305b24 (bug 1452981)
Backed out changeset 02178545f255 (bug 1452981)
Backed out changeset 719f7596c208 (bug 1146316)
Backed out changeset 1316c78daeb6 (bug 1146316)
2018-04-20 21:40:24 +03:00
Boris Zbarsky
5415ab3858
Bug 1455052 part 13. Remove nsIDOMEvent. r=masayuki
...
MozReview-Commit-ID: 3gmGy4URet3
2018-04-20 12:55:31 -04:00
Boris Zbarsky
367b5456ea
Bug 1455052 part 11. Remove nsIDOMEvent::InternalDOMEvent. r=masayuki
...
MozReview-Commit-ID: 2ytv7CjkPGz
2018-04-20 12:55:31 -04:00
Boris Zbarsky
a81bb92f43
Bug 1455052 part 10. Remove various unused nsIDOMEvent bits. r=masayuki
...
MozReview-Commit-ID: Fzckal7RGUv
2018-04-20 12:55:31 -04:00
Boris Zbarsky
a3ea17eac1
Bug 1455052 part 9. Stop using nsIDOMEvent in DataTransferItem. r=masayuki
...
I couldn't figure out a way to do this without giving Event an IID....
MozReview-Commit-ID: LdXmsQSHeIc
2018-04-20 12:55:31 -04:00
Boris Zbarsky
0ba35d199f
Bug 1455052 part 8. Stop using nsIDOMEvent in docshell and dom. r=masayuki
...
MozReview-Commit-ID: ASkuyN3xSwB
2018-04-20 12:55:30 -04:00