<?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>293703</bug_id>
          
          <creation_ts>2025-05-28 14:19:57 -0700</creation_ts>
          <short_desc>[WebDriver] Driver segfault when a pointer move or scroll action is missing a coordinate</short_desc>
          <delta_ts>2025-06-03 19:02:13 -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>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=290297</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="Lauro Moura">lmoura</assigned_to>
          <cc>bburg</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2120217</commentid>
    <comment_count>0</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2025-05-28 14:19:57 -0700</bug_when>
    <thetext>`WebDriverService::processPointerMoveAction`/`processWheelAction` need to validate the incoming action request for the required fields before dispatching the actions. If it fails to do so, `Session::performActions` might access the `WebDriver::Action` x and y fields directly without checking whether they&apos;re present, leading to errors like `bad_optional_access`.

Related WPT tests:

imported/w3c/webdriver/tests/classic/perform_actions/pointer_mouse.py::test_missing_coordinates[x]
imported/w3c/webdriver/tests/classic/perform_actions/pointer_mouse.py::test_missing_coordinates[y]
imported/w3c/webdriver/tests/classic/perform_actions/invalid.py::test_wheel_action_scroll_missing_property[x]
imported/w3c/webdriver/tests/classic/perform_actions/invalid.py::test_wheel_action_scroll_missing_property[y]
imported/w3c/webdriver/tests/classic/perform_actions/invalid.py::test_wheel_action_scroll_missing_property[deltaX]
imported/w3c/webdriver/tests/classic/perform_actions/invalid.py::test_wheel_action_scroll_missing_property[deltaY]

Patch incoming, alongside other small related scroll invalid type fixes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2120219</commentid>
    <comment_count>1</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2025-05-28 14:27:16 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/46014</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2120224</commentid>
    <comment_count>2</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2025-05-28 14:50:21 -0700</bug_when>
    <thetext>*** Bug 290297 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2121555</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-06-03 18:50:00 -0700</bug_when>
    <thetext>Committed 295789@main (80ff32d5e1ae): &lt;https://commits.webkit.org/295789@main&gt;

Reviewed commits have been landed. Closing PR #46014 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2121563</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-06-03 19:02:13 -0700</bug_when>
    <thetext>&lt;rdar://problem/152545957&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>