<?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>295252</bug_id>
          
          <creation_ts>2025-06-30 18:36:06 -0700</creation_ts>
          <short_desc>[WPE] Click count leaking through successive layout test within the same WPEView</short_desc>
          <delta_ts>2025-07-11 04:16:46 -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>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Lauro Moura">lmoura</reporter>
          <assigned_to name="Carlos Garcia Campos">cgarcia</assigned_to>
          <cc>bugs-noreply</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2126893</commentid>
    <comment_count>0</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2025-06-30 18:36:06 -0700</bug_when>
    <thetext>In the new WPE Platform, `WPEWebView` tracks the click count in its `priv-&gt;lastButtonPress` to forward to WebKit when processing incoming button presses. This click count can leak through tests when the same WPEWebView is fed events by EventSenderProxyClientWPE.

For example, the tests fast/html/details-remove-summary-X-and-click.html just removes an element from the DOM and makes a single mouseMove+mousePress+mouseUp operation in successive separate test files. For the first test, wpe ended the expectation with the correct &quot;caret:&quot; entry, and for subsequent tests, we could end up with a &quot;selection start:&quot; and &quot;selection end:&quot; pair and an emitted mouse double click. And, if running in isolation, we get the &quot;caret:&quot; instead.

Tentative patch incoming.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2126894</commentid>
    <comment_count>1</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2025-06-30 18:39:20 -0700</bug_when>
    <thetext>Fix: WPEView, not WebView</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2126897</commentid>
    <comment_count>2</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2025-06-30 18:52:34 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/47417</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2128950</commentid>
    <comment_count>3</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2025-07-10 02:07:17 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/47813</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2129294</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-07-11 04:16:43 -0700</bug_when>
    <thetext>Committed 297259@main (95499dad0adf): &lt;https://commits.webkit.org/297259@main&gt;

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

    </bug>

</bugzilla>