Skip to content

[WPE] Click count leaking through successive layout test within the same WPEView #47417

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lauromoura
Copy link
Contributor

@lauromoura lauromoura commented Jul 1, 2025

17c9db0

[WPE] Click count leaking through successive layout test within the same WPEView
https://bugs.webkit.org/show_bug.cgi?id=295252

Reviewed by NOBODY (OOPS!).

Add a new function to reset click count tracking between tests, avoiding
accidental double and triple clicks.

Found this issue while rebaselining the fast/html/details-* tests after
296203@main. Some rebaselines were flaky as the tests were affected by
this when running together.

* LayoutTests/platform/glib/fast/html/details-*-expected.txt:
  Rebaselined.
* LayoutTests/platform/gtk/fast/html/details-*-expected.txt:
  Rebaselined.
* LayoutTests/platform/wpe/fast/html/details-*-expected.txt:
  Rebaselined.
* Source/WebKit/WPEPlatform/wpe/WPEView.cpp:
(wpe_view_clear_press_count): Added.
* Source/WebKit/WPEPlatform/wpe/WPEView.h:
* Tools/WebKitTestRunner/wpe/TestControllerWPE.cpp:
(WTR::TestController::platformConfigureViewForTest): Reset click count
between tests.

17c9db0

Misc iOS, visionOS, tvOS & watchOS macOS Linux Windows
✅ 🧪 style ✅ 🛠 ios ✅ 🛠 mac ✅ 🛠 wpe ✅ 🛠 win
✅ 🧪 bindings ✅ 🛠 ios-sim ✅ 🛠 mac-AS-debug ✅ 🧪 wpe-wk2 ⏳ 🧪 win-tests
✅ 🧪 webkitperl ✅ 🧪 ios-wk2 ✅ 🧪 api-mac ✅ 🧪 api-wpe
✅ 🧪 ios-wk2-wpt ✅ 🧪 mac-wk1 ✅ 🛠 wpe-cairo
loading 🛠 🧪 jsc ✅ 🧪 api-ios ✅ 🧪 mac-wk2 ✅ 🛠 gtk
loading 🛠 🧪 jsc-arm64 ✅ 🛠 vision ✅ 🧪 mac-AS-debug-wk2 ✅ 🧪 gtk-wk2
loading 🧪 services ✅ 🛠 vision-sim ✅ 🧪 mac-wk2-stress ✅ 🧪 api-gtk
✅ 🧪 vision-wk2 ✅ 🧪 mac-intel-wk2 ✅ 🛠 playstation
✅ 🛠 tv ✅ 🛠 mac-safer-cpp
✅ 🛠 tv-sim
✅ 🛠 watch
✅ 🛠 watch-sim

…ame WPEView

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

Reviewed by NOBODY (OOPS!).

Add a new function to reset click count tracking between tests, avoiding
accidental double and triple clicks.

Found this issue while rebaselining the fast/html/details-* tests after
296203@main. Some rebaselines were flaky as the tests were affected by
this when running together.

* LayoutTests/platform/glib/fast/html/details-*-expected.txt:
  Rebaselined.
* LayoutTests/platform/gtk/fast/html/details-*-expected.txt:
  Rebaselined.
* LayoutTests/platform/wpe/fast/html/details-*-expected.txt:
  Rebaselined.
* Source/WebKit/WPEPlatform/wpe/WPEView.cpp:
(wpe_view_clear_press_count): Added.
* Source/WebKit/WPEPlatform/wpe/WPEView.h:
* Tools/WebKitTestRunner/wpe/TestControllerWPE.cpp:
(WTR::TestController::platformConfigureViewForTest): Reset click count
between tests.
@lauromoura lauromoura self-assigned this Jul 1, 2025
@lauromoura lauromoura added the WPE WebKit WebKit WPE component label Jul 1, 2025
* wpe_view_clear_press_count
* @view: a #WPEView
*
* Clear any button press being tracket.
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo: tracket.

@@ -138,6 +138,7 @@ WPE_API guint wpe_view_compute_press_count (WPEView
gdouble y,
guint button,
guint32 time);
WPE_API void wpe_view_clear_press_count (WPEView *view);
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems counter-intuitive that an external entity has to tell the view that it has to clear something, because of a navigation/load action. I guess there is never a situation where we want to preserve that press count between such events, no?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WPE WebKit WebKit WPE component
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants