[Webkit-unassigned] [Bug 267900] InvalidStateError not thrown in Safari 17 when dialog showModal() called twice
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jan 31 16:03:07 PST 2024
https://bugs.webkit.org/show_bug.cgi?id=267900
--- Comment #9 from Jeff Johnson <opendarwin at lapcatsoftware.com> ---
> The case sideshowbarker mentioned was dialog.show() followed by
> dialog.showModal() I think, which is invalid because you're trying to
> promote a normal dialog to a modal dialog.
It was actually a dialog element with the open attribute already set in the HTML, but I guess that's effectively the same.
It seems to me that the entire dialog API is very confusing, because a prexisting open attribute means the dialog is non-modal, but calling showModal on a non-open dialog also sets the open attribute! Moreover, there's no "modal" attribute, even though according to the spec there appears to be an internal "is modal" flag.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240201/e4bae71d/attachment.htm>
More information about the webkit-unassigned
mailing list