RESOLVED INVALID 288477
[WPE] Mouseklick not working anymore with 2.46.x using ENABLE_WPE_PLATFORM
https://bugs.webkit.org/show_bug.cgi?id=288477
Summary [WPE] Mouseklick not working anymore with 2.46.x using ENABLE_WPE_PLATFORM
marcus.marold
Reported 2025-02-25 05:48:06 PST
Hello, we're using a snap based on https://snapcraft.io/wpe-webkit-mir-kiosk, and updated to webkit 2.46.x (https://wpewebkit.org/release/) Since wpewebkit2.44.x the mouse click event does not work anymore. I found some changes mentioned in https://github.com/WebPlatformForEmbedded/WPEWebKit/blob/wpe-2.46/Source/WebKit/wpe/NEWS: "Add a ENABLE_WPE_PLATFORM build option to CMake. This is disabled by default because the WPEPlatform API is in development and provided as part of the 2.46.x releases as a preview feature." Because I'm not sure if the feature is temporarily not available or has to be enabled explicitly with some options, please let me know how to get this working again. We appreciate any help. https://github.com/WebKit/WebKit/blob/main/Source/cmake/OptionsWPE.cmake: if (ENABLE_WEBDRIVER) SET_AND_EXPOSE_TO_BUILD(ENABLE_WEBDRIVER_KEYBOARD_INTERACTIONS ON) SET_AND_EXPOSE_TO_BUILD(ENABLE_WEBDRIVER_MOUSE_INTERACTIONS ON) if (ENABLE_WPE_PLATFORM) SET_AND_EXPOSE_TO_BUILD(ENABLE_WEBDRIVER_TOUCH_INTERACTIONS ON) else () SET_AND_EXPOSE_TO_BUILD(ENABLE_WEBDRIVER_TOUCH_INTERACTIONS OFF) endif () SET_AND_EXPOSE_TO_BUILD(ENABLE_WEBDRIVER_WHEEL_INTERACTIONS ON) endif () This are our Build Options: 2025-02-11 13:25:47.727 :: -- ENABLE_BUBBLEWRAP_SANDBOX ..................... OFF 2025-02-11 13:25:47.727 :: -- ENABLE_DOCUMENTATION OFF 2025-02-11 13:25:47.728 :: -- ENABLE_ENCRYPTED_MEDIA ........................ OFF 2025-02-11 13:25:47.728 :: -- ENABLE_GAMEPAD ON 2025-02-11 13:25:47.728 :: -- ENABLE_INTROSPECTION .......................... OFF 2025-02-11 13:25:47.728 :: -- ENABLE_JOURNALD_LOG ON 2025-02-11 13:25:47.728 :: -- ENABLE_PDFJS .................................. ON 2025-02-11 13:25:47.728 :: -- ENABLE_VIDEO ON 2025-02-11 13:25:47.729 :: -- ENABLE_WEBDRIVER .............................. ON 2025-02-11 13:25:47.729 :: -- ENABLE_WEB_AUDIO ON 2025-02-11 13:25:47.729 :: -- ENABLE_WPE_1_1_API ............................ OFF 2025-02-11 13:25:47.730 :: -- ENABLE_WPE_PLATFORM ON 2025-02-11 13:25:47.730 :: -- ENABLE_WPE_PLATFORM_DRM ....................... ON 2025-02-11 13:25:47.730 :: -- ENABLE_WPE_PLATFORM_HEADLESS ON 2025-02-11 13:25:47.731 :: -- ENABLE_WPE_PLATFORM_WAYLAND ................... ON 2025-02-11 13:25:47.731 :: -- ENABLE_WPE_QT_API OFF 2025-02-11 13:25:47.732 :: -- ENABLE_XSLT ................................... ON 2025-02-11 13:25:47.733 :: -- USE_ATK ON 2025-02-11 13:25:47.734 :: -- USE_AVIF ...................................... ON 2025-02-11 13:25:47.735 :: -- USE_GBM ON 2025-02-11 13:25:47.736 :: -- USE_GSTREAMER_TRANSCODER ...................... ON 2025-02-11 13:25:47.737 :: -- USE_GSTREAMER_WEBRTC OFF 2025-02-11 13:25:47.738 :: -- USE_JPEGXL .................................... OFF 2025-02-11 13:25:47.740 :: -- USE_LCMS ON 2025-02-11 13:25:47.741 :: -- USE_LIBBACKTRACE .............................. OFF 2025-02-11 13:25:47.743 :: -- USE_LIBDRM ON 2025-02-11 13:25:47.745 :: -- USE_QT6 ....................................... OFF 2025-02-11 13:25:47.747 :: -- USE_WOFF2 ON
Attachments
Philippe Normand
Comment 1 2025-03-02 07:44:23 PST
What do you mean by "Mouseklick"? Is it the JS onclick event? Or something related with WebDriver?
marcus.marold
Comment 2 2025-03-03 22:47:59 PST
We have a angular 2 app and clicking on buttons, text fields or menu entries etc. has no effect at all, with all versions greater than stable 2.44.4 where everything worked fine. If I could collect more detailed information's about this issue for you, please let me know (e.g. trace, etc.) !
merzak.khorsi
Comment 3 2025-03-25 07:17:47 PDT
Hello ! , i can confirm this, on - Cog 0.18.4 - WPE WebKit 2.46.6 I built the two packages from tarball releases on ubuntu 22.04 native x64 , i have the same problem , the onClick event never fires, using this simple demo : https://unixpapa.com/js/testmouse.html i can see that mousedown and mouseup event fires correctly but no onClick event , the onClick event fires correctly on chrome, i havent checked with touch screen , ill test it on my iMX8 after i cross compile it.
marcus.marold
Comment 4 2025-05-25 22:54:40 PDT
Hello, did you find the root cause and is there already a fix available or is there a chance to one in near future? Is this a bug in WPE WebKit or Cog? This is preventing us to update to latest WebKit WPE version, so we would be happy to get this done. Please could you provide us a short status of the issue. Thank you in advance.
Carlos Garcia Campos
Comment 5 2025-05-29 00:32:13 PDT
I can reproduce with cog, but not with MiniBrowser, and only with wayland platform, gtk4 works fine, so I think this is a bug in cog wayland implementation.
Carlos Garcia Campos
Comment 6 2025-05-29 00:33:36 PDT
*** Bug 290758 has been marked as a duplicate of this bug. ***
Carlos Garcia Campos
Comment 7 2025-05-29 00:58:11 PDT
Confirmed this is a cog bug, see https://github.com/Igalia/cog/pull/760
Note You need to log in before you can comment on or make changes to this bug.