<?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>232123</bug_id>
          
          <creation_ts>2021-10-21 18:02:57 -0700</creation_ts>
          <short_desc>First pointerdown event lost after context menu is triggered</short_desc>
          <delta_ts>2025-09-29 08:51:09 -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>UI Events</component>
          <version>Safari 15</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>macOS 10.15</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <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="Andrew O">andrewohlmann</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>akeerthi</cc>
    
    <cc>franco_vieira</cc>
    
    <cc>graouts</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1807480</commentid>
    <comment_count>0</comment_count>
    <who name="Andrew O">andrewohlmann</who>
    <bug_when>2021-10-21 18:02:57 -0700</bug_when>
    <thetext>Overview:

Pointer down events in Safari fail after triggering a context menu


Steps to Reproduce:

I&apos;ve created a simple test case here: https://jsfiddle.net/pyzt3wf1/1/ which consists of a single div with some standard UI event listeners (mousedown, mouseup, pointerdown, pointerup, click ).

1) Right click (or ctrl-click) anywhere in content area of the browser window on the linked example to trigger the browser&apos;s context menu.
2) Dismiss the context menu by clicking outside of it.
3) Click on the &quot;click me&quot; button to trigger that div&apos;s event listeners, which should trigger console logs viewable in either Safari&apos;s developer tools or within jsfiddle&apos;s built-in console, viewable by clicking &quot;&gt;_ Console(beta)&quot; at the bottom of the preview frame.


Actual Results:

All of the events fire their respective callback, except for pointerdown. The console reads:
mousedown
pointerup
mouseup
click

Subsequent clicks on the div appear to trigger events correctly.


Expected Results:

All of the events should fire their respective callback. The console should read:
pointerdown
mousedown
pointerup
mouseup
click

Date &amp; Hardware: This bug has been reproduced on Safari 15.0 on both OS 10.15.7 and 11.6 . Similar behavior was experienced with Safari 14, although it hasn&apos;t been narrowed down to a reproducible case until now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1809925</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-10-28 18:03:16 -0700</bug_when>
    <thetext>&lt;rdar://problem/84787733&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2144136</commentid>
    <comment_count>2</comment_count>
    <who name="Franco Vieira de Souza">franco_vieira</who>
    <bug_when>2025-09-18 14:52:04 -0700</bug_when>
    <thetext>Still valid. Here&apos;s another fiddle, as the original isn&apos;t available anymore: https://jsfiddle.net/97qk6cex/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2145089</commentid>
    <comment_count>3</comment_count>
    <who name="Franco Vieira de Souza">franco_vieira</who>
    <bug_when>2025-09-22 19:23:55 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/51164</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2146856</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-09-29 08:50:49 -0700</bug_when>
    <thetext>Committed 300696@main (a19b08297f53): &lt;https://commits.webkit.org/300696@main&gt;

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

    </bug>

</bugzilla>