Closed
Bug 1439182
Opened 7 years ago
Closed 7 years ago
calendar-properties-dialog does not open.
Categories
(Calendar :: General, defect)
Calendar
General
Tracking
(Not tracked)
RESOLVED
FIXED
6.2
People
(Reporter: arshad, Assigned: Fallen)
References
Details
Attachments
(1 file, 3 obsolete files)
3.01 KB,
patch
|
MakeMyDay
:
review+
|
Details | Diff | Splinter Review |
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.
Reporter | ||
Comment 1•7 years ago
|
||
This error can be removed by either swapping function params on https://dxr.mozilla.org/comm-central/source/calendar/base/modules/calWindowUtils.jsm#32 or https://dxr.mozilla.org/comm-central/source/calendar/base/content/widgets/calendar-list-tree.xml#161
Reporter | ||
Comment 2•7 years ago
|
||
This patch will do the work.
Updated•7 years ago
|
Component: Untriaged → General
Product: Thunderbird → Calendar
Version: 60 → Trunk
Comment 3•7 years ago
|
||
Please request review for your patch from Philipp (:Fallen) or MakeMyDay.
Flags: needinfo?(arshdkhn1)
Reporter | ||
Updated•7 years ago
|
Flags: needinfo?(arshdkhn1)
Attachment #8951942 -
Flags: review?(philipp)
Assignee | ||
Comment 4•7 years ago
|
||
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 | ||
Updated•7 years ago
|
Assignee: nobody → arshdkhn1
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Reporter | ||
Comment 5•7 years ago
|
||
Attachment #8951942 -
Attachment is obsolete: true
Attachment #8952024 -
Flags: review?(philipp)
Comment 6•7 years ago
|
||
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?
Reporter | ||
Comment 7•7 years ago
|
||
sure i did
Assignee | ||
Comment 8•7 years ago
|
||
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.
Comment 9•7 years ago
|
||
Looks like there is another call site:
calendar/lightning/content/messenger-overlay-accountCentral.xul
27 onclick="window.parent.cal.openCalendarWizard(window);"/>
Assignee | ||
Comment 10•7 years ago
|
||
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)
Assignee | ||
Comment 11•7 years ago
|
||
Attachment #8952220 -
Attachment is obsolete: true
Attachment #8952220 -
Flags: review?(makemyday)
Attachment #8952222 -
Flags: review?(makemyday)
Assignee | ||
Comment 12•7 years ago
|
||
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)
Updated•7 years ago
|
Attachment #8952222 -
Flags: review?(makemyday) → review+
Comment 13•7 years ago
|
||
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
Comment 14•7 years ago
|
||
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
Updated•7 years ago
|
Target Milestone: --- → 6.2
Assignee | ||
Comment 15•7 years ago
|
||
(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.
Comment 16•7 years ago
|
||
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.
Assignee | ||
Comment 17•7 years ago
|
||
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
Comment 18•7 years ago
|
||
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.
Description
•