<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - [WK1] Key modifier are not passed to the WebView from the eventSender's mouse events"
href="https://bugs.webkit.org/show_bug.cgi?id=168503">168503</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[WK1] Key modifier are not passed to the WebView from the eventSender's mouse events
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>Product</th>
<td>WebKit
</td>
</tr>
<tr>
<th>Version</th>
<td>WebKit Nightly Build
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Unspecified
</td>
</tr>
<tr>
<th>OS</th>
<td>Unspecified
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>Normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P2
</td>
</tr>
<tr>
<th>Component</th>
<td>Tools / Tests
</td>
</tr>
<tr>
<th>Assignee</th>
<td>webkit-unassigned@lists.webkit.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>tpopela@redhat.com
</td>
</tr>
<tr>
<th>CC</th>
<td>lforschler@apple.com
</td>
</tr></table>
<p>
<div>
<pre>While creating a layout test for <a class="bz_bug_link
bz_status_NEW "
title="NEW - [GTK] Drag and drop is always moving the content even if copy is requested"
href="show_bug.cgi?id=168424">bug 168424</a> I was not able to make it pass on the MAC WK1.
If I use the eventSender.mouseUp(0, ['altKey']); in the test then the event is created in Tools/DumpRenderTree/mac/EventSendingController.mm in the mouseUp() function. In the modifierFlags function (in the same module) the altKey modifier is recognized and set. But then in Source/WebKit/mac/WebView/WebView.mm in the applicationFlags() function where we get the current event - [[NSApp currentEvent] modifierFlags] - it is 0 - no modifier set. The same applies for other modifiers as well. If I try the test in the MiniBrowser, then it works as expected.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>