Bug 193775

Summary: Calling focus() on a text field selects all of its contents
Product: WebKit Reporter: Wenson Hsieh <wenson_hsieh>
Component: FormsAssignee: Wenson Hsieh <wenson_hsieh>
Status: RESOLVED INVALID    
Severity: Normal CC: cdumez, wenson_hsieh
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Test case none

Wenson Hsieh
Reported 2019-01-24 11:40:30 PST
This is different from behavior in Chrome/FF. In the attached test case, tap the "Click here…" text.
Attachments
Test case (677 bytes, text/html)
2019-01-24 11:41 PST, Wenson Hsieh
no flags
Wenson Hsieh
Comment 1 2019-01-24 11:41:12 PST
Created attachment 360023 [details] Test case
Wenson Hsieh
Comment 2 2019-01-24 15:09:49 PST
After writing a macOS test app, it seems that this was done to mirror the behavior when becoming first responder on an NSTextField in macOS.
Note You need to log in before you can comment on or make changes to this bug.