Bug 1515204 - add mouseup after drop in EventUtils, r=NeilDeakin
☠☠ backed out by 09176cea4448 ☠ ☠
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Thu, 25 Apr 2019 15:45:23 +0000
changeset 530146 72ae3513844cdb10886cd351ad7bf7ea5d512248
parent 530145 155b510b215d6a95bfe57c36df1c57ca8bdfbeff
child 530147 6dea6fe4571e9d219b49a5e4cfbfefd87b7299f3
push id11265
push userffxbld-merge
push dateMon, 13 May 2019 10:53:39 +0000
treeherdermozilla-beta@77e0fe8dbdd3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersNeilDeakin
bugs1515204
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1515204 - add mouseup after drop in EventUtils, r=NeilDeakin Differential Revision: https://phabricator.services.mozilla.com/D28749
browser/components/customizableui/test/browser.ini
testing/mochitest/tests/SimpleTest/EventUtils.js
--- a/browser/components/customizableui/test/browser.ini
+++ b/browser/components/customizableui/test/browser.ini
@@ -83,17 +83,16 @@ skip-if = os == "linux" # Intermittent f
 [browser_947914_button_zoomReset.js]
 skip-if = os == "linux" # Intermittent failures
 [browser_947987_removable_default.js]
 [browser_948985_non_removable_defaultArea.js]
 [browser_952963_areaType_getter_no_area.js]
 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]
 [browser_969427_recreate_destroyed_widget_after_reset.js]
 [browser_969661_character_encoding_navbar_disabled.js]
 [browser_970511_undo_restore_default.js]
 skip-if = verify
 [browser_972267_customizationchange_events.js]
--- a/testing/mochitest/tests/SimpleTest/EventUtils.js
+++ b/testing/mochitest/tests/SimpleTest/EventUtils.js
@@ -2332,16 +2332,17 @@ function synthesizeDropAfterDragOver(aRe
 
   if (aResult) {
     effect = "none";
   } else if (effect != "none") {
     event = createDragEventObject("drop", aDestElement, aDestWindow,
                                   aDataTransfer, aDragEvent);
     sendDragEvent(event, aDestElement, aDestWindow);
   }
+  synthesizeMouse(aDestElement, 2, 2, { type: "mouseup" }, aDestWindow);
 
   return effect;
 }
 
 /**
  * Emulate a drag and drop by emulating a dragstart and firing events dragenter,
  * dragover, and drop.
  *