Bug 1478375 - Restore Dragging for Calendar: call invokeDragService without a region argument. r=philipp
authorMakeMyDay <makemyday@gmx-topmail.de>
Mon, 10 Sep 2018 18:59:03 +0200
changeset 33181 834b5f6d29c4965a9ee575635b9ef3c860efa7c5
parent 33180 96176520c89516bcb48c6ac959dfcf89edd07dc7
child 33182 e3061aa78b383ba59ba4f511d6d579f395113e63
push id387
push userclokep@gmail.com
push dateMon, 10 Dec 2018 21:30:47 +0000
reviewersphilipp
bugs1478375
Bug 1478375 - Restore Dragging for Calendar: call invokeDragService without a region argument. r=philipp
calendar/base/content/calendar-dnd-listener.js
--- a/calendar/base/content/calendar-dnd-listener.js
+++ b/calendar/base/content/calendar-dnd-listener.js
@@ -606,17 +606,17 @@ function invokeEventDragSession(aItem, a
     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, "", mutArray, null, action);
+        cal.getDragService().invokeDragSession(aXULBox, "", mutArray, action);
     } catch (e) {
         if (e.result != Components.results.NS_ERROR_FAILURE) {
             // Pressing Escape on some platforms results in NS_ERROR_FAILURE
             // being thrown. Catch this exception, but throw anything else.
             throw e;
         }
     }
 }