Closed Bug 225972 Opened 21 years ago Closed 21 years ago

GetMIMEInfoForExtensionFromDS returns success even if nothing was found

Categories

(Core Graveyard :: File Handling, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.6beta

People

(Reporter: Biesinger, Assigned: Biesinger)

References

()

Details

Attachments

(1 file, 1 obsolete file)

this should set rv to failure if !contentTypeNodeResource, or soemthing like that.
If !contentTypeNodeResource then shouldn't the rv for GetSource have been NS_RDF_NO_VALUE?
Ah, thanks for pointing that out. Many of the rdf idl descriptions say that anything but NS_OK indicates failure, so I thought that applied here as well.
nallen: There are more success codes than NS_OK. In fact, about half of the possible nsresults are success codes.
Attached patch patch (obsolete) — Splinter Review
Comment on attachment 135735 [details] [diff] [review] patch this one is not sufficient...
Attachment #135735 - Attachment is obsolete: true
Attached patch patch v2Splinter Review
well, I have _no_ idea why I removed this line (readded here in hunk 2). it was kinda critical.
Comment on attachment 135737 [details] [diff] [review] patch v2 bz, could I get r+sr? this should go in before the freeze...
Attachment #135737 - Flags: superreview?(bz-vacation)
Attachment #135737 - Flags: review?(bz-vacation)
Status: NEW → ASSIGNED
Priority: -- → P1
Target Milestone: --- → mozilla1.6beta
Comment on attachment 135737 [details] [diff] [review] patch v2 Oops. ;) r+sr=bzbarsky.
Attachment #135737 - Flags: superreview?(bz-vacation)
Attachment #135737 - Flags: superreview+
Attachment #135737 - Flags: review?(bz-vacation)
Attachment #135737 - Flags: review+
thanks, Checking in nsExternalHelperAppService.cpp; /cvsroot/mozilla/uriloader/exthandler/nsExternalHelperAppService.cpp,v <-- nsExternalHelperAppService.cpp new revision: 1.231; previous revision: 1.230 done
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: