[Webkit-unassigned] [Bug 131676] New: 'mousewheel'-event is not fired inside an iFrame under certain conditions
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Apr 15 04:37:24 PDT 2014
https://bugs.webkit.org/show_bug.cgi?id=131676
Summary: 'mousewheel'-event is not fired inside an iFrame under
certain conditions
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Event Handling
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: andreas.parusel at 1und1.de
Preconditions:
A webpage living inside an iFrame contains a <script>-tag in which another script-element is programmatically created and its src-property is set to an external JavaScript-file:
<script>
var elem = document.createElement("script");
var head = document.getElementsByTagName("head")[0];
head.appendChild(elem);
elem.src = "externalScript.js";
</script>
Bug:
The setting of the script-element's src-property brakes the firing of mousewheel-events inside the iFrame (see attached example, where no 'mouse wheel' 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.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list