Closed
Bug 172001
Opened 22 years ago
Closed 21 years ago
nsIFilePicker.files returns returnCancel in mode modeOpenMultiple
Categories
(Core Graveyard :: Embedding: APIs, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: ashshbhatt, Assigned: sspitzer)
References
Details
(Keywords: fixed1.4.1, Whiteboard: [for 1.4.1, we want both patches])
Attachments
(3 files)
1.34 KB,
text/html
|
Details | |
1.93 KB,
patch
|
pavlov
:
review+
sspitzer
:
approval1.4.1+
sspitzer
:
approval1.5+
|
Details | Diff | Splinter Review |
2.59 KB,
patch
|
sspitzer
:
review+
sspitzer
:
superreview+
asa
:
approval1.4.1+
sspitzer
:
approval1.5+
|
Details | Diff | Splinter Review |
nsIFilePicker.files returns "returnCancel" in mode modeOpenMultiple if more than
9 files are selected. It returns "returnOk" for 9 files or less.
![]() |
||
Comment 1•22 years ago
|
||
Is this the Windows filepicker implementation? Or all implementations?
Summary: nsIFilePicker.files returns returnCancel in mode modeOpenMultiple → nsIFilePicker.files returns returnCancel in mode modeOpenMultiple
Reporter | ||
Comment 2•22 years ago
|
||
On Windows only. On linux and mac filepicker does not let you select multiple files.
Reporter | ||
Comment 3•22 years ago
|
||
Reporter | ||
Comment 4•22 years ago
|
||
Note: Save the attachment locally and then run the test case, Otherwise it will
fail because it requires enabled privillages if the file is not local.
Updated•22 years ago
|
QA Contact: depstein → ashishbhatt
Comment 5•21 years ago
|
||
FYI: we find this in Komodo as well, alas.
Assignee | ||
Comment 6•21 years ago
|
||
I looked into this, and I think the 10 limit isn't issue.
we pass in a buffer (right now, of size MAX_PATH) to GetOpenFileNameW(), at
least on winnt and up (we have our own implementation, named GetOpenFileNameA()
on win 9x)
so in nsFilePicker::ShowW, we allocate a buffer and use it in a OPENFILENAMEW
structure.
when we fail (in this way), GetOpenFileNameW() fails silently.
but if I bump up the buffer, it works, or at least, it takes more to fail.
MAX_PATH is the current size, and that works well for one file.
but multiple files are all on the same buffer, in the format:
dirpath\0\file1\0file2\0...filen\0\0
working on bumping up the buffer to a more reasonable value
Assignee: pavlov → sspitzer
Assignee | ||
Comment 7•21 years ago
|
||
Assignee | ||
Comment 8•21 years ago
|
||
asa, worth taking for 1.4.1?
Status: NEW → ASSIGNED
Flags: blocking1.4.x?
Updated•21 years ago
|
Attachment #130803 -
Flags: review+
Assignee | ||
Comment 9•21 years ago
|
||
fixed.
mscott checked in my fix for me.
r=pavlov, a=sspitzer (for 1.5 final)
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Comment 10•21 years ago
|
||
In case anyone ever wanted to fix this 'properly', MSKB article 131462
describes how a hook procedure can be used to reallocate the buffer on demand.
HOWTO: Handle FNERR_BUFFERTOOSMALL in Windows
http://support.microsoft.com/?kbid=131462
Comment 11•21 years ago
|
||
Previous patch only fixes WinNT/2K/XP; this might fix it for 9x/ME as well.
Assignee | ||
Comment 12•21 years ago
|
||
Comment on attachment 130815 [details] [diff] [review]
Win9x patch?
r/sr/a=sspitzer for the win9x side.
thanks neil.
Attachment #130815 -
Flags: superreview+
Attachment #130815 -
Flags: review+
Attachment #130815 -
Flags: approval1.5+
Assignee | ||
Comment 13•21 years ago
|
||
> In case anyone ever wanted to fix this 'properly', MSKB article 131462
> describes how a hook procedure can be used to reallocate the buffer on demand.
>
> HOWTO: Handle FNERR_BUFFERTOOSMALL in Windows
> http://support.microsoft.com/?kbid=131462
thanks for the info.
stuart was hoping there was something like this, but I couldn't find it.
let's spin up a new bug about this, for 1.6
Comment 14•21 years ago
|
||
Comment on attachment 130815 [details] [diff] [review]
Win9x patch?
a=asa (on behalf of drivers) for checkin to the 1.4 branch.
Attachment #130815 -
Flags: approval1.4.x+
Assignee | ||
Comment 15•21 years ago
|
||
Comment on attachment 130803 [details] [diff] [review]
patch
we'll want this patch for 1.4.1, too.
Attachment #130803 -
Flags: approval1.5+
Attachment #130803 -
Flags: approval1.4.x+
Assignee | ||
Comment 17•21 years ago
|
||
mscott checked in neils fix for win9x for 1.5 final
Whiteboard: [for 1.4.1, we want both patches]
Comment 18•21 years ago
|
||
Both patches checked in to 1.4.1
Flags: blocking1.4.1? → blocking1.4.1+
Keywords: fixed1.4.1
Updated•6 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•