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

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 ***