From 67f78ff3019be9ca8648c20d89bf93c127627469 Mon Sep 17 00:00:00 2001 From: Luke Warlow Date: Sun, 2 Feb 2025 23:33:42 +0000 Subject: [PATCH] Fix dialog `requestClose()` to handle edge case Dialog requestClose() now directly calls close the dialog if dialog's close watcher is null. This replaces a previous assert that's wrong. --- source | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source b/source index 61f30552fe3..1c90a275ee4 100644 --- a/source +++ b/source @@ -62087,8 +62087,8 @@ interface HTMLDialogElement : HTMLElement {
  • If this does not have an open attribute, then return.

  • -
  • Assert: this's close - watcher is not null.

  • +
  • If this's close watcher is null, then + close the dialog this with returnValue and return.

  • Set dialog's enable close watcher for requestClose() to true.