Bug 186268 - Focus event dispatched in iframe causes parent document to scroll incorrectly
Summary: Focus event dispatched in iframe causes parent document to scroll incorrectly
Status: RESOLVED DUPLICATE of bug 186956
Alias: None
Product: WebKit
Classification: Unclassified
Component: Frames (show other bugs)
Version: Safari 11
Hardware: iPhone / iPad iOS 11
: P2 Major
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-06-04 08:17 PDT by Yann Armelin
Modified: 2018-11-12 16:40 PST (History)
3 users (show)

See Also:


Attachments
test case (764 bytes, application/x-zip-compressed)
2018-06-04 08:17 PDT, Yann Armelin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yann Armelin 2018-06-04 08:17:27 PDT
Created attachment 341903 [details]
test case

On a long page, when focus() is called on an element within an iframe, and if the offsetY of the iframe is > 0, the browser incorrectly scroll after the frame.
It occurs only on non-input HTML elements (like div or span with a tabindex attribute).

The same issue is observed when element.scrollIntoView() is called from an iframe.


I reproduced the issue on iOS (11.3.1), and with a locally built WebKit.




It's very similar to the following closed bug : https://bugs.webkit.org/show_bug.cgi?id=158629 .
Comment 1 Radar WebKit Bug Importer 2018-06-04 14:25:55 PDT
<rdar://problem/40781035>
Comment 2 Simon Fraser (smfr) 2018-11-12 16:40:28 PST
Was fixed by bug 186956.

*** This bug has been marked as a duplicate of bug 186956 ***