Bug 1498381 - EventUtils.js shouldn't dispatch artificial mouseup after dnd, r=masayuki

This commit is contained in:
Olli Pettay 2018-10-12 14:05:26 +03:00
parent 6782f178aa
commit 5e3c384cd7

View File

@ -2335,8 +2335,6 @@ function synthesizeDropAfterDragOver(aResult, aDataTransfer, aDestElement, aDest
sendDragEvent(event, aDestElement, aDestWindow); sendDragEvent(event, aDestElement, aDestWindow);
} }
synthesizeMouseAtCenter(aDestElement, { type: "mouseup" }, aDestWindow);
return effect; return effect;
} }
@ -2465,7 +2463,6 @@ async function synthesizePlainDragAndDrop(aParams)
await new Promise(r => setTimeout(r, 0)); await new Promise(r => setTimeout(r, 0));
synthesizeMouseAtCenter(destElement, { type: "mouseup" }, destWindow);
} finally { } finally {
ds.endDragSession(true, 0); ds.endDragSession(true, 0);
} }