Skip to content

Commit

Permalink
Revert "Update Chrome beforeunload dialog control behavior (mdn#20942)…
Browse files Browse the repository at this point in the history
…" (mdn#20955)

This reverts commit b3354d0.
  • Loading branch information
queengooborg authored and Elchi3 committed Nov 14, 2023
1 parent 91742ce commit db4532d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 36 deletions.
16 changes: 4 additions & 12 deletions api/BeforeUnloadEvent.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -84,7 +76,7 @@
"status": {
"experimental": false,
"standard_track": true,
"deprecated": true
"deprecated": false
}
}
},
Expand Down
37 changes: 13 additions & 24 deletions api/Window.json
Original file line number Diff line number Diff line change
Expand Up @@ -356,24 +356,18 @@
},
"event_returnvalue_activation": {
"__compat": {
"description": "Activation using <code>event.returnValue = <any-truthy-value>;</code>",
"description": "Activation using <code>event.returnValue = \"string\";</code>",
"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"
},
Expand Down Expand Up @@ -440,21 +434,16 @@
"description": "Activation using <code>event.preventDefault()</code>",
"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"
},
Expand Down Expand Up @@ -483,7 +472,7 @@
},
"return_string_activation": {
"__compat": {
"description": "Activation using <code>return <any-truthy-value>;</code>",
"description": "Activation using <code>return \"string\";</code>",
"support": {
"chrome": {
"version_added": "1"
Expand Down

0 comments on commit db4532d

Please sign in to comment.