Bug 174673

Summary: [WPE] Missing keyboard event information breaks fast/events/arrow-keys-on-body.html
Product: WebKit Reporter: Claudio Saavedra <csaavedra>
Component: WPE WebKitAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: bugs-noreply
Priority: P2    
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   

Claudio Saavedra
Reported 2017-07-20 07:08:20 PDT
fast/events/arrow-keys-on-body.html fails because key information is missing from the keyboard event created by WPE WebEventFactory. -BODY - keydown - false,false,false,false - ArrowLeft - ArrowLeft - Left - DOM_KEY_LOCATION_STANDARD - 37 - 0 - 37 - 37 -BODY - keyup - false,false,false,false - ArrowLeft - ArrowLeft - Left - DOM_KEY_LOCATION_STANDARD - 37 - 0 - 37 - 37 +BODY - keydown - false,false,false,false - undefined - undefined - Left - DOM_KEY_LOCATION_STANDARD - 37 - 0 - 37 - 37 +BODY - keyup - false,false,false,false - undefined - undefined - Left - DOM_KEY_LOCATION_STANDARD - 37 - 0 - 37 - 37 The missing properties are event.key and event.code. This seems to be because we're using the default WebKeyboardEvent() constructor that doesn't fill in these properties as other ports do.
Attachments
Claudio Saavedra
Comment 1 2017-07-20 11:07:00 PDT
Other affected tests: webkit.org/b/174673 fast/events/keyboardevent-code.html [ Failure ] webkit.org/b/174673 fast/events/keyboardevent-key.html [ Failure ] webkit.org/b/174673 fast/events/key-events-in-input-button.html [ Failure ] webkit.org/b/174673 fast/events/key-events-in-input-text.html [ Failure ] webkit.org/b/174673 fast/events/special-key-events-in-input-text.html [ Failure ]
Claudio Saavedra
Comment 2 2018-09-17 05:21:44 PDT
Seems that the only one still failing here is fast/events/keyboardevent-code.html. The others got fixed recently as the missing bits were added.
Note You need to log in before you can comment on or make changes to this bug.