From f239744191e76402414f6e8f07fdc59863d7a6c8 Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Mon, 22 Apr 2024 15:22:43 +0900 Subject: [PATCH] Always fire CloseWatcher/dialog cancel events Previously, the anti-abuse mechanisms would sometimes skip these events. However, as discussed in #10047, it is more useful to fire them, and have the anti-abuse mechanisms set cancelable to false for them when appropriate. This allows observing close requests vs. other types of closes, by looking for the cancel event. Closes #10047. --- source | 84 ++++++++++++++++++++++++++++++++-------------------------- 1 file changed, 46 insertions(+), 38 deletions(-) diff --git a/source b/source index 51cd7b38a87..26243bd5b3c 100644 --- a/source +++ b/source @@ -61402,10 +61402,12 @@ interface HTMLDialogElement : HTMLElement { this's relevant global object, with: