Closed
Bug 1346808
Opened 8 years ago
Closed 8 years ago
Make calUtils.js functions independent of window
Categories
(Calendar :: General, enhancement, P1)
Calendar
General
Tracking
(Not tracked)
RESOLVED
FIXED
5.7
People
(Reporter: Fallen, Assigned: Fallen)
References
Details
Attachments
(2 files, 1 obsolete file)
35.26 KB,
patch
|
mschroeder
:
review+
|
Details | Diff | Splinter Review |
1.36 KB,
patch
|
jorgk-bmo
:
review+
|
Details | Diff | Splinter Review |
Some of the calUtils.js functions are meant to run in a scope that has a window. Moving to calUtils.jsm we should stop doing this.
Assignee | ||
Comment 1•8 years ago
|
||
Attachment #8846663 -
Flags: review?(makemyday)
Comment 2•8 years ago
|
||
Comment on attachment 8846663 [details] [diff] [review]
Fix - v1
Review of attachment 8846663 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks. r+ with the missing prefixes added.
::: calendar/base/content/dialogs/calendar-migration-dialog.js
@@ +559,3 @@
> break;
> default:
> + cal.showError(calGetString("calendar", "unableToRead") + icsFile.path + "\n"+ ex, window);
Please use cal.calGetString() instead (here an at some other places in this patch).
Attachment #8846663 -
Flags: review?(makemyday) → review+
Assignee | ||
Comment 3•8 years ago
|
||
I have the cal.calGetString changes lined up in a different patch in my queue, I'd prefer to fix only the issue in the bug :) Will land this when I have my queue cleaned up.
Priority: -- → P1
Comment 4•8 years ago
|
||
After talking to Philipp I updated the patch, editing an additional usage of showError() in calendar-alarm-dialog.js. Carrying over r+.
Attachment #8846663 -
Attachment is obsolete: true
Attachment #8871837 -
Flags: review+
Assignee | ||
Comment 5•8 years ago
|
||
Thanks for updating the patch! The next one in my queue is bug 1347149.
Keywords: checkin-needed
Comment 6•8 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → 5.7
Comment 7•8 years ago
|
||
I am getting:
> Timestamp: 5/29/2017, 1:44:05 PM
> Error: ReferenceError: gCalendarStatusFeedback is not defined
> Source File: resource://calendar/modules/calUtils.jsm -> file:///C:/Program%20Files/SeaMonkey
> /extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/calendar-js/calUtils.js
> Line: 1871
Shouldn't
comp.setStatusObserver(gCalendarStatusFeedback, chromeWindow);
be
comp.setStatusObserver(aWindow.gCalendarStatusFeedback, chromeWindow);
Updated•8 years ago
|
Flags: needinfo?(mschroeder)
Comment 8•8 years ago
|
||
Flags: needinfo?(mschroeder)
Attachment #8872355 -
Flags: review?(ssitter)
Comment 9•8 years ago
|
||
Comment on attachment 8872355 [details] [diff] [review]
Follow-up fix
That looks right.
Attachment #8872355 -
Flags: review?(ssitter) → review+
Comment 10•8 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•