mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
4101b26261
`drop` event shouldn't be fired when drop target does not accept the data at last `dragover` handling. This patch makes `synthesizePlainDragAndDrop()` stop dispatching `drop` event if last `dragover` event's `dataTransfer.dropEffect` is `none`. In strictly speaking, it should refer `nsIDragSession::canDrop`. However, the value is unstable only on Linux. The reason must be that only GTK widget manages `canDrop` state by itself. Therefore, this patch directly uses the `dataTransfer.dropEffect` value instead. Differential Revision: https://phabricator.services.mozilla.com/D60476 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
browser | ||
Harness_sanity | ||
MochiKit-1.4.2 | ||
python | ||
SimpleTest | ||
moz.build |