Bug 191364 - scrollable iframe incorrect focus positioning
Summary: scrollable iframe incorrect focus positioning
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Frames (show other bugs)
Version: Safari 12
Hardware: iPhone / iPad Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-11-07 08:18 PST by k.vendrik
Modified: 2019-04-15 00:35 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description k.vendrik 2018-11-07 08:18:44 PST
Moved from https://bugzilla.mozilla.org/show_bug.cgi?id=1503682#c3.

Demo: https://bugzilla.mozilla.org/attachment.cgi?id=9021636.

Steps to reproduce:

Embedded a form in a scrollable iframe.

Codepen with iframe: https://codepen.io/kvendrik/pen/ePqNvy
Codepen with iframe contents: https://codepen.io/kvendrik/pen/vVoOgq


Actual results:

When focussing some of the fields the focus seems to be on elements that I'm not tapping on, sometimes in completely different positions.


Expected results:

The input that I tap on should focus.
Comment 1 k.vendrik 2018-11-07 08:20:46 PST
Demo in Mobile Safari: https://bugzilla.mozilla.org/attachment.cgi?id=9023207
Comment 2 k.vendrik 2018-11-09 12:33:15 PST
To clarify:

https://bugzilla.mozilla.org/attachment.cgi?id=9023207
Demonstrates different the cursor having a different position than the input in mobile Safari.

https://bugzilla.mozilla.org/attachment.cgi?id=9021636
Demonstrates the cursor having a completely different position than the input but also demonstrates a different input getting selected than I'm tapping on which is the more concerning bug imo (Mobile FF).
Comment 3 Radar WebKit Bug Importer 2018-11-12 10:55:32 PST
<rdar://problem/45995417>
Comment 4 Antti Koivisto 2019-04-15 00:35:43 PDT
Seems to work fine in trunk.