Bug 19924

Summary: Disabled file input element updates its displayed file info when a file is dropped from the Finder.
Product: WebKit Reporter: Matt Cooper <matt11ag-webkitbugs>
Component: FormsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Minor Keywords: HasReduction, InRadar
Priority: P3    
Version: 528+ (Nightly build)   
Hardware: Mac (Intel)   
OS: OS X 10.5   
Attachments:
Description Flags
Test case mentioned in original bug details. none

Description Matt Cooper 2008-07-07 07:25:12 PDT
Summary:
Disabled file input element updates its displayed file info when a file is dropped from the Finder.

Steps to Reproduce:
1. Make a page with an input type="file" and disabled (I will attach one to this bug).
2. From the Finder, drag a file and drop it on the disabled input file element.
3. Notice that the element now displays the name of the dropped file when it shouldn't have changed at all since it is disabled.

Expected Results:
Nothing should have changed; the input file element should look the same as it did before the drag and drop.

Actual Results:
The element displays the icon and name of the dropped file.
Comment 1 Matt Cooper 2008-07-07 07:26:21 PDT
Created attachment 22131 [details]
Test case mentioned in original bug details.
Comment 2 Mark Rowe (bdash) 2008-07-07 08:29:58 PDT
<rdar://problem/6057160>
Comment 3 Adele Peterson 2008-07-07 18:14:09 PDT
Committed revision 35052.
Comment 4 Matt Cooper 2008-07-09 09:51:41 PDT
Thank you, verified as fixed in today's WebKit nightly build (AppleWebKit/527+):
r35067.dmg">http://builds.nightly.webkit.org/files/trunk/mac/WebKit-SVN-r35067.dmg