From db4532d81cbd7eb487982d4b6dd9e76940641dd3 Mon Sep 17 00:00:00 2001 From: "Queen Vinyl Da.i'gyu-Kazotetsu" Date: Fri, 13 Oct 2023 00:13:03 -0700 Subject: [PATCH] Revert "Update Chrome beforeunload dialog control behavior (#20942)" (#20955) This reverts commit b3354d0d08eec08a9785175ff38e8dd0b7b375d5. --- api/BeforeUnloadEvent.json | 16 ++++------------ api/Window.json | 37 +++++++++++++------------------------ 2 files changed, 17 insertions(+), 36 deletions(-) diff --git a/api/BeforeUnloadEvent.json b/api/BeforeUnloadEvent.json index ae621f44fb5f5c..38df09c5335213 100644 --- a/api/BeforeUnloadEvent.json +++ b/api/BeforeUnloadEvent.json @@ -44,17 +44,9 @@ "__compat": { "spec_url": "https://html.spec.whatwg.org/multipage/browsing-the-web.html#dom-beforeunloadevent-returnvalue", "support": { - "chrome": [ - { - "version_added": "119" - }, - { - "version_added": "30", - "version_removed": "119", - "partial_implementation": true, - "notes": "Before Chrome 119, an empty string incorrectly activated the confirmation dialog." - } - ], + "chrome": { + "version_added": "30" + }, "chrome_android": "mirror", "deno": { "version_added": false @@ -84,7 +76,7 @@ "status": { "experimental": false, "standard_track": true, - "deprecated": true + "deprecated": false } } }, diff --git a/api/Window.json b/api/Window.json index 81cafb02edd4c6..18d0d4e4fd8fe1 100644 --- a/api/Window.json +++ b/api/Window.json @@ -356,24 +356,18 @@ }, "event_returnvalue_activation": { "__compat": { - "description": "Activation using event.returnValue = ;", + "description": "Activation using event.returnValue = \"string\";", "support": { - "chrome": [ - { - "version_added": "119" - }, - { - "version_added": "30", - "version_removed": "118", - "partial_implementation": true, - "notes": "Incorrectly activated the dialog with an empty string value." - } - ], + "chrome": { + "version_added": "30" + }, "chrome_android": "mirror", "deno": { "version_added": false }, - "edge": "mirror", + "edge": { + "version_added": "12" + }, "firefox": { "version_added": "6" }, @@ -440,21 +434,16 @@ "description": "Activation using event.preventDefault()", "support": { "chrome": { - "version_added": "119" + "version_added": false }, "chrome_android": "mirror", "deno": { "version_added": false }, - "edge": [ - { - "version_added": "119" - }, - { - "version_added": "12", - "version_removed": "79" - } - ], + "edge": { + "version_added": "12", + "version_removed": "79" + }, "firefox": { "version_added": "6" }, @@ -483,7 +472,7 @@ }, "return_string_activation": { "__compat": { - "description": "Activation using return ;", + "description": "Activation using return \"string\";", "support": { "chrome": { "version_added": "1"