Closed
Bug 252944
Opened 20 years ago
Closed 20 years ago
Click in browser on link to ics file causes QueryInterface error (1.7/1.8 uriloader nsIContentHandler compatibility)
Categories
(Calendar :: Sunbird Only, defect)
Calendar
Sunbird Only
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: gekacheka, Assigned: mostafah)
References
()
Details
Attachments
(1 file)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040707 Firefox/0.9.2 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040707 Firefox/0.9.2, 2004062218-cal (This was reported earlier but I can't seem to find the bug.) Reproducible: Always Steps to Reproduce: Click on any holiday file on the holidays page (see URL) to get the following error in the JavaScript console: Actual Results: Error: [Exception... "Component returned failure code: 0x80004002 (NS_NOINTERFACE) [nsISupports.QueryInterface]" nsresult: "0x80004002 (NS_NOINTERFACE)" location: "JS frame :: file:///C:/Program%20Files/Mozilla%20Firefox/components/calendarService.js :: anonymous :: line 116" data: no] Source File: file:///C:/Program%20Files/Mozilla%20Firefox/components/calendarService.js Line: 116 Expected Results: Subscribe dialog with clicked url filled in. Workaround: Right click on link. Copy Link Location In Calendar, menu Tools | Subscribe to remote calendar Paste link url into Location field Copy filename to into Name field
Problem appears to be caused by this change http://bonsai.mozilla.org/cvsview2.cgi?diff_mode=context&whitespace_mode=show&subdir=mozilla/calendar/resources/content&command=DIFF_FRAMESET&file=calendarService.js&rev1=1.9&rev2=1.10&root=/cvsroot which was for bug 239604. Basically, the aCommand parameter was removed for Moz1.8, so it works in Moz1.8 but Moz1.7, FF, and TB all called queryInterface on the wrong parameter. The fix is to add compatibility code that checks to see if 3 or 4 parameters are recieved, and uses the correct parameter.
Patch tested on Moz1.7, Moz1.8a2, FF0.9.2.
Summary: Click in browser on link to ics file causes JS error → Click in browser on link to ics file causes QueryInterface error (1.7/1.8 uriloader nsIContentHandler compatibility)
Assignee | ||
Comment 3•20 years ago
|
||
Checked in. Thanks
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Comment 4•18 years ago
|
||
The bugspam monkeys have been set free and are feeding on Calendar :: Sunbird Only. Be afraid for your sanity!
QA Contact: gurganbl → sunbird
You need to log in
before you can comment on or make changes to this bug.
Description
•