Boris Zbarsky
a403c9345b
Bug 1451966. Don't warn or assert for events firing while !IsSafeToRunScript() inside documents that are never exposed to script. r=smaug
...
MozReview-Commit-ID: HgvQFJtW9Z6
2018-04-09 16:48:35 -04:00
Boris Zbarsky
f2f3fe42ff
Bug 1452185
part 3. Remove unnecessary nsIDOMXULElement includes. r=qdot
...
MozReview-Commit-ID: Ft5MnbFtyB9
2018-04-09 16:30:32 -04:00
Andreea Pavel
eed7d2803f
Merge mozilla-central to autoland. a=merge on a CLOSED TREE
2018-04-06 17:54:45 +03:00
Boris Zbarsky
83412146ec
Bug 1449631 part 13. Remove now-unnecessary forwarding macros. r=smaug
...
MozReview-Commit-ID: 6teO2KoGqUo
2018-04-05 13:42:42 -04:00
Boris Zbarsky
0b77426fa7
Bug 1449631 part 11. Remove nsIDOMEventTarget::AddSystemEventListener. r=smaug
...
The security checks outer window did here don't seem right, because the whole
point is that this method is only called by C++ code for its own purposes.
We're not adding random untrusted listeners via addSystemEventListener!
MozReview-Commit-ID: JdS5gTESclu
2018-04-05 13:42:42 -04:00
Boris Zbarsky
2cdc7450c3
Bug 1449631 part 10. Devirtualize AddEventListener. r=smaug
...
The CanCallerAccess check in the "webidl" version of
nsGlobalWindowOuter::AddEventListener was pointless, because bindings never
call things on outer windows.
MozReview-Commit-ID: 1CGMJ277bPu
2018-04-05 13:42:42 -04:00
Boris Zbarsky
88937275cc
Bug 1449631 part 9. Remove nsIDOMEventTarget::AddEventListener. r=smaug
...
Also switch the XPCOM-y version of EventTarget::AddEventListner to a
Nullable<bool> for aWantsUntrusted.
The three-arg overload of AddEventListener in ContentFrameMessageManager was
never called, so all the AddEventListener overloads there are not needed.
MozReview-Commit-ID: 4IhqHmPVWzE
2018-04-05 13:42:42 -04:00
Boris Zbarsky
14f26fccf6
Bug 1449631 part 8. Remove nsIDOMEventTarget::GetEventTargetParent. r=smaug
...
MozReview-Commit-ID: 5wQ2LYrjUxf
2018-04-05 13:42:41 -04:00
Boris Zbarsky
adbcff27c1
Bug 1449631 part 7. Remove nsIDOMEventTarget::GetTargetFor* methods. r=smaug
...
MozReview-Commit-ID: AIzDo67mTDf
2018-04-05 13:42:41 -04:00
Boris Zbarsky
4292bca4ee
Bug 1449631 part 6. Remove nsIDOMEventTarget::DispatchEvent. r=smaug
...
MozReview-Commit-ID: 8YMgmMwZkAL
2018-04-05 13:42:41 -04:00
Boris Zbarsky
553b5d6aae
Bug 1449631 part 5. Move Will/Pre/PostHandleEvent out of nsIDOMEventTarget. r=smaug
...
MozReview-Commit-ID: K2nOZNPy0XE
2018-04-05 13:42:41 -04:00
Boris Zbarsky
053e2c9b36
Bug 1449631 part 4. Remove nsIDOMEventTarget::GetContextForEventHandlers. r=smaug
...
MozReview-Commit-ID: ID0FDvp28HY
2018-04-05 13:42:40 -04:00
Boris Zbarsky
7c94e8697f
Bug 1449631 part 3. Remove nsIDOMEventTarget::RemoveSystemEventListener. r=smaug
...
MozReview-Commit-ID: F67Od8surQ8
2018-04-05 13:42:40 -04:00
Boris Zbarsky
1dce94cf16
Bug 1449631 part 2. Remove nsIDOMEventTarget::RemoveEventListener. r=smaug
...
We can't have a null content in
ScrollbarActivity::StopListeningForScrollAreaEvents, because only viewport
frames have a null GetContent().
MozReview-Commit-ID: 9iAg0ivVqqG
2018-04-05 13:42:40 -04:00
Nicholas Nethercote
a560608963
Bug 1451169 - Use nsStaticAtom*
instead of nsStaticAtom**
in Element.h. r=baku
...
And then fix up everything else that needs to change as well.
MozReview-Commit-ID: GDMfERqdQAc
--HG--
extra : rebase_source : 01fe06c3182245a409099a53383d92bf4fa0155c
2018-04-03 13:21:06 +10:00
Olli Pettay
abe47d910c
Bug 1449268
- Treat document-level touch event listeners as passive, r=kats
...
--HG--
extra : rebase_source : 0ea948a612dfbd46b80b52985f96685b012e0079
2018-04-04 19:19:54 +03:00
Boris Zbarsky
b808305604
Bug 1450182. Remove the EventListenerWasAdded/Removed hooks from DOMEventTargetHelper. r=smaug
...
MozReview-Commit-ID: GWnAvK61hVT
2018-04-04 15:32:19 -04:00
Boris Zbarsky
2c63cffb46
Bug 1447454. Stop allowing implicit downcasts in StrongOrRawPtr. r=peterv
...
MozReview-Commit-ID: BSXp3ThY1dC
2018-04-04 15:32:19 -04:00
Ben Kelly
5e3b64d3ec
Bug 1450358
P0 Factor the event listener runtime leak checking test into a reusable test framework. r=baku
2018-04-04 11:25:42 -07:00
Haik Aftandilian
c6b21edd12
Bug 1437281 - OSX dragging image to desktop changes OSX File associations r=mystor
...
On Mac, when dragging an image, add the image request's MIME type to
the transfer so that the MIME-extension check can be done in the
parent process to avoid content sandboxing issues.
MozReview-Commit-ID: 3cb4fCr6GnL
--HG--
extra : rebase_source : 43720237b467765401b5504c57bbc1b43d4dfdc0
2018-03-27 14:55:33 -07:00
Johann Hofmann
bdf6e7ffee
Bug 1446904 - Do not generate drag gestures from synthesized/mouse events while in touch drag mode. r=kats,smaug
...
Calling GenerateDragGesture at this point should not be necessary, since
eTouchMove events are already handled in the same function. This code
is intermittently triggered through (what I can only call "rogue")
eMouseMove, ePointerDown and ePointerMove events, which is causing hangs
in the native DoDragDrop function further down the stack.
Arguably this shouldn't be triggered by e.g. ePointerDown either, and
I'm unclear on why exactly DoDragDrop is hanging (likely because it is
called again before the user does a drop), but this is a quick fix that
should be suitable for uplift.
MozReview-Commit-ID: A0hBlS85icx
--HG--
extra : rebase_source : 4d26c92c556068fc25dca5ad5d106187274b3e2a
2018-04-05 19:02:14 +02:00
Ciure Andrei
5d841a3421
Merge inbound to mozilla-central. a=merge
2018-03-30 01:06:18 +03:00
Olli Pettay
323c797db0
Bug 1447993, when handling pointerup while there is pointercapture, do a hit test in order to find the click target, tests, r=masayuki
...
--HG--
extra : rebase_source : 65908d3d88ec906c648da2a609d21589b6cb143b
2018-03-29 19:51:25 +03:00
Olli Pettay
57fd877895
Bug 1447993, when handling pointerup while there is pointercapture, do a hit test in order to find the click target, r=masayuki
...
--HG--
extra : rebase_source : 160ef0aae3922cb32b11476650c15a3f55334691
2018-03-29 19:22:59 +03:00
Thomas Wisniewski
e6ae182e4a
Bug 1449812 - Constify DOMEventTargetHelper::HasListeners and HasListenersFor. r=baku
...
MozReview-Commit-ID: 739quGYs78Y
--HG--
extra : rebase_source : 8dec1d2187473c8583e538cc40fd544f6da38ae8
2018-03-28 22:40:32 -04:00
Boris Zbarsky
75860ea92d
Bug 1445005. Remove the eventMode bits from frameloader. r=qdot
2018-03-28 18:01:46 -04:00
Andreea Pavel
2e9ae472f6
Backed out changeset d1e979715ac1 (bug 1439342) for build bustages at builds/worker/workspace/build/src/obj-spider/dist/include/js/ProfilingStack.h:18 on a CLOSED TREE
...
--HG--
extra : rebase_source : 62447b0e6065c284531baaca1b4981cdde96762b
2018-03-27 19:44:32 +03:00
Jason Orendorff
10ae4a8271
Bug 1439342 - Fix build bustage on ARM+ASan (Clang) due to inconsistent JSTracer declarations. r=sfink
...
--HG--
extra : rebase_source : 2c63cb90528b6bef479a485a86c505e566a3c4e8
2018-02-26 17:38:18 -06:00
Coroiu Cristina
ed9d3656c8
Merge mozilla-central to inbound a=merge on a CLOSED TREE
2018-03-26 23:58:59 +03:00
Coroiu Cristina
8915d0accf
Backed out changeset 608119812c07 (bug 1437281) on request from haik a=backout
2018-03-26 23:53:06 +03:00
Haik Aftandilian
ce6d9e36aa
Bug 1437281 - OSX dragging image to desktop changes OSX File associations r=mystor
...
When dragging an image, add the image request's MIME type to the transfer
so that the MIME-extension check can be done in the parent process.
Move the MIME-extension check to the parent process to avoid
issues caused by content process sandboxing.
MozReview-Commit-ID: 3cb4fCr6GnL
--HG--
extra : rebase_source : ec49b8c83613be844fe4cd88a5024ac41a845199
2018-03-22 14:04:23 -07:00
Boris Zbarsky
de9297b4bf
Bug 1448048. Restrict the window.Components shim to non-nightly-only to see whether sites actually use it. r=mccr8
...
MozReview-Commit-ID: 6W1nEyKGlER
2018-03-23 12:53:48 -04:00
Gurzau Raul
f2571e02d0
Backed out changeset 94a8e9c4c345 (bug 1448048) for Robocop failures on Android on a CLOSED TREE
2018-03-23 23:29:02 +02:00
Olli Pettay
9e35535e7d
bug 1447196, canceling pointerdown should not affect to scrollbar handling, r=masayuki
...
--HG--
extra : rebase_source : a84d2a393d82dcc7655e9bb48a118ddd300c3d4e
2018-03-23 17:31:13 +02:00
Boris Zbarsky
0327e321d5
Bug 1448048. Restrict the window.Components shim to non-nightly-only to see whether sites actually use it. r=mccr8
...
MozReview-Commit-ID: 6W1nEyKGlER
2018-03-23 12:53:48 -04:00
Margareta Eliza Balazs
9ecc515945
Backed out changeset b4f1e88f8b6e (bug 1447196) for 2 failures in dom/events/test/pointerevents/test_bug1303704.html
2018-03-23 05:37:20 +02:00
Noemi Erli
1270a21724
Merge mozilla-central to inbound. a=merge CLOSED TREE
2018-03-23 01:00:18 +02:00
Olli Pettay
8d1253d263
bug 1447196, canceling pointerdown should not affect to scrollbar handling, r=masayuki
...
--HG--
extra : rebase_source : 3234983256e2d68e0ac6b21f5293b23bf6017b11
2018-03-22 20:54:50 +02:00
Andreea Pavel
4dc16ea693
Merge mozilla-central to autoland. a=merge on a CLOSED TREE
2018-03-22 11:34:04 +02:00
Boris Zbarsky
df6c05a122
Bug 1442039 part 14. Remove nsDOMClassInfoID.h. r=peterv
...
MozReview-Commit-ID: 6pZs1XI1oSd
2018-03-21 23:13:30 -04:00
Boris Zbarsky
4e7d30f872
Bug 1444143 part 6. Remove nsIFrameLoader::Get/SetEventMode. r=mystor
...
MozReview-Commit-ID: Jvevh2puiLY
2018-03-21 22:43:16 -04:00
Boris Zbarsky
9cb6df0dac
Bug 1444143 part 2. Remove nsIFrameLoader::GetDocShell. r=mystor
...
The change from "docShell" to "mDocShell" for the SetName call in the
OwnerIsMozBrowserFrame case in nsFrameLoader::MaybeCreateDocShell is a
drive-by correctness fix for a bug the rename of "docShell" to "parentDocShell"
caught: setting the name of our _parent_ docshell based on the name attr of our
owner makes no sense.
MozReview-Commit-ID: DwnWt8jTokV
2018-03-21 22:43:15 -04:00
Boris Zbarsky
29d232e53f
Bug 1447098 part 1. Rename FromContent on various DOM classes to FromNode. r=mystor
...
MozReview-Commit-ID: 202nkbmkwfR
2018-03-21 17:39:04 -04:00
Nils Ohlmeier [:drno]
af2626f976
Bug 1447692: updated synthetic_events test to match new RTCDataChannelEvent. r=jib
...
MozReview-Commit-ID: DkZmUpv6g4q
--HG--
extra : rebase_source : 2488a5ba5a84bbd8c8b099858cd69116cc8a4b4d
2018-03-22 01:37:08 +00:00
Emilio Cobos Álvarez
48957d62c0
Bug 1446954: Cleanup !stylo and styloVsGecko test expectations. r=xidorn
...
MozReview-Commit-ID: J2glxiCWBVn
2018-03-20 11:29:51 +01:00
Boris Zbarsky
837dc7eaaa
Bug 1446711 part 8. Get rid of nsIDOMMouseEvent. r=qdot
...
MozReview-Commit-ID: 2FK1MA4LGZj
2018-03-20 00:16:07 -04:00
Boris Zbarsky
89ea512161
Bug 1446711 part 7. Switch the nsIDOMMouseEvent::MOZ_SOURCE_* constants over to MouseEventBinding. r=qdot
...
We can't include MouseEventBinding.h in MouseEvents.h because that produces
this include loop:
MouseEventBinding.h -> UIEventBinding.h ->
nsGlobalWindow.h -> nsGlobalWindowInner.h -> nsRefreshDriver.h ->
AnimationEventDispatcher.h -> AnimationComparator.h -> Animation.h ->
EffectCompositor.h -> PseudoElementHashEntry.h -> Element.h ->
PointerEventHandler.h -> MouseEvents.h -> MouseEventBinding.h
MozReview-Commit-ID: 6FNksGil7uD
2018-03-20 00:16:06 -04:00
Boris Zbarsky
b69e080b56
Bug 1446711 part 6. Get rid of various unused nsIDOMMouseEvent bits. r=qdot
...
MozReview-Commit-ID: BmO0Ik3B8bO
2018-03-20 00:16:06 -04:00
Boris Zbarsky
dcaa6d2614
Bug 1446711 part 5. Get rid of nsIDOMMouseEvent::GetButton. r=qdot
...
MozReview-Commit-ID: AZWzObh01uI
2018-03-20 00:16:06 -04:00
Boris Zbarsky
1be726ef98
Bug 1446711 part 4. Get rid of nsIDOMMouseEvent::GetCtrl/Shift/Alt/MetaKey. r=qdot
...
MozReview-Commit-ID: 1H2FzUHf55n
2018-03-20 00:16:06 -04:00