Contact emails [email protected]
Explainer https://github.com/WICG/web-app-launch/blob/main/launch_handler.md Specification https://wicg.github.io/web-app-launch/#dfn-prepare-an-application-context Summary Grants transient user activation to an installed web app's existing window when a launch is delivered into it through the launch_handler "focus-existing" client mode. Today the launchQueue consumer runs without activation even though the user clicked a link, shortcut, file, or share that caused the launch, so the page cannot call activation-gated APIs such as window.open() or requestFullscreen() in response. With activation granted at delivery, apps that use focus-existing to avoid duplicate windows can still open a separate window when the launched URL belongs to a different document or workspace, in the same way a click on a Notification created by the page already activates that page. Blink component UI>Browser>WebAppInstalls Web Feature ID app-launch-handler Risks Interoperability and Compatibility Low. Additive. Only Chromium-based browsers implement launch_handler. The sole observable change is that activation-gated calls inside a launchQueue consumer succeed for focus-existing deliveries. Not granted on navigate-new, navigate-existing, or re-delivery. Gecko: No signal WebKit: No signal Web developers: Positive (https://github.com/WICG/manifest-incubations/issues/141) Other signals: Ergonomics None. Used together with window.launchQueue and launch_handler; no performance implications (one activation notification per launch). Activation None. Apps already using focus-existing benefit without code changes. Feature detection: read navigator.userActivation.isActive inside the launchQueue consumer. Security One user gesture maps to one transient activation. Same origin. Only installed apps that opted into focus-existing. The spec forbids granting activation for launches not initiated by the user and forbids granting it again on re-delivery (eg after reload). Activation is delivered browser-to-renderer on the same ordered channel as the LaunchParams. WebView application risks Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications? No information provided Debuggability navigator.userActivation.isActive inside the consumer reports the state. With the kill switch off, blocked window.open() calls surface in the omnibox popup-blocked UI as today. No new DevTools work. Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, ChromeOS, Android, and Android WebView)? No Windows, Mac, Linux, ChromeOS, Android: yes. Android WebView: no (WebView has no installed web apps or launch_handler). iOS: no (no Blink Is this feature fully tested by web-platform-tests? No Web Platform Tests or other automated test description launch_handler has no WPT coverage because installing a web app is not testable in WPT. Covered by Chromium browser_tests: WebAppLaunchHandlerBrowserTest*.UserActivation (enabled fixture asserts isActive is true and window.open() returns a window; disabled fixture asserts the opposite) Tracking bug https://crbug.com/583976233 Measurement UserActivationNotificationType.kWebAppLaunch (new enum value 17 in the existing user activation UMA). No UseCounter planned. Estimated milestones Shipping on desktop 160 Shipping on Android 160 Link to entry on the Chrome Platform Status https://chromestatus.com/feature/5191118118584320 This intent message was generated by Chrome Platform Status. -- You received this message because you are subscribed to the Google Groups "blink-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/6af4b581.c4d90b0f.20186.0173.GAE%40google.com.
