Bug 28270

Summary: Multiple <input type=file> fails to upload
Product: WebKit Reporter: Glenn Henshaw <thraxisp>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: UNCONFIRMED ---    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac (Intel)   
OS: OS X 10.5   
Attachments:
Description Flags
cannot reproduce
none
cannot reproduce
none
HTML test case
none
Sample from WebKit after hitting submit none

Description Glenn Henshaw 2009-08-13 12:06:26 PDT
If a form has multiple <input type=file> elements and files are not assigned to all of them, clicking the submit button will cause the program to hang.

This fails in Safari 4.0.3 and the current WebKit nightly (46919). This is not a problem in Safari 3.2 (4525). Unfortunately, I don't have other builds to test with.
Comment 1 Glenn Henshaw 2009-08-13 12:24:55 PDT
This works properly in Safari 4.0.2.
Comment 2 Alexey Proskuryakov 2009-08-13 14:42:26 PDT
Created attachment 34789 [details]
cannot reproduce

I cannot reproduce this. Do you have an example page where this happens? Do you have any "Safari enhancers" installed?

Please attach a sample made with Activity Monitor utility while Safari is hung (double-click Safari in Activity Monitor process list, then click Sample button).
Comment 3 Alexey Proskuryakov 2009-08-13 14:49:51 PDT
Created attachment 34792 [details]
cannot reproduce

Fixed some mistakes in original test, but still cannot reproduce.
Comment 4 Glenn Henshaw 2009-08-13 14:58:40 PDT
Created attachment 34793 [details]
HTML test case

This page demonstrates the problem. Select a file at only one of the file selectors (say, Certificate), and leave the other empty. Hit the "save" button.
Comment 5 Glenn Henshaw 2009-08-13 15:05:59 PDT
Created attachment 34794 [details]
Sample from WebKit after hitting submit

from Webkit r47189
Comment 6 Glenn Henshaw 2009-08-14 16:48:38 PDT
Does the test case fail for you? Do you need any more information?
Comment 7 Glenn Henshaw 2009-08-27 05:44:39 PDT
progress?