This includes both the new CloseWatcher API, and hooking it up to <dialog> and popover="" 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/
<rdar://problem/117163294>
Pull request: https://github.com/WebKit/WebKit/pull/21939
Small spec change coming here to improve web compat: https://github.com/whatwg/html/pull/10291