Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions features/beforeunload.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Beforeunload
description: "The `beforeunload` event is fired when the current window is about to be unloaded. Typically this is used to display a dialog to confirm if users really want to leave the page when there is unsaved data that would be lost."
spec: https://html.spec.whatwg.org/multipage/nav-history-apis.html#the-beforeunloadevent-interface
# The commented out keys below are deprecated.
compat_features:
- api.BeforeUnloadEvent
- api.Window.beforeunload_event
#- api.Window.beforeunload_event.event_returnvalue_activation
#- api.Window.beforeunload_event.generic_string_displayed
- api.Window.beforeunload_event.preventdefault_activation
#- api.Window.beforeunload_event.return_string_activation
49 changes: 49 additions & 0 deletions features/beforeunload.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Generated from: beforeunload.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: false
support:
chrome: "119"
chrome_android: "119"
edge: "119"
firefox: "6"
firefox_android: "6"
safari: "11"
compat_features:
# baseline: high
# baseline_low_date: 2015-07-29
# baseline_high_date: 2018-01-29
# support:
# chrome: "1"
# chrome_android: "18"
# edge: "12"
# firefox: "1"
# firefox_android: "4"
# safari: "3"
# safari_ios: "1"
- api.Window.beforeunload_event

# baseline: high
# baseline_low_date: 2015-07-29
# baseline_high_date: 2018-01-29
# support:
# chrome: "30"
# chrome_android: "30"
# edge: "12"
# firefox: "1.5"
# firefox_android: "4"
# safari: "7"
# safari_ios: "7"
- api.BeforeUnloadEvent

# ⬇️ Same status as overall feature ⬇️
# baseline: false
# support:
# chrome: "119"
# chrome_android: "119"
# edge: "119"
# firefox: "6"
# firefox_android: "6"
# safari: "11"
- api.Window.beforeunload_event.preventdefault_activation
2 changes: 0 additions & 2 deletions features/draft/spec/html.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: HTML Standard
description: TODO
spec: https://html.spec.whatwg.org/multipage/
compat_features:
- api.BeforeUnloadEvent
- api.CanvasPattern
- api.CanvasPattern.setTransform
- api.CustomElementRegistry.get
Expand Down Expand Up @@ -466,7 +465,6 @@ compat_features:
- api.Window
- api.Window.DOMContentLoaded_event
- api.Window.alert
- api.Window.beforeunload_event
- api.Window.blur_event
- api.Window.close
- api.Window.closed
Expand Down
14 changes: 0 additions & 14 deletions features/draft/spec/html.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ compat_features:
- api.HTMLOptionsCollection.length
- api.HTMLOptionsCollection.selectedIndex
- api.Location.assign
- api.Window.beforeunload_event
- api.Window.frameElement
- api.Window.self
- api.Window.top
Expand Down Expand Up @@ -1562,19 +1561,6 @@ compat_features:
# safari_ios: "8"
- api.Document.currentScript

# baseline: high
# baseline_low_date: 2015-07-29
# baseline_high_date: 2018-01-29
# support:
# chrome: "30"
# chrome_android: "30"
# edge: "12"
# firefox: "1.5"
# firefox_android: "4"
# safari: "7"
# safari_ios: "7"
- api.BeforeUnloadEvent

# baseline: high
# baseline_low_date: 2015-07-29
# baseline_high_date: 2018-01-29
Expand Down