Bug 1590505 - Fix drag and drop of calendar events. r=darktrojan
authorPaul Morris <paul@thunderbird.net>
Fri, 25 Oct 2019 10:36:05 -0400
changeset 36501 6604dca556d4b49440d259ea8c63f6f5bbf18ec2
parent 36500 addbcedd8b4bc36da63e53558fbc4c4391f8df05
child 36502 7e30a34a0d7f9b3e66741548d7a44e9488ec3e16
push id2534
push userclokep@gmail.com
push dateMon, 02 Dec 2019 19:52:51 +0000
treeherdercomm-beta@055c50840778 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdarktrojan
bugs1590505
Bug 1590505 - Fix drag and drop of calendar events. r=darktrojan
calendar/base/content/calendar-dnd-listener.js
--- a/calendar/base/content/calendar-dnd-listener.js
+++ b/calendar/base/content/calendar-dnd-listener.js
@@ -581,17 +581,17 @@ function invokeEventDragSession(aItem, a
   transfer.setTransferData("text/calendar", supportsString, supportsString.data.length * 2);
   transfer.setTransferData("text/unicode", supportsString, supportsString.data.length * 2);
 
   let action = Ci.nsIDragService.DRAGDROP_ACTION_MOVE;
   let mutArray = Cc["@mozilla.org/array;1"].createInstance(Ci.nsIMutableArray);
   mutArray.appendElement(transfer);
   aXULBox.sourceObject = aItem;
   try {
-    cal.getDragService().invokeDragSession(aXULBox, null, mutArray, action);
+    cal.getDragService().invokeDragSession(aXULBox, null, null, mutArray, action);
   } catch (e) {
     if (e.result != Cr.NS_ERROR_FAILURE) {
       // Pressing Escape on some platforms results in NS_ERROR_FAILURE
       // being thrown. Catch this exception, but throw anything else.
       throw e;
     }
   }
 }