Bug 221465

Summary: Add support for modifier keys in test_driver.send_keys()
Product: WebKit Reporter: Manuel Rego Casasnovas <rego>
Component: Tools / TestsAssignee: Manuel Rego Casasnovas <rego>
Status: RESOLVED FIXED    
Severity: Normal CC: cgarcia, clopez, ews-watchlist, gsnedders, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://github.com/web-platform-tests/wpt/pull/27550
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch
none
Patch none

Description Manuel Rego Casasnovas 2021-02-05 07:36:11 PST
There's a FIXME about that in LayoutTests/imported/w3c/web-platform-tests/resources/testdriver-vendor.js (https://webkit-search.igalia.com/webkit/source/LayoutTests/imported/w3c/web-platform-tests/resources/testdriver-vendor.js#158):
    // FIXME: Add the support for modifier keys.

This causes that we cannot do things like test_driver.send_keys(element, "\uE009" + "Y") (Ctrl + Y).

Chromium supports this with the following code: https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/web_tests/resources/testdriver-vendor.js;l=100?q=testdriver-vendor.js
Comment 1 Manuel Rego Casasnovas 2021-02-09 08:35:49 PST
Created attachment 419720 [details]
Patch
Comment 2 EWS Watchlist 2021-02-09 08:37:05 PST
This patch modifies the imported WPT tests. Please ensure that any changes on the tests (not coming from a WPT import) are exported to WPT. Please see https://trac.webkit.org/wiki/WPTExportProcess
Comment 3 Manuel Rego Casasnovas 2021-02-10 01:25:36 PST
Created attachment 419827 [details]
Patch
Comment 4 Manuel Rego Casasnovas 2021-02-10 02:08:28 PST
Created attachment 419828 [details]
Patch
Comment 5 Manuel Rego Casasnovas 2021-02-10 02:15:25 PST
Created attachment 419829 [details]
Patch
Comment 6 Manuel Rego Casasnovas 2021-02-10 02:46:18 PST
Created attachment 419831 [details]
Patch
Comment 7 Manuel Rego Casasnovas 2021-02-10 03:34:44 PST
The EWSs are green now and the WPT test passes in Chromium and Firefox.
I believe this is ready to be reviewed. Please take a look, thanks!
Comment 8 Sam Sneddon [:gsnedders] 2021-02-10 06:18:00 PST
Comment on attachment 419831 [details]
Patch

(non-reviewer r+)
Comment 9 EWS 2021-02-10 07:19:08 PST
Committed r272651: <https://commits.webkit.org/r272651>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 419831 [details].
Comment 10 Radar WebKit Bug Importer 2021-02-10 07:20:17 PST
<rdar://problem/74187704>