Closed Bug 1439182 Opened 7 years ago Closed 7 years ago

calendar-properties-dialog does not open.

Categories

(Calendar :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: arshad, Assigned: Fallen)

References

Details

Attachments

(1 file, 3 obsolete files)

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36 Steps to reproduce: I double clicked on a calendar to open calendar properties dialog. Actual results: Calendar properties dialog didn't open. I checked console and i can see the error `window.openDialog is not a function` Expected results: Calendar properties dialog should have opened.
Attached patch calendar-list-tree.patch (obsolete) β€” β€” Splinter Review
This patch will do the work.
Component: Untriaged → General
Product: Thunderbird → Calendar
Version: 60 → Trunk
Please request review for your patch from Philipp (:Fallen) or MakeMyDay.
Flags: needinfo?(arshdkhn1)
Flags: needinfo?(arshdkhn1)
Attachment #8951942 - Flags: review?(philipp)
Comment on attachment 8951942 [details] [diff] [review] calendar-list-tree.patch Review of attachment 8951942 [details] [diff] [review]: ----------------------------------------------------------------- Thanks for the patch! Can you also take care of the other callsite at calendar/base/content/calendar-common-sets.js ? r+ with that taken care.
Attachment #8951942 - Flags: review?(philipp) → review+
Assignee: nobody → arshdkhn1
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attached patch cal-prop-dialog.patch (obsolete) β€” β€” Splinter Review
Attachment #8951942 - Attachment is obsolete: true
Attachment #8952024 - Flags: review?(philipp)
Comment on attachment 8952024 [details] [diff] [review] cal-prop-dialog.patch Review of attachment 8952024 [details] [diff] [review]: ----------------------------------------------------------------- ::: calendar/base/content/calendar-common-sets.js @@ +359,1 @@ > cal.window.openCalendarWizard(window); You missed this one, no?
sure i did
I discussed with Arshad via IRC that there is more to this. The argument order was flipped in bug 1436488, because I thought it makes more sense to make the window optional and put it at the end. The migration code in calUtilsCompat was written after the fact, and didn't take this into account. The likely right fix would be to create a separate migration function in calUtilsCompat.jsm for the swapped argument functions that flips the arguments correctly.
Looks like there is another call site: calendar/lightning/content/messenger-overlay-accountCentral.xul 27 onclick="window.parent.cal.openCalendarWizard(window);"/>
Blocks: ltn62
Attached patch Fix - v1 (obsolete) β€” β€” Splinter Review
Thinking about it more I'm going with Arshad's suggestion to make the transition less confusing. Let's keep the window argument first, where ever this is called we will want to pass in a window anyway.
Assignee: arshdkhn1 → philipp
Attachment #8952024 - Attachment is obsolete: true
Attachment #8952024 - Flags: review?(philipp)
Attachment #8952220 - Flags: review?(makemyday)
Attached patch Fix - v1 β€” β€” Splinter Review
Attachment #8952220 - Attachment is obsolete: true
Attachment #8952220 - Flags: review?(makemyday)
Attachment #8952222 - Flags: review?(makemyday)
Successful try run: https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=6bf2037ffe4e067c007a0e4fe0dd6eb94c986c84&selectedJob=164056900 (note that try may look like it doesn't have all bugs, but there was a previous failed try run, so the newest one isn't showing all changesets. See https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=ae663d89c9caf8d2f0917f5c83168d8540100ea1&selectedJob=163954434 for the previous run)
Attachment #8952222 - Flags: review?(makemyday) → review+
Comment on attachment 8952222 [details] [diff] [review] Fix - v1 Maybe a good idea not to repeat vanilla attachment names across bugs.
Attachment #8952222 - Attachment filename: datautils-regression.diff → datautils-regression2.diff
Pushed by mozilla@jorgk.com: https://hg.mozilla.org/comm-central/rev/3b00b92e5342 Fix argument order for cal.window methods. r=MakeMyDay
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → 6.2
(In reply to Jorg K (GMT+1) from comment #13) > Comment on attachment 8952222 [details] [diff] [review] > Fix - v1 > > Maybe a good idea not to repeat vanilla attachment names across bugs. I would be interested to hear how this is affecting you. The filename I generate is from the hg bookmark, so it is often the same.
It gives problems importing the patch with "hg import" (well, that offers to rename it), so I prefer to rename the file on BMO to minimise the possible source of error. Many patch authors give their patches a bug number or describe the content. "datautils-regression" in two bugs is something I wouldn't have done. Anyway, I'll cope.
I've written a thing that will generate a more verbose filename when exporting, next time you will get something like bug-1439182-fix-argument-order-for-calwindow-methods.diff
Actually, that would be perfect since it contains the bug number and also what that bug is about. Thanks!
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: