NEW284592
Implement dialog closedby attribute
https://bugs.webkit.org/show_bug.cgi?id=284592
Summary Implement dialog closedby attribute
Mason Freed
Reported 2024-12-12 16:38:02 PST
This is an implementation bug for the new light dismiss behaviors (including closedby attribute and dialog.requestclose()) proposed here: https://github.com/whatwg/html/pull/10737
Attachments
Radar WebKit Bug Importer
Comment 1 2024-12-19 16:38:13 PST
Luke Warlow
Comment 2 2025-01-15 05:21:16 PST
Moved dialog.requestClose() to its own bug as I believe it can be implemented separate to the other changes (which rely on CloseWatcher being implemented in WebKit). https://bugs.webkit.org/show_bug.cgi?id=285989
Luke Warlow
Comment 3 2025-01-29 09:24:20 PST
Assigning to myself, I have a prototype of the closedby="any" behaviour, am waiting on Close Watcher's to be merged and integrated with dialog so I can implement the closerequest and none values too.
Karl Dubost
Comment 4 2025-08-26 18:04:24 PDT
Luke, Since dialog.requestClose() has been merged, Would publishing the closedby="any" prototype be possible?
Luke Warlow
Comment 5 2025-08-27 01:10:07 PDT
For the full closedby it needs wider close watcher support (I believe anyway, there may be a way to approximate it without that) but yes I think the best course of action is to get the prototype for closedby=any into a PR just have it behind a flag and then as more gets done we can finish it off.
Luke Warlow
Comment 6 2025-08-27 04:37:27 PDT
https://github.com/whatwg/html/pull/11326 - for those tracking there was also some spec issues with the initial version of closedby which delayed things a bit while we resolved them. This is the final change neccessary before we have a solid base to work from.
Note You need to log in before you can comment on or make changes to this bug.