Closed
Bug 912489
Opened 11 years ago
Closed 11 years ago
Consider including the name of the directory picked by HTMLInputElement.openDirectoryPicker() in File.path
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla27
People
(Reporter: jwatt, Assigned: jwatt)
References
Details
Attachments
(1 file)
2.27 KB,
patch
|
sicking
:
review+
|
Details | Diff | Splinter Review |
I think we should consider including the name of the directory picked by HTMLInputElement.openDirectoryPicker() in File.path for the files that are picked. Currently the path is relative to this directory, not including the directory's name.
Oh, yeah, I agree we should include the picked directory's name.
Assignee | ||
Comment 2•11 years ago
|
||
Comment on attachment 812527 [details] [diff] [review] patch Review of attachment 812527 [details] [diff] [review]: ----------------------------------------------------------------- r=me either way. ::: content/html/content/src/HTMLInputElement.cpp @@ +360,5 @@ > + if (NS_FAILED(aTopDir->GetParent(getter_AddRefs(mTopDirsParent))) { > + // This just means that the name of the picked directory won't be > + // included in the File.path string. > + mTopDirsParent = aTopDir; > + } I would just do rv = aTopDir->GetParent(...); NS_ENSURE_SUCCESS(rv, rv); It seems unlikely that this will fail while the rest of the code would still work. Up to you though.
Attachment #812527 -
Flags: review?(jonas) → review+
Assignee | ||
Comment 4•11 years ago
|
||
Thanks! I left it as-is: https://hg.mozilla.org/integration/mozilla-inbound/rev/f804fcc84df2
(In reply to Jonathan Watt [:jwatt] from comment #4) > Thanks! I left it as-is: > > https://hg.mozilla.org/integration/mozilla-inbound/rev/f804fcc84df2 And backed out in http://hg.mozilla.org/integration/mozilla-inbound/rev/b13ff613f1cf for build bustage like https://tbpl.mozilla.org/php/getParsedLog.php?id=28640187&tree=Mozilla-Inbound and https://tbpl.mozilla.org/php/getParsedLog.php?id=28639828&tree=Mozilla-Inbound
Comment 6•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/32c6282f3a29
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•