<?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>131676</bug_id>
          
          <creation_ts>2014-04-15 04:37:45 -0700</creation_ts>
          <short_desc>&apos;mousewheel&apos;-event is not fired inside an iFrame under certain conditions</short_desc>
          <delta_ts>2014-04-15 04:37:45 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>UI Events</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></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>andreas.parusel</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1000828</commentid>
    <comment_count>0</comment_count>
    <who name="">andreas.parusel</who>
    <bug_when>2014-04-15 04:37:45 -0700</bug_when>
    <thetext>Preconditions:
A webpage living inside an iFrame contains a &lt;script&gt;-tag in which another script-element is programmatically created and its src-property is set to an external JavaScript-file:

&lt;script&gt;
    var elem = document.createElement(&quot;script&quot;);
    var head = document.getElementsByTagName(&quot;head&quot;)[0];
    head.appendChild(elem);
    elem.src = &quot;externalScript.js&quot;;
&lt;/script&gt; 

Bug:
The setting of the script-element&apos;s src-property brakes the firing of mousewheel-events inside the iFrame (see attached example, where no &apos;mouse wheel&apos; logs will appear in the console.)
 
Workaround:
If you put the statement

  window.onmousewheel = function(){};

inside of a script-tag (not in an external JS-file!), then the webpage inside the iFrame reacts to mousewheel-events again.


Please find a reduced example demonstrating this bug and the found workaround attached.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>