Bug 186268

Summary: Focus event dispatched in iframe causes parent document to scroll incorrectly
Product: WebKit Reporter: Yann Armelin <yann.armelin>
Component: FramesAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Major CC: cdumez, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 11   
Hardware: iPhone / iPad   
OS: iOS 11   
Attachments:
Description Flags
test case none

Yann Armelin
Reported 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 .
Attachments
test case (764 bytes, application/x-zip-compressed)
2018-06-04 08:17 PDT, Yann Armelin
no flags
Radar WebKit Bug Importer
Comment 1 2018-06-04 14:25:55 PDT
Simon Fraser (smfr)
Comment 2 2018-11-12 16:40:28 PST
Was fixed by bug 186956. *** This bug has been marked as a duplicate of bug 186956 ***
Note You need to log in before you can comment on or make changes to this bug.