<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>186268</bug_id>
          
          <creation_ts>2018-06-04 08:17:27 -0700</creation_ts>
          <short_desc>Focus event dispatched in iframe causes parent document to scroll incorrectly</short_desc>
          <delta_ts>2018-11-12 16:40:28 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Frames</component>
          <version>Safari 11</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 11</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>186956</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yann Armelin">yann.armelin</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cdumez</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1429819</commentid>
    <comment_count>0</comment_count>
      <attachid>341903</attachid>
    <who name="Yann Armelin">yann.armelin</who>
    <bug_when>2018-06-04 08:17:27 -0700</bug_when>
    <thetext>Created attachment 341903
test case

On a long page, when focus() is called on an element within an iframe, and if the offsetY of the iframe is &gt; 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&apos;s very similar to the following closed bug : https://bugs.webkit.org/show_bug.cgi?id=158629 .</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1429901</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2018-06-04 14:25:55 -0700</bug_when>
    <thetext>&lt;rdar://problem/40781035&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1477797</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2018-11-12 16:40:28 -0800</bug_when>
    <thetext>Was fixed by bug 186956.

*** This bug has been marked as a duplicate of bug 186956 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>341903</attachid>
            <date>2018-06-04 08:17:27 -0700</date>
            <delta_ts>2018-06-04 08:17:27 -0700</delta_ts>
            <desc>test case</desc>
            <filename>scroll-bug.zip</filename>
            <type>application/x-zip-compressed</type>
            <size>764</size>
            <attacher name="Yann Armelin">yann.armelin</attacher>
            
              <data encoding="base64">UEsDBBQAAAAIAEBYxEy0hbEG/wAAAKABAAAKAAAAY2hpbGQuaHRtbI1RPU/DMBDd+ysOM7QdmjAi
iD0ABXUCCYTE6I9rYtWxUXJJyL/HdorUEQ++5+d779m66urp9fHj620PDbVOrKpUwElfc4aeiRVA
1aA0CUTYIknQjex6JM4GOu5u2fmKLDkUea/KXLK4/FNXKpgZepodcqakPtVdGLzZ6eBCd3e9z+ue
AQhYDI0dgaSy3uAPZzcMrOGMOvnNQDwHPfRSOQR02KKnqozt55eogSh4CF47q0+cTdEiTIWJmtRa
1Ej7RfUwH8xmnTzX2+KYPDdbJl7siJBPQAGkCuNFzGL+z6T05aLXXXDu4Cl8WpxSwHtmwEYKxshd
ukYcRXEQZR7IL1BLAwQUAAAACABGWMRM4NNwhd0AAABNAQAACwAAAHBhcmVudC5odG1sTZDBbsMg
DEDv/QoPabdlyXqqUshl23mTtsuOFNyARCACt1n/fkBSaRdsy+L52fzh7eP1++fzHQxNbtjxEsBJ
PwqGng07AG5Q6pLkdEKSoIyMCUmwC52bA9taZMnhUF/e1vD/j5cTCna1uMwhEgMVPKHPjMVqMkLj
1SpsavEEl4SxSUo6eXIofFg12rsHPwV9g0S33GQG7Wio33ddN/9uLl8qBudAh8WvCvYc83xIUQmm
jHX6uazJ7oxJxtH6hsLcHwrmuEFhXyuoWv1L1z0e2cDblbY6FZV8tbZe7w9QSwECPwAUAAAACABA
WMRMtIWxBv8AAACgAQAACgAkAAAAAAAAACAAAAAAAAAAY2hpbGQuaHRtbAoAIAAAAAAAAQAYAOV3
dLHi+9MB5Xd0seL70wEVZSRN4/vTAVBLAQI/ABQAAAAIAEZYxEzg03CF3QAAAE0BAAALACQAAAAA
AAAAIAAAACcBAABwYXJlbnQuaHRtbAoAIAAAAAAAAQAYADUjzLji+9MBNSPMuOL70wF1YMe44vvT
AVBLBQYAAAAAAgACALkAAAAtAgAAAAA=
</data>

          </attachment>
      

    </bug>

</bugzilla>