Bug 168503 - [WK1] Key modifier are not passed to the WebView from the eventSender's mouse events
Summary: [WK1] Key modifier are not passed to the WebView from the eventSender's mouse...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-17 03:12 PST by Tomas Popela
Modified: 2017-02-20 22:59 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Popela 2017-02-17 03:12:55 PST
While creating a layout test for bug 168424 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.