Contact emails
Spec
https://w3c.github.io/manifest/#extensions-to-the-window-object
Summary
The proposal is to add window.onappinstalled and window.onbeforeinstallprompt attributes which can be used to set event handlers.
These event types have already been implemented in stable (using window.addEventListener to listen for 'appinstalled' and 'beforeinstallprompt' events, respectively). This intent is just for adding the attribute version.
Motivation
It's in the spec, and there's an expectation that events can be listened with either addEventListener('<X>') or on<X>. Frankly, I'm not sure why we don't just enforce both versions in Chrome architecturally (as apparently Firefox does).
Interoperability and Compatibility Risk
Low, since we already have implemented the event; this just adds the new attribute to the window namespace. We don't know whether Edge or Safari will ship this, but it hasn't stopped us from shipping the events themselves.
Edge: No signals
Firefox: appinstalled: In development*, beforeinstallprompt: Public support
Safari: No signals
Web developers: No signals
*Note: According to MDN, Firefox supports onappinstalled behind a flag. Indeed, turning on the flag "dom.manifest.oninstall" in Firefox 53 results in "window.onappinstalled" being available, but I can't find any actual way to trigger installation from within the Firefox UI.
Ongoing technical constraints
None
Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?
Yes (though may not yet fire on desktop platforms as we may not fire these events there; the listeners will still be present).
OWP launch tracking bug
Link to entry on the feature dashboard
https://www.chromestatus.com/feature/6560913322672128
Requesting approval to ship?
Yes.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAHqYdcYHz4h6xWc69vnn5ngK-fd4j3o-NTiEu7q32esct1bY9w%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAFUtAY8M_ytNZFGFTCCpBLyDXHHccxikMg9-exBtDcyRgKDz3g%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAOMQ%2Bw90-KqZdaVe5HkX7Fbdv4C6fOi1_KDs%3DpiOEnXkdTKOVw%40mail.gmail.com.
Motivation
It's in the spec, and there's an expectation that events can be listened with either addEventListener('<X>') or on<X>. Frankly, I'm not sure why we don't just enforce both versions in Chrome architecturally (as apparently Firefox does).