mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 10:33:33 +00:00
58f8b541ad
This patch makes the all `ePointerClick` event dispatcher in C++ code use `WidgetPointerEvent` instead of `WidgetMouseEvent`. Then, this patch also makes the all `click` event dispatcher in chrome code use `PointerEvent` instead of `MouseEvent`. For detecting wrong trusted event dispatching of `click` event, this patch adds assertion into `MouseEvent`. Therefore, all chrome test dispatchers also changed to use `PointerEvent`. Finally, this patch includes a change of a WPT. That checks the `pointerId` caused by executing an access key. In this case, the value should be `-1` rather than the default value `0` because Pointer Event spec defines so for synthetic pointer events caused by non-pointing devices [1]. Chrome also sets it to `-1` and fails [2]. Therefore, the new assertion will pass on both Firefox and Chrome. 1. https://w3c.github.io/pointerevents/#dom-pointerevent-pointerid 2. https://wpt.fyi/results/uievents/interface/keyboard-accesskey-click-event.html?run_id=5087897523060736&run_id=5136270464647168&run_id=5163620816388096&run_id=5201281304231936 Differential Revision: https://phabricator.services.mozilla.com/D213001 |
||
---|---|---|
.. | ||
crashtests | ||
test | ||
ChromeObserver.cpp | ||
ChromeObserver.h | ||
MenuBarListener.cpp | ||
MenuBarListener.h | ||
moz.build | ||
nsIBrowserController.idl | ||
nsIController.idl | ||
nsIControllers.idl | ||
nsXULCommandDispatcher.cpp | ||
nsXULCommandDispatcher.h | ||
nsXULContentSink.cpp | ||
nsXULContentSink.h | ||
nsXULContentUtils.cpp | ||
nsXULContentUtils.h | ||
nsXULControllers.cpp | ||
nsXULControllers.h | ||
nsXULElement.cpp | ||
nsXULElement.h | ||
nsXULPopupListener.cpp | ||
nsXULPopupListener.h | ||
nsXULPrototypeCache.cpp | ||
nsXULPrototypeCache.h | ||
nsXULPrototypeDocument.cpp | ||
nsXULPrototypeDocument.h | ||
nsXULSortService.cpp | ||
nsXULSortService.h | ||
XULBroadcastManager.cpp | ||
XULBroadcastManager.h | ||
XULButtonElement.cpp | ||
XULButtonElement.h | ||
XULFrameElement.cpp | ||
XULFrameElement.h | ||
XULMenuBarElement.cpp | ||
XULMenuBarElement.h | ||
XULMenuElement.cpp | ||
XULMenuElement.h | ||
XULMenuParentElement.cpp | ||
XULMenuParentElement.h | ||
XULPersist.cpp | ||
XULPersist.h | ||
XULPopupElement.cpp | ||
XULPopupElement.h | ||
XULResizerElement.cpp | ||
XULResizerElement.h | ||
XULTextElement.cpp | ||
XULTextElement.h | ||
XULTooltipElement.cpp | ||
XULTooltipElement.h | ||
XULTreeElement.cpp | ||
XULTreeElement.h |