browser(firefox): pass drag action test (#5560)

This commit is contained in:
Joel Einbinder 2021-02-23 15:21:29 -08:00 committed by GitHub
parent df4b98464f
commit e677e7ba4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View file

@ -1,2 +1,2 @@
1234 1235
Changed: lushnikov@chromium.org Fri 19 Feb 2021 21:20:12 PM PST Changed: joel.einbinder@gmail.com Mon 22 Feb 2021 09:28:46 PM PST

View file

@ -819,10 +819,10 @@ class PageAgent {
null /* relatedTarget */, null /* relatedTarget */,
dragService.getCurrentSession().dataTransfer.mozCloneForEvent(type) dragService.getCurrentSession().dataTransfer.mozCloneForEvent(type)
); );
if (type !== 'drop' || dragService.dragAction)
window.windowUtils.dispatchDOMEventViaPresShellForTesting(element, event); window.windowUtils.dispatchDOMEventViaPresShellForTesting(element, event);
if (type === 'drop') if (type === 'drop')
dragService.endDragSession(true); this._cancelDragIfNeeded();
} }
_cancelDragIfNeeded() { _cancelDragIfNeeded() {