gecko-dev/dom/events
Hiroyuki Ikezoe db5de169ad Bug 1692708 - Add cancelScrollAnimation and use it in window_bug1369072.html and browser_scroll.js. r=botond
Both window_bug1369072.html and browser_scroll.js have a pattern something like;

1) Call synthesizeKey to scroll an element
2) Wait a scroll event
3) Test something
4) (Re)set the scroll position to (0, 0) by calling Element.scrollTop and
   Element.scrollLeft or scrollTo.

With the new transmogrification the step 4) will not reset the scroll position
if there's an on-going scroll animation in APZ triggered by the synthesizeKey.

To avoid the situation where there's an on-going animation at the step 4), we
destroy the corresponding scrollable frame and reconstruct it so that it
clobbers the animation.

Differential Revision: https://phabricator.services.mozilla.com/D130852
2021-11-12 07:54:17 +00:00
..
crashtests Bug 1692068 - Disable broken crashtests on tsan. r=necko-reviewers,decoder,dragana 2021-05-25 01:15:49 +00:00
test Bug 1692708 - Add cancelScrollAnimation and use it in window_bug1369072.html and browser_scroll.js. r=botond 2021-11-12 07:54:17 +00:00
AnimationEvent.cpp Bug 1674637 - Use nested namespaces in dom/ r=sg,andi 2020-11-04 17:04:01 +00:00
AnimationEvent.h Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/events. r=smaug 2020-02-20 15:56:28 +00:00
AsyncEventDispatcher.cpp Bug 1455514 - part 1: Add accessors and static helper methods to retrieve `nsINode` or its concrete classes from `EventTarget` r=smaug 2021-11-02 13:03:43 +00:00
AsyncEventDispatcher.h
BeforeUnloadEvent.cpp Bug 1674637 - Use nested namespaces in dom/ r=sg,andi 2020-11-04 17:04:01 +00:00
BeforeUnloadEvent.h Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/events. r=smaug 2020-02-20 15:56:28 +00:00
Clipboard.cpp Bug 1689835 - clipboard.write: Sanitize HTML. r=nika 2021-04-20 20:40:08 +00:00
Clipboard.h Bug 1619947 - Reimplement navigator.clipboard.write to use ClipboardItem r=nika 2021-01-24 12:35:46 +00:00
ClipboardEvent.cpp Bug 1660470 - Add missing include directives/forward declarations. r=nika 2020-11-23 16:21:38 +00:00
ClipboardEvent.h Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/events. r=smaug 2020-02-20 15:56:28 +00:00
ClipboardItem.cpp Bug 1688279 - Support strings as data in ClipboardItem r=nika 2021-01-29 22:33:55 +00:00
ClipboardItem.h Bug 1688279 - Support strings as data in ClipboardItem r=nika 2021-01-29 22:33:55 +00:00
CommandEvent.cpp Bug 1674637 - Use nested namespaces in dom/ r=sg,andi 2020-11-04 17:04:01 +00:00
CommandEvent.h Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/events. r=smaug 2020-02-20 15:56:28 +00:00
CompositionEvent.cpp Bug 1674637 - Use nested namespaces in dom/ r=sg,andi 2020-11-04 17:04:01 +00:00
CompositionEvent.h Bug 1723050 - Part 9: Replace typedef by using in dom/events/ r=masayuki 2021-08-07 10:36:35 +00:00
ConstructibleEventTarget.cpp Bug 1674637 - Use nested namespaces in dom/ r=sg,andi 2020-11-04 17:04:01 +00:00
ConstructibleEventTarget.h
ContentEventHandler.cpp Bug 1734771 - part 12: Make `ContentEventHandler::GuessLineBreakerRectAfter()` take `const Text&` instead of `nsIContent*` r=m_kato 2021-10-13 23:07:25 +00:00
ContentEventHandler.h Bug 1734771 - part 12: Make `ContentEventHandler::GuessLineBreakerRectAfter()` take `const Text&` instead of `nsIContent*` r=m_kato 2021-10-13 23:07:25 +00:00
CustomEvent.cpp Bug 1712725 - Stop clearing JS things when calling mozilla::DropJSObjects. r=mccr8 2021-05-27 08:35:40 +00:00
CustomEvent.h Bug 1660470 - Add missing include directives/forward declarations. r=nika 2020-11-23 16:21:38 +00:00
DOMEventTargetHelper.cpp Bug 1679204 - Consider to add signal to addEventListener, r=edgar 2020-12-14 15:45:15 +00:00
DOMEventTargetHelper.h Bug 1673931 - Avoid including BindingDeclarations.h from header files. r=nika 2021-03-04 14:32:14 +00:00
DataTransfer.cpp Bug 1660470 - Add missing include directives/forward declarations. r=nika 2020-11-23 16:21:38 +00:00
DataTransfer.h Bug 1671641 - Make `dom/events` buildable outside of `unified-build` environment. r=sg 2020-10-21 08:00:18 +00:00
DataTransferItem.cpp Bug 1660470 - Add missing include directives/forward declarations. r=nika 2020-11-23 16:21:38 +00:00
DataTransferItem.h Bug 1679522 - Fix include directives and forward declarations. r=andi,necko-reviewers,jgilbert 2021-03-25 10:19:44 +00:00
DataTransferItemList.cpp Bug 1737041 - DataTransfer.types should include 'Files'. r=masayuki 2021-11-11 09:59:42 +00:00
DataTransferItemList.h Bug 1679522 - Fix include directives and forward declarations. r=andi,necko-reviewers,jgilbert 2021-03-25 10:19:44 +00:00
DeviceMotionEvent.cpp Bug 1674637 - Use nested namespaces in dom/ r=sg,andi 2020-11-04 17:04:01 +00:00
DeviceMotionEvent.h Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/events. r=smaug 2020-02-20 15:56:28 +00:00
DragEvent.cpp Bug 1674637 - Use nested namespaces in dom/ r=sg,andi 2020-11-04 17:04:01 +00:00
DragEvent.h Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/events. r=smaug 2020-02-20 15:56:28 +00:00
Event.cpp Backed out changeset 6a408466ecb6 (bug 1731504) for causing bug 1739045 CLOSED TREE 2021-11-03 12:10:03 -04:00
Event.h Bug 1635018 - Part 1: Limit dragexit event to chrome on Nightly r=edgar,masayuki 2021-08-05 14:33:38 +00:00
EventDispatcher.cpp Backed out changeset 6a408466ecb6 (bug 1731504) for causing bug 1739045 CLOSED TREE 2021-11-03 12:10:03 -04:00
EventDispatcher.h Bug 1691515 - Add MOZ_KNOWN_LIVE member annotation r=andi 2021-03-05 23:23:03 +00:00
EventListenerManager.cpp Bug 1455514 - part 2: Add accessors and static helper methods to retrieve `nsPIDOMWindowInner`, `nsPIDOMWindowOuter` and `nsPIWindowRoot` r=smaug 2021-11-02 13:03:43 +00:00
EventListenerManager.h Bug 1735945 - Split unload into unload and beforeunload for BFCACHE_COMBO telemetry probe r=smaug 2021-10-18 17:31:28 +00:00
EventListenerService.cpp Bug 1455514 - part 1: Add accessors and static helper methods to retrieve `nsINode` or its concrete classes from `EventTarget` r=smaug 2021-11-02 13:03:43 +00:00
EventListenerService.h Bug 1720574 - Add a way to disable event listeners, r=edgar,Honza 2021-07-16 12:04:37 +00:00
EventNameList.h Bug 1737501 - Allow contextmenu option on Windows SystemStatusBar r=mconley 2021-10-28 16:07:31 +00:00
EventStateManager.cpp Bug 1455514 - part 1: Add accessors and static helper methods to retrieve `nsINode` or its concrete classes from `EventTarget` r=smaug 2021-11-02 13:03:43 +00:00
EventStateManager.h Bug 1723050 - Part 9: Replace typedef by using in dom/events/ r=masayuki 2021-08-07 10:36:35 +00:00
EventStates.h Bug 1740230 - Remove some prefs for pseudo-classes that we have shipped/unshipped successfully. r=dholbert 2021-11-10 13:27:47 +00:00
EventTarget.cpp Bug 1455514 - part 2: Add accessors and static helper methods to retrieve `nsPIDOMWindowInner`, `nsPIDOMWindowOuter` and `nsPIWindowRoot` r=smaug 2021-11-02 13:03:43 +00:00
EventTarget.h Bug 1455514 - part 2: Add accessors and static helper methods to retrieve `nsPIDOMWindowInner`, `nsPIDOMWindowOuter` and `nsPIWindowRoot` r=smaug 2021-11-02 13:03:43 +00:00
FocusEvent.cpp Bug 1674637 - Use nested namespaces in dom/ r=sg,andi 2020-11-04 17:04:01 +00:00
FocusEvent.h Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/events. r=smaug 2020-02-20 15:56:28 +00:00
GlobalKeyListener.cpp Bug 1732845 - Add `nsINode::IsInDesignMode()` to check whether the node is directly in design mode r=smaug 2021-10-12 03:14:43 +00:00
GlobalKeyListener.h Bug 1634474. Make `dom/html/` buildable outside of `unified-build` environment. r=farre 2020-05-04 14:29:02 +00:00
IMEContentObserver.cpp Bug 1734771 - part 5: Make `ContentEventHandler::GetNativeTextLength()` take `const Text&` instead of `nsIContent*` r=m_kato 2021-10-12 23:05:08 +00:00
IMEContentObserver.h Bug 1729115 - part 1: Make it possible tests to retrieve a node being observed by `IMEContentObserver` for the following changes r=smaug 2021-10-12 04:41:13 +00:00
IMEStateManager.cpp Bug 1729115 - part 3: Make `IMEStateManager` check whether given focused content matches with null `sContent` in design mode r=m_kato 2021-10-12 04:41:14 +00:00
IMEStateManager.h Bug 1729115 - part 3: Make `IMEStateManager` check whether given focused content matches with null `sContent` in design mode r=m_kato 2021-10-12 04:41:14 +00:00
ImageCaptureError.cpp Bug 1674637 - Use nested namespaces in dom/ r=sg,andi 2020-11-04 17:04:01 +00:00
ImageCaptureError.h
InputEvent.cpp Bug 1725145 - header files fixes in the hybrid build env. r=valentin 2021-08-22 10:21:55 +00:00
InputEvent.h Bug 1449831 - part 1: Add `InputEvent.getTargetRanges()` r=smaug 2020-03-02 07:39:38 +00:00
InputEventOptions.h Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi 2021-01-07 08:53:08 +00:00
InputTypeList.h
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
KeyEventHandler.cpp Bug 1455514 - part 2: Add accessors and static helper methods to retrieve `nsPIDOMWindowInner`, `nsPIDOMWindowOuter` and `nsPIWindowRoot` r=smaug 2021-11-02 13:03:43 +00:00
KeyEventHandler.h Bug 1510500 - part 1: Add GTest for checking no unexpected changes in `ShortcutKeyDefinitions.cpp` r=edgar 2021-02-07 11:06:26 +00:00
KeyNameList.h
KeyboardEvent.cpp Bug 1450398: Apply finer-grained RFP checks to Keyboard Event r=tjr 2021-10-05 13:57:36 +00:00
KeyboardEvent.h Bug 1727024 - Make `KeyboardEvent.initKeyEvent` is available in addons r=smaug 2021-08-24 09:52:23 +00:00
MessageEvent.cpp Bug 1712725 - Stop clearing JS things when calling mozilla::DropJSObjects. r=mccr8 2021-05-27 08:35:40 +00:00
MessageEvent.h Bug 1653229 - Remove unnecessary includes for BindingUtils.h. r=jgilbert 2020-07-22 15:12:10 +00:00
MouseEvent.cpp Bug 1697585 - Prevent starting scrolling again in the child process if preventClickEvent has been called r=masayuki,smaug 2021-04-14 19:56:44 +00:00
MouseEvent.h Bug 1697585 - Prevent starting scrolling again in the child process if preventClickEvent has been called r=masayuki,smaug 2021-04-14 19:56:44 +00:00
MouseScrollEvent.cpp Bug 1674637 - Use nested namespaces in dom/ r=sg,andi 2020-11-04 17:04:01 +00:00
MouseScrollEvent.h Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/events. r=smaug 2020-02-20 15:56:28 +00:00
MutationEvent.cpp Bug 1674637 - Use nested namespaces in dom/ r=sg,andi 2020-11-04 17:04:01 +00:00
MutationEvent.h Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/events. r=smaug 2020-02-20 15:56:28 +00:00
NotifyPaintEvent.cpp Bug 1674637 - Use nested namespaces in dom/ r=sg,andi 2020-11-04 17:04:01 +00:00
NotifyPaintEvent.h Bug 1660470 - Add missing include directives/forward declarations. r=nika 2020-11-23 16:21:38 +00:00
PaintRequest.cpp Bug 1674637 - Use nested namespaces in dom/ r=sg,andi 2020-11-04 17:04:01 +00:00
PaintRequest.h Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/events. r=smaug 2020-02-20 15:56:28 +00:00
PendingFullscreenEvent.h Bug 1679522 - Fix include directives and forward declarations. r=andi,necko-reviewers,jgilbert 2021-03-25 10:19:44 +00:00
PhysicalKeyCodeNameList.h
PointerEvent.cpp Bug 1732578: cut over pointerevents for finer grain API r=tjr 2021-10-13 14:57:00 +00:00
PointerEvent.h Bug 1728626 - PointerEvent.pointerType should be allowed to be arbitrary from constructor; r=smaug 2021-09-03 15:04:56 +00:00
PointerEventHandler.cpp Bug 1455514 - part 1: Add accessors and static helper methods to retrieve `nsINode` or its concrete classes from `EventTarget` r=smaug 2021-11-02 13:03:43 +00:00
PointerEventHandler.h Bug 1511231 - Part 2: Make PointerEventHandler::InitPointerEventFromTouch take references; r=smaug 2021-08-19 13:27:12 +00:00
RemoteDragStartData.cpp Bug 1727176, use window contexts for the drag and drop source, r=smaug 2021-08-31 00:58:34 +00:00
RemoteDragStartData.h Bug 1727176, use window contexts for the drag and drop source, r=smaug 2021-08-31 00:58:34 +00:00
ScrollAreaEvent.cpp Bug 1674637 - Use nested namespaces in dom/ r=sg,andi 2020-11-04 17:04:01 +00:00
ScrollAreaEvent.h Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/events. r=smaug 2020-02-20 15:56:28 +00:00
ShortcutKeyDefinitions.cpp Bug 1510500 - part 15: Group the other shortcut definitions r=edgar 2021-02-07 11:09:11 +00:00
ShortcutKeys.cpp Bug 1510500 - part 1: Add GTest for checking no unexpected changes in `ShortcutKeyDefinitions.cpp` r=edgar 2021-02-07 11:06:26 +00:00
ShortcutKeys.h Bug 1723050 - Part 9: Replace typedef by using in dom/events/ r=masayuki 2021-08-07 10:36:35 +00:00
SimpleGestureEvent.cpp Bug 1674637 - Use nested namespaces in dom/ r=sg,andi 2020-11-04 17:04:01 +00:00
SimpleGestureEvent.h Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/events. r=smaug 2020-02-20 15:56:28 +00:00
SpeechRecognitionError.cpp Bug 1213512 use UTF8 for MediaMgrError and SpeechRecognitionError message r=jib 2020-11-15 21:59:05 +00:00
SpeechRecognitionError.h Bug 1213512 use UTF8 for MediaMgrError and SpeechRecognitionError message r=jib 2020-11-15 21:59:05 +00:00
StorageEvent.cpp Bug 1674637 - Use nested namespaces in dom/ r=sg,andi 2020-11-04 17:04:01 +00:00
StorageEvent.h Bug 1653229 - Remove unnecessary includes for BindingUtils.h. r=jgilbert 2020-07-22 15:12:10 +00:00
TextClause.cpp Bug 1674637 - Use nested namespaces in dom/ r=sg,andi 2020-11-04 17:04:01 +00:00
TextClause.h Bug 1678062 - Remove unnecessary includes. r=andi 2020-11-23 16:12:02 +00:00
TextComposition.cpp Bug 1682030 - Remove some dead NPAPI code from dom/plugins and related spots. r=jmathies,mconley,ipc-reviewers,mccr8 2021-04-06 19:28:12 +00:00
TextComposition.h Bug 1733465 part 3: Make nsPresContext::GetRootWidget() return an already_AddRefed pointer instead of a raw pointer. r=tnikkel 2021-10-01 20:38:10 +00:00
Touch.cpp Bug 1455514 - part 1: Add accessors and static helper methods to retrieve `nsINode` or its concrete classes from `EventTarget` r=smaug 2021-11-02 13:03:43 +00:00
Touch.h Bug 1712825 - Allow coalescing touchmove events in BrowserChild r=smaug 2021-06-07 15:29:15 +00:00
TouchEvent.cpp Bug 1455514 - part 1: Add accessors and static helper methods to retrieve `nsINode` or its concrete classes from `EventTarget` r=smaug 2021-11-02 13:03:43 +00:00
TouchEvent.h Bug 1701796: Move IsTouchDeviceSupportPresent to LookAndFeel remoting to prevent win32k usage in the content process. r=emilio,geckoview-reviewers,owlish 2021-08-25 14:32:13 +00:00
TransitionEvent.cpp Bug 1674637 - Use nested namespaces in dom/ r=sg,andi 2020-11-04 17:04:01 +00:00
TransitionEvent.h Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/events. r=smaug 2020-02-20 15:56:28 +00:00
UIEvent.cpp Bug 1672330 - Move pointer lock code to PointerLockManager; r=smaug 2021-01-27 16:38:29 +00:00
UIEvent.h Bug 1660470 - Add missing include directives/forward declarations. r=nika 2020-11-23 16:21:38 +00:00
VirtualKeyCodeList.h
WheelEvent.cpp Bug 1708829 - Make sure that delta* getters account for scroll speed override correctly. r=masayuki 2021-05-14 17:44:29 +00:00
WheelEvent.h Bug 1708829 - Expose WheelEvent.wheelDelta{,X,Y} for compat with other engines. r=masayuki 2021-05-14 15:17:33 +00:00
WheelHandlingHelper.cpp Bug 1708829 - Make sure that delta* getters account for scroll speed override correctly. r=masayuki 2021-05-14 17:44:29 +00:00
WheelHandlingHelper.h Bug 1708829 - Make sure that delta* getters account for scroll speed override correctly. r=masayuki 2021-05-14 17:44:29 +00:00
XULCommandEvent.cpp Bug 1704948 - Give XULCommandEvent a button property. r=smaug,preferences-reviewers 2021-04-20 17:44:16 +00:00
XULCommandEvent.h Bug 1704948 - Give XULCommandEvent a button property. r=smaug,preferences-reviewers 2021-04-20 17:44:16 +00:00
moz.build Bug 1697769 - Apply implicit pointer capture only for pointer events that are generated from the touch events; r=smaug 2021-04-13 13:14:12 +00:00
nsIEventListenerService.idl Bug 1720574 - Add a way to disable event listeners, r=edgar,Honza 2021-07-16 12:04:37 +00:00