browser(firefox): pass drag action test (#5560)
This commit is contained in:
parent
df4b98464f
commit
e677e7ba4e
|
|
@ -1,2 +1,2 @@
|
|||
1234
|
||||
Changed: lushnikov@chromium.org Fri 19 Feb 2021 21:20:12 PM PST
|
||||
1235
|
||||
Changed: joel.einbinder@gmail.com Mon 22 Feb 2021 09:28:46 PM PST
|
||||
|
|
|
|||
|
|
@ -819,10 +819,10 @@ class PageAgent {
|
|||
null /* relatedTarget */,
|
||||
dragService.getCurrentSession().dataTransfer.mozCloneForEvent(type)
|
||||
);
|
||||
|
||||
window.windowUtils.dispatchDOMEventViaPresShellForTesting(element, event);
|
||||
if (type !== 'drop' || dragService.dragAction)
|
||||
window.windowUtils.dispatchDOMEventViaPresShellForTesting(element, event);
|
||||
if (type === 'drop')
|
||||
dragService.endDragSession(true);
|
||||
this._cancelDragIfNeeded();
|
||||
}
|
||||
|
||||
_cancelDragIfNeeded() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue