<?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>126223</bug_id>
          
          <creation_ts>2013-12-25 00:23:44 -0800</creation_ts>
          <short_desc>PreventDefault in &apos;mousedown&apos; cancels &apos;mousemove&apos;, &apos;mouseup&apos; and &apos;mouseout&apos; events outside of iframe.</short_desc>
          <delta_ts>2026-01-12 09:04:10 -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>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>http://vsesh.ru/iframe/iframe2.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vsevolod">v.shmyroff</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>graouts</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>962816</commentid>
    <comment_count>0</comment_count>
    <who name="Vsevolod">v.shmyroff</who>
    <bug_when>2013-12-25 00:23:44 -0800</bug_when>
    <thetext>PreventDefault in &apos;mousedown&apos; cancels &apos;mousemove&apos;, &apos;mouseup&apos; and &apos;mouseout&apos; events outside of iframe. 
Witout preventDefault all works fine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1078518</commentid>
    <comment_count>1</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2015-03-19 05:11:45 -0700</bug_when>
    <thetext>I just ran into this issue today, where this works fine in Firefox, but fails in Safari and Chrome. Since the original URL no longer seems to work, I&apos;ve attached a testcase where commenting out the call to `event.preventDefault()` in the `mousedown` event handler shows that mouse events are dispatched even when outside the iframe bounds.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1078519</commentid>
    <comment_count>2</comment_count>
      <attachid>249033</attachid>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2015-03-19 05:12:26 -0700</bug_when>
    <thetext>Created attachment 249033
Testcase</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1078520</commentid>
    <comment_count>3</comment_count>
      <attachid>249034</attachid>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2015-03-19 05:12:44 -0700</bug_when>
    <thetext>Created attachment 249034
Additional testcase content</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1078521</commentid>
    <comment_count>4</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2015-03-19 05:26:29 -0700</bug_when>
    <thetext>Raised a Chromium bug too at https://code.google.com/p/chromium/issues/detail?id=468730.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1228155</commentid>
    <comment_count>5</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2016-09-09 09:45:24 -0700</bug_when>
    <thetext>&lt;rdar://problem/28226827&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1503200</commentid>
    <comment_count>6</comment_count>
    <who name="Lucas Forschler">lforschler</who>
    <bug_when>2019-02-06 09:18:35 -0800</bug_when>
    <thetext>Mass move bugs into the DOM component.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>249033</attachid>
            <date>2015-03-19 05:12:26 -0700</date>
            <delta_ts>2015-03-19 05:12:26 -0700</delta_ts>
            <desc>Testcase</desc>
            <filename>iframe-event-capture.html</filename>
            <type>text/html</type>
            <size>154</size>
            <attacher name="Antoine Quint">graouts</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8Ym9keSBzdHlsZT0iYmFja2dyb3VuZC1jb2xvcjogYmxh
Y2siPgogICAgPGlmcmFtZSBzcmM9ImlmcmFtZS5odG1sIiBzdHlsZT0id2lkdGg6IDQwMHB4OyBo
ZWlnaHQ6IDMwMHB4OyI+PC9pZnJhbWU+CjwvYm9keT4KPC9odG1sPg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>249034</attachid>
            <date>2015-03-19 05:12:44 -0700</date>
            <delta_ts>2015-03-19 05:12:44 -0700</delta_ts>
            <desc>Additional testcase content</desc>
            <filename>iframe.html</filename>
            <type>text/html</type>
            <size>981</size>
            <attacher name="Antoine Quint">graouts</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8aGVhZD4KPHNjcmlwdCB0eXBlPSJ0ZXh0L2phdmFzY3Jp
cHQiPgogICAgCiAgICB3aW5kb3cuYWRkRXZlbnRMaXN0ZW5lcigiRE9NQ29udGVudExvYWRlZCIs
IGZ1bmN0aW9uKGV2ZW50KSB7CiAgICAgICAgZG9jdW1lbnQuYm9keS5hZGRFdmVudExpc3RlbmVy
KCJtb3VzZWRvd24iLCBtb3VzZWRvd24pOwogICAgfSk7CiAgICAKICAgIGZ1bmN0aW9uIG1vdXNl
ZG93bihldmVudCkgewogICAgICAgIGNvbnNvbGUubG9nKCJtb3VzZWRvd24iKTsKICAgICAgICB3
aW5kb3cuYWRkRXZlbnRMaXN0ZW5lcigibW91c2Vtb3ZlIiwgbW91c2Vtb3ZlKTsKICAgICAgICB3
aW5kb3cuYWRkRXZlbnRMaXN0ZW5lcigibW91c2V1cCIsIG1vdXNldXApOwoKICAgICAgICAvLyBU
aGlzIGNhdXNlcyBtb3VzZW1vdmUgYW5kIG1vdXNldXAgZXZlbnRzIHR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