Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GTK][WPE] EventSenderProxy::rawKeyDown|Up are not implemented #10441

Draft
wants to merge 1 commit into
base: main
from

Conversation

carlosgcampos
Copy link
Contributor

@carlosgcampos carlosgcampos commented Feb 21, 2023

f3822f5

[GTK][WPE] EventSenderProxy::rawKeyDown|Up are not implemented
https://bugs.webkit.org/show_bug.cgi?id=251528

Reviewed by NOBODY (OOPS!).

* LayoutTests/platform/glib/TestExpectations:
* LayoutTests/platform/gtk/TestExpectations:
* Tools/WebKitTestRunner/gtk/EventSenderProxyGtk.cpp:
(WTR::EventSenderProxy::rawKeyDown):
(WTR::EventSenderProxy::rawKeyUp):
* Tools/WebKitTestRunner/libwpe/EventSenderProxyLibWPE.cpp:
(WTR::EventSenderProxy::rawKeyDown):
(WTR::EventSenderProxy::rawKeyUp):

f3822f5

Misc iOS, tvOS & watchOS macOS Linux Windows
✅ 🧪 style ✅ 🛠 ios ✅ 🛠 mac ✅ 🛠 wpe ✅ 🛠 wincairo
✅ 🧪 bindings ✅ 🛠 ios-sim ✅ 🛠 mac-AS-debug ✅ 🛠 gtk
✅ 🧪 webkitperl ✅ 🧪 ios-wk2 ✅ 🧪 api-mac ❌ 🧪 gtk-wk2
✅ 🧪 api-ios ✅ 🧪 mac-wk1 ✅ 🧪 api-gtk
✅ 🛠 tv ✅ 🧪 mac-wk2
✅ 🛠 tv-sim ✅ 🧪 mac-AS-debug-wk2
✅ 🛠 watch ✅ 🧪 mac-wk2-stress
✅ 🛠 watch-sim

https://bugs.webkit.org/show_bug.cgi?id=251528

Reviewed by NOBODY (OOPS!).

* LayoutTests/platform/glib/TestExpectations:
* LayoutTests/platform/gtk/TestExpectations:
* Tools/WebKitTestRunner/gtk/EventSenderProxyGtk.cpp:
(WTR::EventSenderProxy::rawKeyDown):
(WTR::EventSenderProxy::rawKeyUp):
* Tools/WebKitTestRunner/libwpe/EventSenderProxyLibWPE.cpp:
(WTR::EventSenderProxy::rawKeyDown):
(WTR::EventSenderProxy::rawKeyUp):
@carlosgcampos carlosgcampos self-assigned this Feb 21, 2023
@carlosgcampos carlosgcampos added the Tools / Tests Tools in the Tools directory, build issues, test infrastructure, and bugs in test cases label Feb 21, 2023
@@ -333,12 +333,40 @@ void EventSenderProxy::keyDown(WKStringRef keyRef, WKEventModifiers wkModifiers,
#endif
}

void EventSenderProxy::rawKeyDown(WKStringRef key, WKEventModifiers modifiers, unsigned keyLocation)
void EventSenderProxy::rawKeyDown(WKStringRef key, WKEventModifiers wkModifiers, unsigned keyLocation)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/* Unofficial Review */
This rawKeyDown and rawKeyUp below are almost duplicated except for two booleans. Can we put their code together into a single method with an isKeyPressed boolean argument as we do in EventSenderProxyGtk.cpp?

@mcatanzaro
Copy link
Contributor

This also broke a lot of tests :(

@csaavedra
Copy link
Member

FWIW, in #13957 I reverted changes that had already landed to implement these methods for the GTK port. They broke several hundred tests, so when you land this please make sure to update the test results where appropriate.

@mcatanzaro mcatanzaro marked this pull request as draft July 31, 2023 15:34
@mcatanzaro
Copy link
Contributor

I've marked this as a draft since it looks like it's not ready yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Tools / Tests Tools in the Tools directory, build issues, test infrastructure, and bugs in test cases