Closed
Bug 1448717
Opened 6 years ago
Closed 6 years ago
caldav calendars fail with xmlHeader not defined error
Categories
(Calendar :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
6.6
People
(Reporter: ch-moz2, Assigned: Fallen)
References
Details
Attachments
(1 file, 1 obsolete file)
1.43 KB,
patch
|
MakeMyDay
:
review+
Fallen
:
approval-calendar-beta+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0 Build ID: 20180322223039 Steps to reproduce: Set up a CalDAV calendar, attempt to read the calendar items. Actual results: no calendar entries load. The developer toolbox console says that "xmlHeader" is not defined. ReferenceError: xmlHeader is not defined[Learn More] calDavRequestHandlers.js:331:1 NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS: [JavaScript Error: "xmlHeader is not defined" {file: "resource://calendar/modules/calUtils.jsm -> file:///usr/local/lib/thunderbird/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/calendar-js/calDavRequestHandlers.js" line: 331}]'[JavaScript Error: "xmlHeader is not defined" {file: "resource://calendar/modules/calUtils.jsm -> file:///usr/local/lib/thunderbird/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/calendar-js/calDavRequestHandlers.js" line: 331}]' when calling method: [calIOperationListener::onOperationComplete] Expected results: Calendar events should have loaded.
Comment 1•6 years ago
|
||
There seems to have been a change in dealing with the scope in loaded subscripts - up to now the code has been falling back to the loading script if an undefined var occured. We could easily add a definition for xmlHeader (and MIME_TEXT_XML as well) to calDavRequestHandler or move all the definitions from calDavCalendar there, but probably we should have a look at the loading mechanism, since this may have further yet uncovered impact. Philipp, what do you think?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(philipp)
Assignee | ||
Comment 2•6 years ago
|
||
Not that I have cleaned this up, but I did some refactoring that I will need for the autodiscovery patch, and that should fix the xml header thing.
Flags: needinfo?(philipp)
Comment 3•6 years ago
|
||
Philipp, what do we do with this with regard to TB63? Your patch is a complete refactoring and still WIP. Would it make sense to implement a resolution just for this issue in the first place and do the rest in a follow-up bug?
Flags: needinfo?(philipp)
Assignee | ||
Comment 4•6 years ago
|
||
Yes, we can do that. The patch above is pretty elaborate and hence has its own regression risks.
Flags: needinfo?(philipp)
Assignee | ||
Comment 5•6 years ago
|
||
Assignee: nobody → philipp
Attachment #8964205 -
Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #9025329 -
Flags: review?(makemyday)
Attachment #9025329 -
Flags: approval-calendar-beta+
Comment 6•6 years ago
|
||
Comment on attachment 9025329 [details] [diff] [review] Fix - v1 Review of attachment 9025329 [details] [diff] [review]: ----------------------------------------------------------------- Thanks, looks good.
Attachment #9025329 -
Flags: review?(makemyday) → review+
Updated•6 years ago
|
Keywords: checkin-needed
Pushed by mozilla@jorgk.com: https://hg.mozilla.org/comm-central/rev/0a1674c405a5 Define missing caldav variables after loader changes. r=MakeMyDay
Updated•6 years ago
|
Target Milestone: --- → 6.7
Comment 8•6 years ago
|
||
Beta (TB 64 / Cal 6.6 beta 3): https://hg.mozilla.org/releases/comm-beta/rev/0232450e2c9b
Target Milestone: 6.7 → 6.6
You need to log in
before you can comment on or make changes to this bug.
Description
•