gecko-dev/dom/events
Masayuki Nakano 4d302443ce Bug 970802 - part 3: Implement beforeinput event dispatcher and add onbeforeinput event handler attribute r=smaug
This patch makes `nsContentUtils::DispatchInputEvent()` dispatch `beforeinput`
event too.  And also adds `onbeforeinput` event handler which is really
important for feature detection (although Chrome has not implemented this
attribute yet: https://bugs.chromium.org/p/chromium/issues/detail?id=947408).

However, we don't implement `InputEvent.getTargetRanges()` in this bug and
implementing `beforeinput` event may hit bugs of some web apps.  Therefore,
this patch disables `beforeinput` event by default even in Nightly channel.

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

--HG--
extra : moz-landing-system : lando
2020-01-14 07:15:45 +00:00
..
android Bug 1550058: Move most keyboard shortcut handling out of XBL. r=masayuki 2019-09-06 17:10:40 +00:00
crashtests Bug 1603074 - part 1: Make synthesizePlainDragAndDrop() synthesize drag events without DataTransfer object r=smaug 2019-12-21 12:27:06 +00:00
emacs Bug 1550058: Move most keyboard shortcut handling out of XBL. r=masayuki 2019-09-06 17:10:40 +00:00
mac Bug 1550058: Move most keyboard shortcut handling out of XBL. r=masayuki 2019-09-06 17:10:40 +00:00
test Bug 1607918. Fix case handling for webkit-prefixed transition/animation event handlers. r=smaug. 2020-01-13 20:04:59 +00:00
unix Bug 1550058: Move most keyboard shortcut handling out of XBL. r=masayuki 2019-09-06 17:10:40 +00:00
win Bug 1550058: Move most keyboard shortcut handling out of XBL. r=masayuki 2019-09-06 17:10:40 +00:00
AnimationEvent.cpp Bug 1578173 part 4. Switch event subclasses to constructor operations. r=smaug 2019-09-11 14:35:28 +00:00
AnimationEvent.h Bug 1578173 part 4. Switch event subclasses to constructor operations. r=smaug 2019-09-11 14:35:28 +00:00
AsyncEventDispatcher.cpp
AsyncEventDispatcher.h
BeforeUnloadEvent.cpp
BeforeUnloadEvent.h
Clipboard.cpp Bug 1601377 part 2. Make it clear that nsContentUtils::PrincipalHasPermission never takes a null nsIPrincipal. r=smaug 2019-12-08 21:10:15 +00:00
Clipboard.h
ClipboardEvent.cpp
ClipboardEvent.h
CommandEvent.cpp
CommandEvent.h
CompositionEvent.cpp Bug 1578173 part 4. Switch event subclasses to constructor operations. r=smaug 2019-09-11 14:35:28 +00:00
CompositionEvent.h Bug 1578173 part 4. Switch event subclasses to constructor operations. r=smaug 2019-09-11 14:35:28 +00:00
ConstructibleEventTarget.cpp
ConstructibleEventTarget.h
ContentEventHandler.cpp Bug 1600267: part 10) Call ComparePoints instead of ComparePoints_Deprecated in ContentEventHandler. r=masayuki 2020-01-07 09:01:53 +00:00
ContentEventHandler.h Bug 1587433: part 7.6) Adapt callers of RangeBoundaryBase::Offset(). r=smaug 2019-12-16 11:31:43 +00:00
CustomEvent.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in dom/ r=Ehsan 2019-12-06 09:24:56 +00:00
CustomEvent.h Bug 1578173 part 4. Switch event subclasses to constructor operations. r=smaug 2019-09-11 14:35:28 +00:00
DataTransfer.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in dom/ r=Ehsan 2019-12-06 09:24:56 +00:00
DataTransfer.h Bug 1578173 part 6. Remove remaining uses of [Constructor] from bindings. r=edgar 2019-09-12 11:01:17 +00:00
DataTransferItem.cpp Bug 1517588. Use nsIPrincipal::IsSystemPrincipal instead of nsContentUtils::IsSystemPrincipal r=bzbarsky 2019-12-05 04:44:32 +00:00
DataTransferItem.h Bug 1585284 - Use nsIGlobalObject in any Blob/File CTOR, r=smaug 2019-10-21 05:33:33 +00:00
DataTransferItemList.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in dom/ r=Ehsan 2019-12-06 09:24:56 +00:00
DataTransferItemList.h
DeviceMotionEvent.cpp Bug 1578173 part 4. Switch event subclasses to constructor operations. r=smaug 2019-09-11 14:35:28 +00:00
DeviceMotionEvent.h Bug 1578173 part 4. Switch event subclasses to constructor operations. r=smaug 2019-09-11 14:35:28 +00:00
DOMEventTargetHelper.cpp Bug 1593299 - Disconnect EventListenerManager is DOMEventTargetHelper's Unlink, r=masayuki 2019-11-03 00:03:12 +00:00
DOMEventTargetHelper.h Bug 1455020 - Extend CheckInnerWindowCorrectness() to check the state of the worker, r=smaug 2019-04-01 16:46:46 +00:00
DragEvent.cpp Bug 1578173 part 4. Switch event subclasses to constructor operations. r=smaug 2019-09-11 14:35:28 +00:00
DragEvent.h Bug 1578173 part 4. Switch event subclasses to constructor operations. r=smaug 2019-09-11 14:35:28 +00:00
Event.cpp Bug 1517588. Use nsIPrincipal::IsSystemPrincipal instead of nsContentUtils::IsSystemPrincipal r=bzbarsky 2019-12-05 04:44:32 +00:00
Event.h Bug 1578173 part 4. Switch event subclasses to constructor operations. r=smaug 2019-09-11 14:35:28 +00:00
EventDispatcher.cpp Bug 1517588. Use nsIPrincipal::IsSystemPrincipal instead of nsContentUtils::IsSystemPrincipal r=bzbarsky 2019-12-05 04:44:32 +00:00
EventDispatcher.h Bug 1448967 - Remove enablePrivilege. r=mccr8,marionette-reviewers,whimboo 2020-01-08 23:14:48 +00:00
EventListenerManager.cpp Bug 1607918. Fix case handling for webkit-prefixed transition/animation event handlers. r=smaug. 2020-01-13 20:04:59 +00:00
EventListenerManager.h Bug 1600545 - Remove useless inclusions of header files generated from IDL files in dom/ r=Ehsan 2019-12-06 09:24:56 +00:00
EventListenerService.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in dom/ r=Ehsan 2019-12-06 09:24:56 +00:00
EventListenerService.h Bug 1600545 - Remove useless inclusions of header files generated from IDL files in dom/ r=Ehsan 2019-12-06 09:24:56 +00:00
EventNameList.h Bug 970802 - part 3: Implement beforeinput event dispatcher and add onbeforeinput event handler attribute r=smaug 2020-01-14 07:15:45 +00:00
EventStateManager.cpp Bug 1603074 - part 1: Make synthesizePlainDragAndDrop() synthesize drag events without DataTransfer object r=smaug 2019-12-21 12:27:06 +00:00
EventStateManager.h Bug 1600362 - Cleanup IntersectionObserver. r=smaug 2019-11-29 20:39:36 +00:00
EventStates.h
EventTarget.cpp
EventTarget.h Bug 1529345 - Part 2: Add Gecko infrastructure for receiving notifications about debugger-related events. r=jimb,smaug 2019-06-17 04:36:29 +00:00
FocusEvent.cpp Bug 1578173 part 4. Switch event subclasses to constructor operations. r=smaug 2019-09-11 14:35:28 +00:00
FocusEvent.h Bug 1578173 part 4. Switch event subclasses to constructor operations. r=smaug 2019-09-11 14:35:28 +00:00
GlobalKeyListener.cpp Bug 1606774 - Change GetAttribute to GetAttr where possible r=baku 2020-01-03 23:40:53 +00:00
GlobalKeyListener.h Bug 1550058: Move most keyboard shortcut handling out of XBL. r=masayuki 2019-09-06 17:10:40 +00:00
ImageCaptureError.cpp
ImageCaptureError.h
IMEContentObserver.cpp Bug 1583766 - Consider IMEContentObserver to send selection change notification when its sender sends a text change notification r=m_kato 2019-09-30 03:59:09 +00:00
IMEContentObserver.h Bug 1569902 - part 5: Make IMEContentObserver stop observing attribute change r=smaug 2019-08-02 05:47:09 +00:00
IMEStateManager.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in dom/ r=Ehsan 2019-12-06 09:24:56 +00:00
IMEStateManager.h Bug 1549930 addendum - Notify widgets of IME blur on quit (on non-Android). r=masayuki 2019-06-17 04:51:29 +00:00
InputEvent.cpp Bug 1578173 part 4. Switch event subclasses to constructor operations. r=smaug 2019-09-11 14:35:28 +00:00
InputEvent.h Bug 1578173 part 4. Switch event subclasses to constructor operations. r=smaug 2019-09-11 14:35:28 +00:00
InputTypeList.h Bug 1532527 - Support "insertFromPasteAsQuotation" inputType value r=smaug 2019-03-05 14:35:43 +00:00
InternalMutationEvent.h
JSEventHandler.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in dom/ r=Ehsan 2019-12-06 09:24:56 +00:00
JSEventHandler.h
KeyboardEvent.cpp Bug 1578173 part 4. Switch event subclasses to constructor operations. r=smaug 2019-09-11 14:35:28 +00:00
KeyboardEvent.h Bug 1578173 part 4. Switch event subclasses to constructor operations. r=smaug 2019-09-11 14:35:28 +00:00
KeyEventHandler.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in dom/ r=Ehsan 2019-12-06 09:24:56 +00:00
KeyEventHandler.h Bug 1550058: Move most keyboard shortcut handling out of XBL. r=masayuki 2019-09-06 17:10:40 +00:00
KeyNameList.h
MessageEvent.cpp Bug 1578173 part 4. Switch event subclasses to constructor operations. r=smaug 2019-09-11 14:35:28 +00:00
MessageEvent.h Bug 1578173 part 4. Switch event subclasses to constructor operations. r=smaug 2019-09-11 14:35:28 +00:00
MouseEvent.cpp Bug 1578173 part 4. Switch event subclasses to constructor operations. r=smaug 2019-09-11 14:35:28 +00:00
MouseEvent.h Bug 1578173 part 4. Switch event subclasses to constructor operations. r=smaug 2019-09-11 14:35:28 +00:00
MouseScrollEvent.cpp Bug 1259660 - Cleaned up WidgetMouseEventBase by renaming WidgetMouseEventBase::inputSource to WidgetMouseEventBase::mInputSource r=masayuki 2019-04-21 18:19:43 +00:00
MouseScrollEvent.h
moz.build Bug 1594981 - improve BUG_COMPONENT in various moz.build files r=mccr8 2019-11-14 15:44:32 +00:00
MutationEvent.cpp
MutationEvent.h
NotifyPaintEvent.cpp
NotifyPaintEvent.h
nsIEventListenerService.idl Bug 1550937. Stop using [array] in nsIEventListenerService. r=smaug 2019-05-11 08:28:29 +00:00
PaintRequest.cpp Bug 1523969 part 6 - Move method definition inline comments to new line in 'dom/'. r=nika 2019-02-25 16:05:29 -06:00
PaintRequest.h
PendingFullscreenEvent.h
PhysicalKeyCodeNameList.h
PointerEvent.cpp Bug 1578173 part 4. Switch event subclasses to constructor operations. r=smaug 2019-09-11 14:35:28 +00:00
PointerEvent.h Bug 1578173 part 4. Switch event subclasses to constructor operations. r=smaug 2019-09-11 14:35:28 +00:00
PointerEventHandler.cpp Bug 1563139 - Remove StaticPrefs.h. r=glandium 2019-07-26 01:10:23 +00:00
PointerEventHandler.h Bug 1490044 - Move all prefs used in WebIDL to StaticPrefs. r=bzbarsky 2019-06-13 09:00:59 +00:00
RemoteDragStartData.cpp Bug 1561056 - Pass CSP on Link-drop r=ckerschb,Gijs,farre 2019-08-20 12:43:02 +00:00
RemoteDragStartData.h Bug 1561056 - Pass CSP on Link-drop r=ckerschb,Gijs,farre 2019-08-20 12:43:02 +00:00
ScrollAreaEvent.cpp
ScrollAreaEvent.h
ShortcutKeyDefinitionsForBrowserCommon.h Bug 1550058: Move most keyboard shortcut handling out of XBL. r=masayuki 2019-09-06 17:10:40 +00:00
ShortcutKeyDefinitionsForEditorCommon.h Bug 1550058: Move most keyboard shortcut handling out of XBL. r=masayuki 2019-09-06 17:10:40 +00:00
ShortcutKeyDefinitionsForInputCommon.h Bug 1550058: Move most keyboard shortcut handling out of XBL. r=masayuki 2019-09-06 17:10:40 +00:00
ShortcutKeyDefinitionsForTextAreaCommon.h Bug 1550058: Move most keyboard shortcut handling out of XBL. r=masayuki 2019-09-06 17:10:40 +00:00
ShortcutKeys.cpp Bug 1550058: Move most keyboard shortcut handling out of XBL. r=masayuki 2019-09-06 17:10:40 +00:00
ShortcutKeys.h Bug 1550058: Move most keyboard shortcut handling out of XBL. r=masayuki 2019-09-06 17:10:40 +00:00
SimpleGestureEvent.cpp Bug 1259660 - Cleaned up WidgetMouseEventBase by renaming WidgetMouseEventBase::inputSource to WidgetMouseEventBase::mInputSource r=masayuki 2019-04-21 18:19:43 +00:00
SimpleGestureEvent.h
SpeechRecognitionError.cpp Bug 1578173 part 6. Remove remaining uses of [Constructor] from bindings. r=edgar 2019-09-12 11:01:17 +00:00
SpeechRecognitionError.h Bug 1578173 part 6. Remove remaining uses of [Constructor] from bindings. r=edgar 2019-09-12 11:01:17 +00:00
StorageEvent.cpp Bug 1578173 part 4. Switch event subclasses to constructor operations. r=smaug 2019-09-11 14:35:28 +00:00
StorageEvent.h Bug 1578173 part 4. Switch event subclasses to constructor operations. r=smaug 2019-09-11 14:35:28 +00:00
TextClause.cpp
TextClause.h
TextComposition.cpp Bug 1600267: part 11) Call ComparePoints instead of ComparePoints_Deprecated in TextComposition. r=masayuki 2020-01-07 09:01:53 +00:00
TextComposition.h Bug 1600545 - Remove useless inclusions of header files generated from IDL files in dom/ r=Ehsan 2019-12-06 09:24:56 +00:00
Touch.cpp Bug 1578173 part 6. Remove remaining uses of [Constructor] from bindings. r=edgar 2019-09-12 11:01:17 +00:00
Touch.h Bug 1578173 part 6. Remove remaining uses of [Constructor] from bindings. r=edgar 2019-09-12 11:01:17 +00:00
TouchEvent.cpp Bug 1598330 - Convert dom.w3c_touch_events.enabled to a static pref. r=njn 2019-12-09 00:54:23 +00:00
TouchEvent.h Bug 1578173 part 4. Switch event subclasses to constructor operations. r=smaug 2019-09-11 14:35:28 +00:00
TransitionEvent.cpp Bug 1578173 part 4. Switch event subclasses to constructor operations. r=smaug 2019-09-11 14:35:28 +00:00
TransitionEvent.h Bug 1578173 part 4. Switch event subclasses to constructor operations. r=smaug 2019-09-11 14:35:28 +00:00
UIEvent.cpp Bug 1585156 - Remove useless inclusions of nsIDOMWindow.h and nsIDOMWindowUtils.h r=smaug 2019-09-30 22:06:47 +00:00
UIEvent.h Bug 1578173 part 4. Switch event subclasses to constructor operations. r=smaug 2019-09-11 14:35:28 +00:00
VirtualKeyCodeList.h
WheelEvent.cpp Bug 1578173 part 4. Switch event subclasses to constructor operations. r=smaug 2019-09-11 14:35:28 +00:00
WheelEvent.h Bug 1578173 part 4. Switch event subclasses to constructor operations. r=smaug 2019-09-11 14:35:28 +00:00
WheelHandlingHelper.cpp Bug 1602258. Use GetAvailableScrollingDirectionsForUserInputEvents in WheelHandlingUtils::CanScrollOn. r=botond 2019-12-18 23:08:24 +00:00
WheelHandlingHelper.h Bug 1573968 - Remove WheelTransaction::Prefs. r=njn 2019-08-14 22:18:59 +00:00
XULCommandEvent.cpp
XULCommandEvent.h