<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>273750</bug_id>
          
          <creation_ts>2024-05-05 18:46:23 -0700</creation_ts>
          <short_desc>[WPE][WebDriver] Implement automation keyboard and mouse input handlers for new WPE API</short_desc>
          <delta_ts>2024-06-12 15:31:29 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WPE WebKit</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=275423</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>265646</blocked>
    
    <blocked>274776</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Lauro Moura">lmoura</reporter>
          <assigned_to name="Diego Pino">dpino</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>dpino</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2033373</commentid>
    <comment_count>0</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2024-05-05 18:46:23 -0700</bug_when>
    <thetext>Currently, the handlers in `WebAutomationSessionLibWPE.cpp` expect the old API, causing a segfault when invoked through a WebView using the new API.

The handlers should be modified to generate the new `WPEEvent` instances when running under the new API.

Patch incoming.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2033374</commentid>
    <comment_count>1</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2024-05-05 19:21:06 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/28155</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2038175</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-05-28 04:55:53 -0700</bug_when>
    <thetext>Committed 279376@main (4a97b2ece9b5): &lt;https://commits.webkit.org/279376@main&gt;

Reviewed commits have been landed. Closing PR #28155 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2038422</commentid>
    <comment_count>3</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2024-05-29 05:04:22 -0700</bug_when>
    <thetext>WPE Debug build bot is failing with error:

https://build.webkit.org/#/builders/66/builds/32268/steps/10/logs/stdio

```
In file included from /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/StdLibExtras.h:35,
                 from /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/FastMalloc.h:26,
                 from /app/webkit/Source/WebKit/config.h:42,
                 from /app/webkit/Source/WebKit/UIProcess/Automation/libwpe/WebAutomationSessionWPE.cpp:26,
                 from /app/webkit/WebKitBuild/WPE/Debug/DerivedSources/WebKit/unified-sources/UnifiedSource-88d1702b-23.cpp:1:
/app/webkit/Source/WebKit/UIProcess/Automation/libwpe/WebAutomationSessionWPE.cpp: In function ‘void WebKit::doKeyStrokeEvent(WebPageProxy&amp;, bool, uint32_t, uint32_t, bool)’:
/app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/Assertions.h:162:56: error: ‘LOG_CHANNEL_PREFIXAutomation’ was not declared in this scope; did you mean ‘LOG_CHANNEL_PREFIX’?
  162 | #define LOG_CHANNEL(name) JOIN_LOG_CHANNEL_WITH_PREFIX(LOG_CHANNEL_PREFIX, name)
      |                                                        ^~~~~~~~~~~~~~~~~~
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2038423</commentid>
    <comment_count>4</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2024-05-29 05:04:53 -0700</bug_when>
    <thetext>Re-opening for pull request https://github.com/webkit/webkit/pull/29217</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2038761</commentid>
    <comment_count>5</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2024-05-30 07:29:14 -0700</bug_when>
    <thetext>In case unified sources groups files &apos;UIProcess/Automation/libwpe/WebAutomationSessionLibWPE.cpp&apos; and &apos;UIProcess/Automation/libwpe/WebAutomationSessionWPE.cpp&apos;, a duplicate symbol build error will happen:

```
Source/WebKit/CMakeFiles/WebKit.dir/__/__/DerivedSources/WebKit/unified-sources/UnifiedSource-88d1702b-23.cpp.o.d -o Source/WebKit/CMakeFiles/WebKit.dir/__/__/DerivedSources/WebKit/unified-sources/UnifiedSource-88d1702b-23.cpp.o -c DerivedSources/WebKit/unified-sources/UnifiedSource-88d1702b-23.cpp
In file included from DerivedSources/WebKit/unified-sources/UnifiedSource-88d1702b-23.cpp:8:
../../../Source/WebKit/UIProcess/Automation/libwpe/WebAutomationSessionWPE.cpp:84:17: error: redefinition of &apos;modifiersToEventState&apos;
   84 | static uint32_t modifiersToEventState(OptionSet&lt;WebEventModifier&gt; modifiers)
      |                 ^
../../../Source/WebKit/UIProcess/Automation/libwpe/WebAutomationSessionLibWPE.cpp:38:17: note: previous definition is here
   38 | static uint32_t modifiersToEventState(OptionSet&lt;WebEventModifier&gt; modifiers)
      |                 ^
In file included from DerivedSources/WebKit/unified-sources/UnifiedSource-88d1702b-23.cpp:8:
../../../Source/WebKit/UIProcess/Automation/libwpe/WebAutomationSessionWPE.cpp:100:17: error: redefinition of &apos;mouseButtonToWPEButton&apos;
  100 | static unsigned mouseButtonToWPEButton(MouseButton button)
      |                 ^
../../../Source/WebKit/UIProcess/Automation/libwpe/WebAutomationSessionLibWPE.cpp:50:17: note: previous definition is here
   50 | static unsigned mouseButtonToWPEButton(MouseButton button)
      |                 ^
In file included from DerivedSources/WebKit/unified-sources/UnifiedSource-88d1702b-23.cpp:8:
../../../Source/WebKit/UIProcess/Automation/libwpe/WebAutomationSessionWPE.cpp:114:17: error: redefinition of &apos;stateModifierForWPEButton&apos;
  114 | static unsigned stateModifierForWPEButton(unsigned button)
      |                 ^
../../../Source/WebKit/UIProcess/Automation/libwpe/WebAutomationSessionLibWPE.cpp:64:17: note: previous definition is here
   64 | static unsigned stateModifierForWPEButton(unsigned button)
      |                 ^
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2038762</commentid>
    <comment_count>6</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2024-05-30 07:31:58 -0700</bug_when>
    <thetext>Pull request: https://github.com/webkit/webkit/pull/29306</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2038848</commentid>
    <comment_count>7</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-05-30 13:04:12 -0700</bug_when>
    <thetext>Committed 279538@main (5ca7f83342d3): &lt;https://commits.webkit.org/279538@main&gt;

Reviewed commits have been landed. Closing PR #29306 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>