diff --git a/features/beforeinstallprompt.yml b/features/beforeinstallprompt.yml new file mode 100644 index 00000000000..c3b3c9e1d8b --- /dev/null +++ b/features/beforeinstallprompt.yml @@ -0,0 +1,14 @@ +name: beforeinstallprompt +description: The `beforeinstallprompt` event fires when a Progressive Web App (PWA) is installable, usually on page load in browsers that support installing PWAs. You can use this event to prevent the install prompt from appearing until after the user interacts with an element on the page. +# The only engine where beforeinstallprompt is not supported is Chromium, and its implementation differs from the spec. +# BCD/MDN don't link to the spec because of this, and instead document what's in Chromium. +spec: https://wicg.github.io/manifest-incubations/ +group: progressive-web-app +compat_features: + - api.Window.beforeinstallprompt_event + - api.BeforeInstallPromptEvent + - api.BeforeInstallPromptEvent.BeforeInstallPromptEvent + - api.BeforeInstallPromptEvent.platforms + - api.BeforeInstallPromptEvent.prompt + - api.BeforeInstallPromptEvent.userChoice + - api.Window.appinstalled_event diff --git a/features/beforeinstallprompt.yml.dist b/features/beforeinstallprompt.yml.dist new file mode 100644 index 00000000000..59c2095926e --- /dev/null +++ b/features/beforeinstallprompt.yml.dist @@ -0,0 +1,41 @@ +# Generated from: beforeinstallprompt.yml +# Do not edit this file by hand. Edit the source file instead! + +status: + baseline: false + support: + chrome: "76" + chrome_android: "76" + edge: "79" +compat_features: + # baseline: false + # support: + # chrome: "44" + # chrome_android: "44" + # edge: "79" + - api.BeforeInstallPromptEvent + - api.BeforeInstallPromptEvent.BeforeInstallPromptEvent + - api.BeforeInstallPromptEvent.platforms + - api.BeforeInstallPromptEvent.userChoice + + # baseline: false + # support: + # chrome: "61" + # chrome_android: "61" + # edge: "79" + - api.Window.beforeinstallprompt_event + + # baseline: false + # support: + # chrome: "64" + # chrome_android: "57" + # edge: "79" + - api.Window.appinstalled_event + + # ⬇️ Same status as overall feature ⬇️ + # baseline: false + # support: + # chrome: "76" + # chrome_android: "76" + # edge: "79" + - api.BeforeInstallPromptEvent.prompt diff --git a/features/draft/spec/manifest-incubations.yml b/features/draft/spec/manifest-incubations.yml deleted file mode 100644 index 1aece46fd77..00000000000 --- a/features/draft/spec/manifest-incubations.yml +++ /dev/null @@ -1,7 +0,0 @@ -draft_date: 2024-09-09 -name: Manifest Incubations -description: TODO -spec: https://wicg.github.io/manifest-incubations/ -compat_features: - - api.Window.appinstalled_event - - api.Window.beforeinstallprompt_event diff --git a/features/draft/spec/manifest-incubations.yml.dist b/features/draft/spec/manifest-incubations.yml.dist deleted file mode 100644 index 3ec7f4f2bb1..00000000000 --- a/features/draft/spec/manifest-incubations.yml.dist +++ /dev/null @@ -1,23 +0,0 @@ -# Generated from: manifest-incubations.yml -# Do not edit this file by hand. Edit the source file instead! - -status: - baseline: false - support: - chrome: "64" - chrome_android: "61" - edge: "79" -compat_features: - # baseline: false - # support: - # chrome: "61" - # chrome_android: "61" - # edge: "79" - - api.Window.beforeinstallprompt_event - - # baseline: false - # support: - # chrome: "64" - # chrome_android: "57" - # edge: "79" - - api.Window.appinstalled_event