<?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>265071</bug_id>
          
          <creation_ts>2023-11-17 16:16:58 -0800</creation_ts>
          <short_desc>Don&apos;t fire dblclick on disabled form control elements</short_desc>
          <delta_ts>2023-11-19 09:12:08 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</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=265073</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="Tim Nguyen (:ntim)">ntim</reporter>
          <assigned_to name="Ahmad Saleem">ahmad.saleem792</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>a_protyasha</cc>
    
    <cc>rniwa</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1993598</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2023-11-17 16:16:58 -0800</bug_when>
    <thetext>See:
https://github.com/whatwg/html/issues/2368#issuecomment-1791704780
https://chromium-review.googlesource.com/c/chromium/src/+/5007308
https://github.com/web-platform-tests/wpt/pull/42976</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1993599</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-11-17 16:17:18 -0800</bug_when>
    <thetext>&lt;rdar://problem/118584431&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1993602</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-11-17 16:31:24 -0800</bug_when>
    <thetext>Something to do here?

https://searchfox.org/wubkat/rev/114aa2c8594807cbc34dd5dff48a9e2addfd1e00/Source/WebCore/dom/EventDispatcher.cpp#160

if (node.document().settings().sendMouseEventsToDisabledFormControlsEnabled() &amp;&amp; event.isTrusted() &amp;&amp; event.isMouseEvent()
        &amp;&amp; (event.type() == eventNames().mousedownEvent || event.type() == eventNames().mouseupEvent || event.type() == eventNames().clickEvent)) {
        eventPath.adjustForDisabledFormControl();
    }</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1993603</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-11-17 16:33:14 -0800</bug_when>
    <thetext>Adding:

|| event.type() == eventNames().dblclickEvent</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1993612</commentid>
    <comment_count>4</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-11-17 17:25:31 -0800</bug_when>
    <thetext>NOTE - this compiles and after importing new tests and running on patch build, we pass all tests.

@Tim - do you want me to do PR? I might do separate bug first to update all tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1993613</commentid>
    <comment_count>5</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-11-17 17:26:35 -0800</bug_when>
    <thetext>PASS Testing dblclick events when clicking child of disabled button.
PASS Testing dblclick events when clicking child of disabled my-control.
PASS Testing dblclick events when clicking disabled button.
PASS Testing dblclick events when clicking disabled my-control.

^ All passes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1993616</commentid>
    <comment_count>6</comment_count>
    <who name="Abrar Rahman Protyasha">a_protyasha</who>
    <bug_when>2023-11-17 17:44:24 -0800</bug_when>
    <thetext>@ahmad.saleem792@gmail.com go for it. Let&apos;s start with a PR syncing `wpt:html/semantics/` and then a PR for the fix you&apos;re proposing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1993617</commentid>
    <comment_count>7</comment_count>
    <who name="Abrar Rahman Protyasha">a_protyasha</who>
    <bug_when>2023-11-17 17:44:45 -0800</bug_when>
    <thetext>Ah, spoke a minute too late, I see the WPT sync PR is up.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1993757</commentid>
    <comment_count>8</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-11-19 09:12:06 -0800</bug_when>
    <thetext>Committed 270951@main (74ae3ea8d68e): &lt;https://commits.webkit.org/270951@main&gt;

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

    </bug>

</bugzilla>