Skip to content

Commit b610c20

Browse files
authored
Update cross origin explainer (MicrosoftEdge#908)
updating the description of the install parameter based on MicrosoftEdge#894 also, removing the part about adding to manifest's install_source as it no longer applies.
1 parent 79613e5 commit b610c20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WebInstall/explainer_cross_domain.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ If the `manifest_id` is the *what* to install, the `install_url` is the *where*
107107

108108
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.
109109

110-
1. `navigator.install(manifest_id, <install_url> [, <params>])`: 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.
110+
1. `navigator.install(manifest_id, <install_url> [, <params>])`: 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.
111111

112-
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.
112+
This will prompt for installation of the app if the requesting origin has installation permissions (see [security section](#integration-with-the-permissions-api)).
113113

114114
#### **Parameters**
115115

0 commit comments

Comments
 (0)