Summary: | Tapping *below* some <input>s can focus them in Mobile Safari | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Chris Rebert <webkit> | ||||||||
Component: | Forms | Assignee: | Wenson Hsieh <wenson_hsieh> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | commit-queue, dbates, esprehn+autocc, glenn, kondapallykalyan, simon.fraser, wenson_hsieh | ||||||||
Priority: | P2 | Keywords: | HasReduction, InRadar | ||||||||
Version: | Safari 9 | ||||||||||
Hardware: | iPhone / iPad | ||||||||||
OS: | iOS 9.0 | ||||||||||
URL: | http://jsfiddle.net/gzxtb86c/3 | ||||||||||
Bug Depends on: | |||||||||||
Bug Blocks: | 159753 | ||||||||||
Attachments: |
|
Description
Chris Rebert
2015-06-23 12:45:10 PDT
Also filed this as: <rdar://problem/21509310> Created attachment 264398 [details]
Another reduced test case
What seems to be happening is that hit-testing is finding the document element instead of nothing at all when tapping in a region which the <html> covers but the <body> does not. This reduction shortens the height of the body -- observe that tapping in the body does not bring up the keyboard, but tapping in the html does.
Created attachment 264400 [details]
New reduction (reproduces without jQuery or Bootstrap)
This is the previous test case, except with components from jQuery/Bootstrap css and js removed until we're left with a few lines of code that still reproduce the issue.
- the first is a click handler on the document
- the second is display: block on the text field
- shortened body height, such that the <html> and not the <body> is clicked
Created attachment 264634 [details]
Patch
Comment on attachment 264634 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=264634&action=review > Source/WebCore/ChangeLog:11 > + editable element to an editable child, is not necesary to focus editable elements underneath non-editable elements, The word “necessary” is misspelled here. Comment on attachment 264634 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=264634&action=review >> Source/WebCore/ChangeLog:11 >> + editable element to an editable child, is not necesary to focus editable elements underneath non-editable elements, > > The word “necessary” is misspelled here. Good catch! Fixed. Committed r191954: <http://trac.webkit.org/changeset/191954> |