Bug 1515204 - add mouseup after drop in EventUtils, r=NeilDeakin

Differential Revision: https://phabricator.services.mozilla.com/D28749

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Gijs Kruitbosch 2019-04-30 12:55:23 +00:00
parent 69a53af128
commit 811c33eeca
3 changed files with 3 additions and 2 deletions

View File

@ -88,7 +88,6 @@ skip-if = os == "linux" # Intermittent failures
skip-if = verify
[browser_956602_remove_special_widget.js]
[browser_962069_drag_to_overflow_chevron.js]
skip-if = verify || os == "linux" || os == "mac" && debug # bug 1515204
[browser_963639_customizing_attribute_non_customizable_toolbar.js]
[browser_967000_button_charEncoding.js]
[browser_968565_insert_before_hidden_items.js]

View File

@ -8,7 +8,7 @@
</style>
</head>
<body>
<input id="input1">
<input id="input1" value="aaaaaaaaaaaaaaaaaaaa">
<div id=div1 style="height: 100px;">
<textarea id="textarea1" style="display: none;"></textarea>
</div>
@ -16,6 +16,7 @@
SimpleTest.waitForFocus(() => {
let input1 = document.getElementById('input1');
input1.focus();
input1.selectionStart = input1.selectionEnd = 0;
synthesizeKey("A");
document.documentElement.removeAttribute("class");
});

View File

@ -2337,6 +2337,7 @@ function synthesizeDropAfterDragOver(aResult, aDataTransfer, aDestElement, aDest
aDataTransfer, aDragEvent);
sendDragEvent(event, aDestElement, aDestWindow);
}
synthesizeMouse(aDestElement, 2, 2, { type: "mouseup" }, aDestWindow);
return effect;
}