From e2f780195395dde5bc1f28e200db89db77ec39c2 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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source b/source index 213f90acbef..20613699fe6 100644 --- a/source +++ b/source @@ -61957,8 +61957,9 @@ 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.