From 55b66a2964ca841b1b4cf2150e76224843f04d3f Mon Sep 17 00:00:00 2001 From: Hamish Willee Date: Fri, 2 May 2025 11:23:25 +1000 Subject: [PATCH 1/2] FF139 Relnote: HTMLDialogElement.requestClose() --- files/en-us/mozilla/firefox/releases/139/index.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/files/en-us/mozilla/firefox/releases/139/index.md b/files/en-us/mozilla/firefox/releases/139/index.md index 539564e316220fc..e282e4378ac53c8 100644 --- a/files/en-us/mozilla/firefox/releases/139/index.md +++ b/files/en-us/mozilla/firefox/releases/139/index.md @@ -39,6 +39,10 @@ This article provides information about the changes in Firefox 139 that affect d #### DOM +- The {{domxref("HTMLDialogElement/requestClose", "requestClose()")}} method of the {{domxref("HTMLDialogElement")}} interface is supported. + This allows developers to conditionally prevent a dialog from closing by providing a [`cancel` event](/en-US/docs/Web/API/HTMLDialogElement/cancel_event) handler. + ([Firefox bug 1960556](https://bugzil.la/1960556)). + #### Media, WebRTC, and Web Audio #### Removals From fb1601bba058f43c4d321063a8f0013b6d5be243 Mon Sep 17 00:00:00 2001 From: Dipika Bhattacharya Date: Fri, 2 May 2025 10:54:23 -0400 Subject: [PATCH 2/2] Update files/en-us/mozilla/firefox/releases/139/index.md --- files/en-us/mozilla/firefox/releases/139/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/en-us/mozilla/firefox/releases/139/index.md b/files/en-us/mozilla/firefox/releases/139/index.md index e282e4378ac53c8..cdac0622a1423b4 100644 --- a/files/en-us/mozilla/firefox/releases/139/index.md +++ b/files/en-us/mozilla/firefox/releases/139/index.md @@ -39,7 +39,7 @@ This article provides information about the changes in Firefox 139 that affect d #### DOM -- The {{domxref("HTMLDialogElement/requestClose", "requestClose()")}} method of the {{domxref("HTMLDialogElement")}} interface is supported. +- The {{domxref("HTMLDialogElement/requestClose", "requestClose()")}} method of the {{domxref("HTMLDialogElement")}} interface is now supported. This allows developers to conditionally prevent a dialog from closing by providing a [`cancel` event](/en-US/docs/Web/API/HTMLDialogElement/cancel_event) handler. ([Firefox bug 1960556](https://bugzil.la/1960556)).