*Contact emails*[email protected]
*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*In progress: https://github.com/WICG/sw-launch/pull/58
*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": {
"route_to": "existing-client-navigate"
}
}
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* - Test the new syntax with "existing_client_navigate"
removed.
- Give more opportunities to gather feedback on the "route_to":
"existing-client-retain" behaviour that wasn't present in the DLC origin
trial.
*Experiment Timeline*Previous: M97 to M102.
Requested: M103 to M108.
*Reason this experiment is being extended*The shape of the API changed
<https://github.com/WICG/sw-launch/pull/53> to address TAG feedback on
default behaviours.
*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)
- Since that thread there is now a spec draft in review
<https://github.com/WICG/sw-launch/pull/58> and a request for position
<https://lists.webkit.org/pipermail/webkit-dev/2022-May/032243.html> from
WebKit.
- Alan Cutter
--
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 on the web visit
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/8b25bbe0-d021-4373-ad51-384a82e0f8c0n%40chromium.org.