Closed
Bug 187605
Opened 23 years ago
Closed 23 years ago
nsLocalFileCommon's InitWithFile should throw NS_ERROR_INVALID_ARG instead
Categories
(Core :: XPCOM, defect)
Core
XPCOM
Tracking
()
VERIFIED
FIXED
People
(Reporter: bugzilla, Assigned: dougt)
Details
Attachments
(1 file)
|
552 bytes,
patch
|
dougt
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
The everything-except-mac method InitWithFile (
http://lxr.mozilla.org/mozilla/source/xpcom/io/nsLocalFileCommon.cpp#59 ) in
nsLocalFileCommon currently throws the rather meaningless NS_ERROR_FAILURE when
the path is empty, whereas the mac-specific InitWithNativePath (
http://lxr.mozilla.org/mozilla/source/xpcom/io/nsLocalFileMac.cpp#1107 ) throws
NS_ERROR_INVALID_ARG at the same check.
According to biesi, NS_ERROR_INVALID_ARG makes more sense. Severity "minor" as
this is a one-line-fix.
Comment 1•23 years ago
|
||
post a patch?
| Reporter | ||
Comment 2•23 years ago
|
||
Updated•23 years ago
|
Attachment #110603 -
Flags: superreview+
| Reporter | ||
Comment 3•23 years ago
|
||
> post a patch?
Give me a break, I submitted it 11 minutes after filing the bug :-)
Updated•23 years ago
|
Attachment #110603 -
Flags: review?(dougt)
| Assignee | ||
Comment 4•23 years ago
|
||
Comment on attachment 110603 [details] [diff] [review]
1st patch
r=dougt
Attachment #110603 -
Flags: review?(dougt) → review+
Comment 5•23 years ago
|
||
Comment on attachment 110603 [details] [diff] [review]
1st patch
let me know if you need this checked in.
| Reporter | ||
Comment 7•23 years ago
|
||
> let me know if you need this checked in.Should you refer to me: Yes, please.
You need to log in
before you can comment on or make changes to this bug.
Description
•