<?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>263305</bug_id>
          
          <creation_ts>2023-10-17 23:26:31 -0700</creation_ts>
          <short_desc>[meta] Implement close requests and close watchers</short_desc>
          <delta_ts>2026-01-12 09:03:31 -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>REOPENED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar, WPTImpact</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>274717</dependson>
    
    <dependson>274719</dependson>
    
    <dependson>274832</dependson>
    
    <dependson>287873</dependson>
    
    <dependson>266379</dependson>
    
    <dependson>266554</dependson>
    
    <dependson>266989</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Domenic Denicola">d</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>afrehner.work</cc>
    
    <cc>eoconnor</cc>
    
    <cc>karlcow</cc>
    
    <cc>lwarlow</cc>
    
    <cc>mike</cc>
    
    <cc>ryan</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1985799</commentid>
    <comment_count>0</comment_count>
    <who name="Domenic Denicola">d</who>
    <bug_when>2023-10-17 23:26:31 -0700</bug_when>
    <thetext>This includes both the new CloseWatcher API, and hooking it up to &lt;dialog&gt; and popover=&quot;&quot; so that they have the same behavior. (Including in edge cases like many of them being opened simultaneously.)

See:

* https://html.spec.whatwg.org/#close-requests-and-close-watchers
* https://github.com/WICG/close-watcher
* https://github.com/whatwg/html/pull/9462
* https://github.com/web-platform-tests/wpt/tree/master/close-watcher
* https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/html/closewatcher/
* https://source.chromium.org/chromium/chromium/src/+/main:content/browser/closewatcher/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1985958</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-10-18 14:00:43 -0700</bug_when>
    <thetext>&lt;rdar://problem/117163294&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2000284</commentid>
    <comment_count>2</comment_count>
    <who name="Luke Warlow">lwarlow</who>
    <bug_when>2023-12-17 11:07:57 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/21939</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2030131</commentid>
    <comment_count>3</comment_count>
    <who name="Domenic Denicola">d</who>
    <bug_when>2024-04-21 23:29:07 -0700</bug_when>
    <thetext>Small spec change coming here to improve web compat: https://github.com/whatwg/html/pull/10291</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2076617</commentid>
    <comment_count>4</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2024-11-20 23:18:25 -0800</bug_when>
    <thetext>Safari is failing that Firefox and Chrome are passing.
https://wpt.fyi/results/close-watcher/user-activation/y-dialog-disconnected.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2076618</commentid>
    <comment_count>5</comment_count>
    <who name="Domenic Denicola">d</who>
    <bug_when>2024-11-20 23:21:34 -0800</bug_when>
    <thetext>I mean, Safari is failing all the close watcher tests, right? Not just that one. https://wpt.fyi/results/close-watcher?label=experimental&amp;label=master&amp;aligned</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2090579</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-01-29 15:53:01 -0800</bug_when>
    <thetext>Committed 289529@main (74e0b308c997): &lt;https://commits.webkit.org/289529@main&gt;

Reviewed commits have been landed. Closing PR #21939 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2090590</commentid>
    <comment_count>7</comment_count>
    <who name="Luke Warlow">lwarlow</who>
    <bug_when>2025-01-29 16:22:35 -0800</bug_when>
    <thetext>Reopening so this can be used to track the full implementation that PR should have used a sub issue rather than the meta one.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>