diff --git a/index.html b/index.html index bb81668..392ad69 100644 --- a/index.html +++ b/index.html @@ -284,46 +284,37 @@

- Launching a Web App + Launching a Web App with Handling

- When launching a web app via any means the trigger of the launch - should run the steps to [=launch a web app=] with a {{LaunchParams}} - containing relevant launch information (e.g. share data in the event - of a share target launch). + This specification amends the existing algorithm to + launch a web + application to include the behavior of [=manifest/launch_handler=] + by replacing it with the steps to [=launch a web app with handling=].

-

- Examples of different web app launch triggers: -

-

- The steps to launch a web app are given by the following - algorithm and takes an optional {{LaunchParams}} - |params:LaunchParams|. + The steps to launch a web app with handling are given by + the following algorithm. The algorithm takes a + processed manifest + |manifest:processed manifest|, + an optional |target URL:URL| or {{LaunchParams}} + |params:LaunchParams|, and returns a + [=service worker client/window client=].

    -
  1. If |params| is null, set |params| to a new {{LaunchParams}} with - {{LaunchParams/targetURL}} set to [=manifest/start_url=]. -
  2. +
  3. If |params| is null: +
      +
    1. If |target URL| is null, set |target URL| to + |manifest|.[=manifest/start_url=] +
    2. +
    3. Set |params| to a new {{LaunchParams}} with + {{LaunchParams/targetURL}} set to |target URL|. +
    4. +
    +
  4. Set |client| to the result of running the steps to - [=prepare a web app launch client=] passing the web app's - processed - manifest and |params|.{{LaunchParams/targetURL}}. + [=prepare a web app launch client=] passing |manifest| and + |params|.{{LaunchParams/targetURL}}.
  5. Append |params| to the [=unconsumed launch params=] of the |client|'s document's {{Window/launchQueue}}.