[Webkit-unassigned] [Bug 171740] New: EventSender dispatches events to the main web view even when running in a popup window
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri May 5 11:25:03 PDT 2017
https://bugs.webkit.org/show_bug.cgi?id=171740
Bug ID: 171740
Summary: EventSender dispatches events to the main web view
even when running in a popup window
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Tools / Tests
Assignee: webkit-unassigned at lists.webkit.org
Reporter: aestes at apple.com
CC: lforschler at apple.com
Created attachment 309191
--> https://bugs.webkit.org/attachment.cgi?id=309191&action=review
test case
Consider the following test:
<!DOCTYPE html>
<body contenteditable>
<script>
testRunner.dumpAsText();
testRunner.waitUntilDone();
testRunner.setCanOpenWindows(true);
document.body.focus();
var popupDocument = window.open("about:blank", "new").document;
var script = popupDocument.createElement("script");
script.innerText = "eventSender.keyDown('a'); testRunner.notifyDone();";
popupDocument.body.appendChild(script);
</script>
The test result will be "a", which means the keyDown event from the popup window went to the originating window instead.
This problem exists in both DumpRenderTree and WebKitTestRunner.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170505/909d81de/attachment.html>
More information about the webkit-unassigned
mailing list