Summary: | disabled type="file" element doesn't appear disabled | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Alexei Svitkine <myrd> | ||||||||||
Component: | Forms | Assignee: | Nobody <webkit-unassigned> | ||||||||||
Status: | RESOLVED FIXED | ||||||||||||
Severity: | Normal | CC: | mitz | ||||||||||
Priority: | P2 | Keywords: | HasReduction | ||||||||||
Version: | 420+ | ||||||||||||
Hardware: | Mac | ||||||||||||
OS: | OS X 10.4 | ||||||||||||
URL: | http://projectmagma.net/~myrdred/file_input.html | ||||||||||||
Attachments: |
|
Description
Alexei Svitkine
2005-11-29 16:59:42 PST
on r11976, the input type="file" element appears to be disabled functionally but does not appear 'greyed out'. Seeing the same as MJC, changing subject, i will attached the testcase in the url to the bug itself. Created attachment 6344 [details]
Testcase
Created attachment 8264 [details]
proposed patch
My first attempt at fixing this. Be aware that I have zero objC experience :)
I can make a new patch including the given testcase if needed.
Cheers,
Rob.
Comment on attachment 8264 [details]
proposed patch
This needs a test case, but otherwise looks fine.
Test cases are especially important for this area of the code because Adele is about to re-write this control using the engine instead of AppKit. :)
Created attachment 8270 [details]
Patch including testcase
Comment on attachment 8270 [details]
Patch including testcase
Since this test is a manual test rather than an automatic one, it should be in WebCore/manual-tests rather than in LayoutTests.
Created attachment 8278 [details]
Testcase now in manual tests
For your convenience, I moved the testcase :)
Cheers,
Rob.
(In reply to comment #8) > For your convenience, I moved the testcase :) But isn't it an automated test case, actually? :) The original state is disabled, so a pixel test would catch the chage. Comment on attachment 8278 [details]
Testcase now in manual tests
Seems fine. This makes the file button look disabled. However, I think this does not disable all the relevant file button behavior. It's worth testing whether a disabled file button responds to clicks on the file name, drags, and other kinds of interaction that don't directly involve the "choose file" button.
Also, we may want to change the appearance to make the file icon and file name look disabled as well.
r=me
(In reply to comment #9) > But isn't it an automated test case, actually? :) > > The original state is disabled, so a pixel test would catch the chage. Oops. OK. Alexey right, me wrong, I guess we should land the version in LayoutTests. Committed revision 14370. |