Get rid of `synthesizeDragStart()` in EventUtils.js
Categories
(Core :: DOM: UI Events & Focus Handling, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox73 | --- | fixed |
People
(Reporter: masayuki, Assigned: masayuki)
References
Details
Attachments
(1 file)
All usage of synthesizeDragStart()
is, starting drag, cancel dragstart
, and finally compares dataTransfer
items and given expected data. So, we can make the users use synthesizePlainDragAndDrop()
instead. It's better API because it computes position of mouse operations at runtime and checks whether the drag start was succeeded with optional logging feature (i.e., it's easier to debug of intermittent failures).
Assignee | ||
Comment 1•6 years ago
|
||
All usage of synthesizeDragStart()
is, starting drag, cancel dragstart
,
and finally compares dataTransfer
items and given expected data. So,
we can make the users use synthesizePlainDragAndDrop()
instead. It's
better API because it computes position of mouse operations at runtime and
checks whether the drag start was succeeded with optional logging feature
(i.e., it's easier to debug of intermittent failures).
This patch creates synthesizePlainDragAndCancel()
for convenience. It
handles dragstart
instead of the callers.
Comment 3•6 years ago
|
||
bugherder |
Description
•