<?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>213060</bug_id>
          
          <creation_ts>2020-06-10 17:01:49 -0700</creation_ts>
          <short_desc>[WebDriver] Support input cancel list</short_desc>
          <delta_ts>2025-10-23 16:19:08 -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>WebDriver</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=193684</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</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="Nobody">webkit-unassigned</assigned_to>
          <cc>bburg</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1661441</commentid>
    <comment_count>0</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2020-06-10 17:01:49 -0700</bug_when>
    <thetext>Currently, WebAutomationSession/SimulatedInputDispacher generates a set of default reset states for each input source when canceling an interaction sequence. (WebAutomationSession::cancelInteractionSequence).

This is causing the mouseup reset event to be emitted with (0,0) position instead of the position of the last mouse press/move. This is making imported/w3c/webdriver/tests/perform_actions/pointer_contextmenu.py::test_release_control_click (and probably others to fail).

A tentative fix for this, preserving the pointer coordinate, also showed that the order of the actions is not preserved (Cancel actions are traversed in a different order than expected).

In the current WebDriver spec, these are the actions that add actions to the inputCancelList:

* KeyDown -&gt; Adds the same state with KeyUp
* PointerDown -&gt; Adds the same state with PointerUp</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2153859</commentid>
    <comment_count>1</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2025-10-23 16:19:02 -0700</bug_when>
    <thetext>See https://wpt.fyi/results/webdriver/tests/classic/perform_actions/pointer_contextmenu.py?label=master&amp;label=experimental&amp;product=chrome&amp;product=edge&amp;product=firefox&amp;product=safari&amp;product=webkitgtk&amp;product=wpewebkit&amp;q=subtest%3Atest_release_control_click for current results.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2153860</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-10-23 16:19:08 -0700</bug_when>
    <thetext>&lt;rdar://problem/163300143&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>