Bug 193775 - Calling focus() on a text field selects all of its contents
Summary: Calling focus() on a text field selects all of its contents
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Wenson Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-24 11:40 PST by Wenson Hsieh
Modified: 2019-01-24 15:09 PST (History)
2 users (show)

See Also:


Attachments
Test case (677 bytes, text/html)
2019-01-24 11:41 PST, Wenson Hsieh
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wenson Hsieh 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.
Comment 1 Wenson Hsieh 2019-01-24 11:41:12 PST
Created attachment 360023 [details]
Test case
Comment 2 Wenson Hsieh 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.