https://html.spec.whatwg.org/multipage/interactive-elements.html#dialog-close-watcher
Pull request: https://github.com/WebKit/WebKit/pull/29116
<rdar://problem/129116411>