From 5e3c384cd7ee83d0f77c26bf3107adcfaba0d207 Mon Sep 17 00:00:00 2001 From: Olli Pettay Date: Fri, 12 Oct 2018 14:05:26 +0300 Subject: [PATCH] Bug 1498381 - EventUtils.js shouldn't dispatch artificial mouseup after dnd, r=masayuki --- testing/mochitest/tests/SimpleTest/EventUtils.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/testing/mochitest/tests/SimpleTest/EventUtils.js b/testing/mochitest/tests/SimpleTest/EventUtils.js index 90127e4a9501..3eed9793cb3c 100644 --- a/testing/mochitest/tests/SimpleTest/EventUtils.js +++ b/testing/mochitest/tests/SimpleTest/EventUtils.js @@ -2335,8 +2335,6 @@ function synthesizeDropAfterDragOver(aResult, aDataTransfer, aDestElement, aDest sendDragEvent(event, aDestElement, aDestWindow); } - synthesizeMouseAtCenter(aDestElement, { type: "mouseup" }, aDestWindow); - return effect; } @@ -2465,7 +2463,6 @@ async function synthesizePlainDragAndDrop(aParams) await new Promise(r => setTimeout(r, 0)); - synthesizeMouseAtCenter(destElement, { type: "mouseup" }, destWindow); } finally { ds.endDragSession(true, 0); }