Summary: | [iOS] Make WKWebView become the first responder to support testing key presses to non-editable elements | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Daniel Bates <dbates> | ||||
Component: | Tools / Tests | Assignee: | Daniel Bates <dbates> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | jeremyj-wk, jonlee, lforschler, megan_gardner, mitz, simon.fraser, webkit-bug-importer, wenson_hsieh | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | WebKit Nightly Build | ||||||
Hardware: | iPhone / iPad | ||||||
OS: | iOS 11 | ||||||
Bug Depends on: | |||||||
Bug Blocks: | 190571, 189389 | ||||||
Attachments: |
|
Description
Daniel Bates
2018-09-07 14:12:16 PDT
Created attachment 349190 [details]
Patch and layout test
Comment on attachment 349190 [details] Patch and layout test View in context: https://bugs.webkit.org/attachment.cgi?id=349190&action=review > Tools/ChangeLog:9 > + Make the WKWebView become the first responder immediately without the need to focus an editable > + element. This allows us to test that DOM keyboard events are dispatched to non-editable elements. Does the view become first responder in MobileSafari/SFSafariViewController? (In reply to Simon Fraser (smfr) from comment #2) > Comment on attachment 349190 [details] > Patch and layout test > > View in context: > https://bugs.webkit.org/attachment.cgi?id=349190&action=review > > > Tools/ChangeLog:9 > > + Make the WKWebView become the first responder immediately without the need to focus an editable > > + element. This allows us to test that DOM keyboard events are dispatched to non-editable elements. > > Does the view become first responder in MobileSafari/SFSafariViewController? Yes. Comment on attachment 349190 [details] Patch and layout test Clearing flags on attachment: 349190 Committed r235858: <https://trac.webkit.org/changeset/235858> All reviewed patches have been landed. Closing bug. |