WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
221466
Allow sending modifier keys in test_driver.send_keys()
https://bugs.webkit.org/show_bug.cgi?id=221466
Summary
Allow sending modifier keys in test_driver.send_keys()
Manuel Rego Casasnovas
Reported
2021-02-05 07:53:31 PST
Created
attachment 419407
[details]
Test case Check the attached example, if you run it as a WPT test: Tools/Scripts/run-webkit-tests --gtk LayoutTests/imported/w3c/web-platform-tests/uievents/send-ctrl-key.html It will fail because it'll get "Unidentified" instead of "Control" in event.key.
Attachments
Test case
(677 bytes, text/html)
2021-02-05 07:53 PST
,
Manuel Rego Casasnovas
no flags
Details
Patch
(5.45 KB, patch)
2021-02-08 02:32 PST
,
Manuel Rego Casasnovas
ews-feeder
: commit-queue-
Details
Formatted Diff
Diff
Patch
(5.51 KB, patch)
2021-02-08 09:19 PST
,
Manuel Rego Casasnovas
no flags
Details
Formatted Diff
Diff
Patch
(7.87 KB, patch)
2021-02-08 21:53 PST
,
Manuel Rego Casasnovas
no flags
Details
Formatted Diff
Diff
Patch
(8.12 KB, patch)
2021-02-08 21:59 PST
,
Manuel Rego Casasnovas
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Manuel Rego Casasnovas
Comment 1
2021-02-08 00:58:01 PST
This might be due to the FIXME in:
https://webkit-search.igalia.com/webkit/source/LayoutTests/imported/w3c/web-platform-tests/resources/testdriver-vendor.js#157
// FIXME: Add more cases. const SeleniumCharCodeToEventSenderKey = { 0xE003: 'delete', 0xE004: '\t', 0xE00D: ' ', 0xE012: 'leftArrow', 0xE013: 'upArrow', 0xE014: 'rightArrow', 0xE015: 'downArrow', }; Right now it only understands a few char codes.
Manuel Rego Casasnovas
Comment 2
2021-02-08 02:32:52 PST
Created
attachment 419569
[details]
Patch
EWS Watchlist
Comment 3
2021-02-08 02:33:39 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
Manuel Rego Casasnovas
Comment 4
2021-02-08 02:40:55 PST
I've to export the WPT test before landing (for some reason the script failed), but I want to check in the bots first here.
Manuel Rego Casasnovas
Comment 5
2021-02-08 09:19:21 PST
Created
attachment 419598
[details]
Patch
Manuel Rego Casasnovas
Comment 6
2021-02-08 09:42:31 PST
The test has been exported to
https://github.com/web-platform-tests/wpt/pull/27526
and passes now in Chromium and Firefox, and also in GTK with this patch. Probably it's going to fail on Mac so I'd add the proper expectations. Anyway the patch is ready to be reviewed I believe.
Manuel Rego Casasnovas
Comment 7
2021-02-08 21:53:55 PST
Created
attachment 419675
[details]
Patch
Manuel Rego Casasnovas
Comment 8
2021-02-08 21:59:45 PST
Created
attachment 419677
[details]
Patch
EWS
Comment 9
2021-02-09 02:34:31 PST
Committed
r272572
: <
https://commits.webkit.org/r272572
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 419677
[details]
.
Radar WebKit Bug Importer
Comment 10
2021-02-09 02:35:13 PST
<
rdar://problem/74135384
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug