*Contact emails*alancut...@chromium.org

*Original I2E*
https://groups.google.com/a/chromium.org/g/blink-dev/c/wNOClobsLrs


*Explainer*https://github.com/WICG/sw-launch/blob/main/launch_handler.md


*Specification*Draft: https://wicg.github.io/sw-launch/


*Summary*Adds a "launch_handler" app manifest member that enables web apps
to customise their launch behaviour across all types of app launch triggers
(start menu launch, link capture, share target, etc.).

Example usage:
{
  "name": "Example app",
  "start_url": "/index.html",
  "launch_handler": {
    "client_mode": "navigate-existing"
  }
}
This will cause all launches of the Example app to focus an existing app
window and navigate it (if it exists) instead of always launching a new app
window.


*Blink component*Blink>AppManifest
<https://bugs.chromium.org/p/chromium/issues/list?q=component:Blink%3EAppManifest>

*TAG review*
https://github.com/w3ctag/design-reviews/issues/683


*TAG review status*Closed. Satisfied to see this move ahead but keeping in
mind compatibility with the MiniApp lifecycle
<https://github.com/WICG/sw-launch/issues/52>.

*Risks:*
*Interoperability and Compatibility*
 - Gecko: No signal
<https://github.com/mozilla/standards-positions/issues/567>
 - WebKit: No signal
<https://lists.webkit.org/pipermail/webkit-dev/2022-May/032243.html>
 - Web developers: Strong positive signals on the previous Declarative Link
Capturing origin trial
<https://developer.chrome.com/origintrials/#/view_trial/4285175045443026945>,
strong positive signals from the origin trial so far
<https://docs.google.com/document/d/1t60YeQ-d-FSr9i91jvylW6sA7_R4jDnX1G4_PDfssYE/edit#>
.


*Experiment Summary*Web App Launch Handler Origin Trial 1 Developer Feedback
<https://docs.google.com/document/d/1t60YeQ-d-FSr9i91jvylW6sA7_R4jDnX1G4_PDfssYE/edit?usp=sharing>


*Experiment Goals* - Expose the new client_mode
<https://github.com/WICG/sw-launch/pull/60> syntax.
 - Validate attempts to fix bad interactions with share target
<https://github.com/WICG/sw-launch/issues/62>.


*Experiment Timeline*Previous: M103 to M106.
Requested: M107 to M110.


*Reason this experiment is being extended*- The route_to field has been
renamed to client_mode along with all its values (breaking change).
- We uncovered a bad interaction with share target
<https://github.com/WICG/sw-launch/issues/62> that requires spec change to
resolve.


*Will this feature be supported on all six Blink platforms (Windows, Mac,
Linux, Chrome OS, Android, and Android WebView)?*No, desktop only.

*Is this feature fully tested by* web-platform-tests
<https://chromium.googlesource.com/chromium/src/+/master/docs/testing/web_platform_tests.md>
*?*No, this requires browser_tests
<https://source.chromium.org/search?q=class:WebAppLaunchHanderBrowserTest&ss=chromium>
as
it involves managing windows.
Have raised an issue
<https://github.com/web-platform-tests/wpt/issues/33835> with testdriver.js
for web app specific support.


*Flag name*chrome://flags/#enable-desktop-pwas-launch-handler
kWebAppEnableLaunchHandler
<https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/public/common/features.h;bpv=1;bpt=1;l=376?q=kWebAppEnableLaunchHandler&gsn=kWebAppEnableLaunchHandler&gs=kythe%3A%2F%2Fchromium.googlesource.com%2Fchromium%2Fsrc%3Flang%3Dc%252B%252B%3Fpath%3Dthird_party%2Fblink%2Fpublic%2Fcommon%2Ffeatures.h%23dBeGhIBrlUn9xqyup36XrW7qdqyxtZdxlPtCpwHSK7k>


*Tracking bug*https://bugs.chromium.org/p/chromium/issues/detail?id=1231886


*Link to entry on the Chrome Platform Status*
https://www.chromestatus.com/feature/5722383233056768

*Previous blink-dev threads*
Intent to Prototype
<https://groups.google.com/a/chromium.org/g/blink-dev/c/8tNe2jrJ78A>
Intent to Experiment
<https://groups.google.com/a/chromium.org/g/blink-dev/c/wNOClobsLrs>
Request to Extend Experiment
<https://groups.google.com/a/chromium.org/g/blink-dev/c/pKl0eEeN5U4>
 (rejected)
Intent to Extend Experiment: Web app launch handler
<https://groups.google.com/a/chromium.org/g/blink-dev/c/BzwopwOFzFw> (extended
to M106)
Since the last extension there is now a spec draft
<https://wicg.github.io/sw-launch/>, some breaking API changes
<https://github.com/WICG/sw-launch/pull/60> and a broken interaction with share
target <https://github.com/WICG/sw-launch/issues/62> that needs spec work.

-- 
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 blink-dev+unsubscr...@chromium.org.
To view this discussion on the web visit 
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CANJJ2CmyiSPHr-f0RXVpmuja-H1bTQik-3B-hkBK90Q-FqwJag%40mail.gmail.com.

Reply via email to