Closed Bug 381499 Opened 17 years ago Closed 17 years ago

Components.utils.import reports NS_ERROR_FAILURE when the file not exists

Categories

(Core :: XPConnect, defect)

x86
Windows XP
defect
Not set
trivial

Tracking

()

RESOLVED FIXED
mozilla1.9alpha6

People

(Reporter: asqueella, Assigned: asqueella)

References

()

Details

Attachments

(1 file, 1 obsolete file)

Is there a reason to return the generic error code?
(In reply to comment #0)
> Is there a reason to return the generic error code?
> 

Not that I know of, want to change it?
Attached patch patch (obsolete) — Splinter Review
Assignee: nobody → asqueella
Status: NEW → ASSIGNED
Attachment #266282 - Flags: review?(sayrer)
Attachment #266282 - Flags: superreview?(brendan)
Attachment #266282 - Flags: review?(sayrer)
Attachment #266282 - Flags: review+
Attachment #266282 - Flags: superreview?(brendan) → superreview+
Whiteboard: [checkin needed]
Target Milestone: --- → mozilla1.9alpha6
Attached patch as checked inSplinter Review
Needed a fix for do_get_file to support inexistent files (I had the line that checked for existence commented out in my head.js).

mozilla/js/src/xpconnect/loader/mozJSComponentLoader.cpp  1.135
mozilla/js/src/xpconnect/tests/unit/test_bogus_files.js   1.2
mozilla/tools/test-harness/xpcshell-simple/head.js        1.13
Attachment #266282 - Attachment is obsolete: true
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Whiteboard: [checkin needed]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: