Closed Bug 332123 Opened 18 years ago Closed 18 years ago

nsLocalFileWin::AppendRelativeNativePath broken with multiple path components

Categories

(Core :: XPCOM, defect)

x86
Windows NT
defect
Not set
major

Tracking

()

RESOLVED FIXED
mozilla1.9alpha1

People

(Reporter: benjamin, Assigned: jshin1987)

References

Details

(Keywords: regression)

Attachments

(1 file)

Reported by Lev Serebryakov: If you have an XPCOM component in a subdirectory of the components directory, that component will not be loaded by XPCOM. This is because the component registry stores a relative path to the component location of the form "subdir\component.js", which is passed to nsILocalFile.appendRelativeNativePath. But the windows implementation of this function now ignores the "multipleComponents" argument passed to in and unconditionally rejects multiple components

http://lxr.mozilla.org/mozilla/source/xpcom/io/nsLocalFileWin.cpp#1131
Sorry for another regression due to another stupid typo. Somehow I used '\' while meaning '/'.
Attachment #216645 - Flags: superreview?(darin)
Attachment #216645 - Flags: review?(darin)
Comment on attachment 216645 [details] [diff] [review]
patch (one-liner)

no worries.  thanks for patching this quickly!
Attachment #216645 - Flags: superreview?(darin)
Attachment #216645 - Flags: superreview+
Attachment #216645 - Flags: review?(darin)
Attachment #216645 - Flags: review+
thanks for r/sr. patch got landed.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: