Bug 66319

Summary: Placeholder text in text fields disappears when the field is focused on Windows, which doesn't match Lion or Windows native text fields
Product: WebKit Reporter: Adam Roben (:aroben) <aroben>
Component: FormsAssignee: Adam Roben (:aroben) <aroben>
Status: RESOLVED FIXED    
Severity: Normal CC: adele, jeffm, jonlee, mitz, sam, sfalken
Priority: P2 Keywords: LayoutTestFailure, PlatformOnly
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Windows 7   
URL: data:text/html,<input placeholder="Can you see this text?" autofocus>
Attachments:
Description Flags
Make placeholder text remain visible until a character is typed on Windows hyatt: review+

Description Adam Roben (:aroben) 2011-08-16 11:04:12 PDT
To reproduce:

1. Go to data:text/html,%3Cinput%20placeholder=%22Can%20you%20see%20this%20text?%22%20autofocus%3E

The placeholder text is not shown. But it should be shown, to match Windows-native text fields (e.g., the Windows 7 login password field) and Lion text fields.
Comment 1 Adam Roben (:aroben) 2011-08-16 11:06:53 PDT
This is currently causing the following tests to fail:

fast/forms/input-placeholder-visibility-1.html
fast/forms/input-placeholder-visibility-3.html
fast/forms/textarea-placeholder-visibility-1.html
fast/forms/textarea-placeholder-visibility-2.html

http://build.webkit.org/results/Windows%207%20Release%20(Tests)/r93110%20(15520)/results.html
Comment 2 Adam Roben (:aroben) 2011-08-16 12:30:34 PDT
Created attachment 104077 [details]
Make placeholder text remain visible until a character is typed on Windows
Comment 3 Dave Hyatt 2011-08-16 12:45:13 PDT
Comment on attachment 104077 [details]
Make placeholder text remain visible until a character is typed on Windows

r=me
Comment 4 Adam Roben (:aroben) 2011-08-16 12:50:40 PDT
Committed r93146: <http://trac.webkit.org/changeset/93146>