From 8ce284cfeef91169974c01351f1ddd15a63bad52 Mon Sep 17 00:00:00 2001 From: Hassan Talat Date: Tue, 19 Nov 2024 14:42:24 -0800 Subject: [PATCH 1/2] Update cross origin explainer --- WebInstall/explainer_cross_domain.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WebInstall/explainer_cross_domain.md b/WebInstall/explainer_cross_domain.md index d26e2322..79c96baa 100644 --- a/WebInstall/explainer_cross_domain.md +++ b/WebInstall/explainer_cross_domain.md @@ -107,9 +107,9 @@ If the `manifest_id` is the *what* to install, the `install_url` is the *where* Unless the UA decides to [gate this functionality behind installation](#gating-capability-behind-installation), the behaviour between calling the `install` method on a tab or on an installed application should not differ. The install method can be used in two different ways. -1. `navigator.install(manifest_id, [, ])`: This signature of the method requires the id of the application to be installed (`manifest_id`), and the installation location for the app (`install_url`). This is the most common API use case the API for cross-origin scenarios. +1. `navigator.install(manifest_id, [, ])`: This signature of the method takes an id and install url and tries to install the web content at install_url. Installation will proceed if the following are true: a. The target web app links to a manifest. b. The target web app's manifest includes either an id or start_url. c. The id parameter matches the declared or resolved id of the target web app. This is the most common API use case the API for cross-origin scenarios. -This will prompt for installation of the app if the requesting origin has installation permissions (see [security section](#integration-with-the-permissions-api)) and the target application has specified this domain in its `install_sources` manifest field. +This will prompt for installation of the app if the requesting origin has installation permissions (see [security section](#integration-with-the-permissions-api)). #### **Parameters** From ad654c700a54cc287231fbe354bb867af6dfc4c1 Mon Sep 17 00:00:00 2001 From: Hassan Talat Date: Tue, 19 Nov 2024 14:55:38 -0800 Subject: [PATCH 2/2] Update WebInstall/explainer_cross_domain.md Co-authored-by: Amanda Baker --- WebInstall/explainer_cross_domain.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WebInstall/explainer_cross_domain.md b/WebInstall/explainer_cross_domain.md index 79c96baa..b40892d0 100644 --- a/WebInstall/explainer_cross_domain.md +++ b/WebInstall/explainer_cross_domain.md @@ -107,7 +107,7 @@ If the `manifest_id` is the *what* to install, the `install_url` is the *where* Unless the UA decides to [gate this functionality behind installation](#gating-capability-behind-installation), the behaviour between calling the `install` method on a tab or on an installed application should not differ. The install method can be used in two different ways. -1. `navigator.install(manifest_id, [, ])`: This signature of the method takes an id and install url and tries to install the web content at install_url. Installation will proceed if the following are true: a. The target web app links to a manifest. b. The target web app's manifest includes either an id or start_url. c. The id parameter matches the declared or resolved id of the target web app. This is the most common API use case the API for cross-origin scenarios. +1. `navigator.install(manifest_id, [, ])`: The method takes an id and install url and tries to install the web content at `install_url`. Installation will proceed if the following are true: a. The target web app links to a manifest. b. The target web app's manifest includes either an `id` or `start_url`. c. The `id` parameter matches the declared or resolved id of the target web app. This is the most common API use case the API for cross-origin scenarios. This will prompt for installation of the app if the requesting origin has installation permissions (see [security section](#integration-with-the-permissions-api)).