Bug 1590505 - Fix drag and drop of calendar events. r=darktrojan a=pmorris
authorPaul Morris <paul@thunderbird.net>
Fri, 25 Oct 2019 10:36:05 -0400
changeset 37227 1f60ef9ee3b3a9a102ce7fd8f2121bd8f27bb1f5
parent 37226 5a596857b17a50819c55844b2e62967998d9b446
child 37228 3aae0034e44c0fbc7f847b9cbdd5474b581c1d20
push id395
push userclokep@gmail.com
push dateMon, 02 Dec 2019 19:38:57 +0000
reviewersdarktrojan, pmorris
bugs1590505
Bug 1590505 - Fix drag and drop of calendar events. r=darktrojan a=pmorris
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;
     }
   }
 }