Closed Bug 1590505 Opened 6 years ago Closed 6 years ago

Drag and drop of calendar events in month and multiweek views doesn't work

Categories

(Calendar :: Calendar Frontend, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 71.0

People

(Reporter: pmorris, Assigned: pmorris)

Details

Attachments

(1 file)

On trunk, when you try to drag and drop a calendar event (including all day events) in month or multi-week view, the event does not move and the following error appears in the console:

NS_ERROR_XPC_NOT_ENOUGH_ARGS: Not enough arguments [nsIDragService.invokeDragSession] 3 calendar-dnd-listener.js:589
    invokeEventDragSession chrome://calendar/content/calendar-dnd-listener.js:589
    MozCalendarEditableItem chrome://calendar/content/calendar-editable-item.js:123

Looks like bug 1561056 added an additional csp argument to invokeDragSession (in nsIContentSecurityPolicy aCsp) and we haven't caught up yet:
https://searchfox.org/mozilla-central/source/widget/nsIDragService.idl#59

(Seems like we should have a test for dragging and dropping calendar events.)

Well that was simpler than it looked.

Assignee: nobody → paul
Status: NEW → ASSIGNED
Attachment #9104229 - Flags: review?(geoff)
Attachment #9104229 - Flags: review?(geoff) → review+

Adding "checkin-needed-tb". Let me know if we're still using "checkin-needed" instead.

If this broke due to bug 1561056, this will need beta uplift. Kindly add it yourself while Geoff's away this week. I'll be building another beta in a few days.

Flags: needinfo?(paul)
Target Milestone: --- → 72

Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/6604dca556d4
Fix drag and drop of calendar events. r=darktrojan

Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Comment on attachment 9104229 [details] [diff] [review] drag-and-drop-cal-events-0.patch This is indeed needed on beta. Adding approval for upload since Geoff is out this week.
Flags: needinfo?(paul)
Attachment #9104229 - Flags: approval-calendar-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: