Ensure web manifest scope is within service worker scope for installability check |
|
Issue descriptionRecent changes to the web app manifest spec (https://www.w3.org/TR/appmanifest/#scope-member) We want to ensure that the manifest's scope lies within the realm controlled by a service worker. Currently, we check that the start_url is within the scope of a service worker. We should: 1. update the manifest parser to use the start_url as the default scope if scope is not supplied by the developer 2. update the installbility check to ensure that the manifest scope is within the service worker scope, rather than the manifest URL being within the service worker scope.
,
Feb 7 2018
#1: correct, we substitute in the start_url as the default scope in the Chrome layer, not in the manifest implementation. Currently the manifest parser sets scope as the empty URL if it isn't supplied (as per the spec prior to your very recent changes). We could then remove the substitution at the higher layers (which I believe is duplicated across desktop and Android implementations, in C++ and and Java respectively). The substitution is done prior to sending data to the WebAPK server so it shouldn't need any changes. |
|
►
Sign in to add a comment |
|
Comment 1 by mgiuca@chromium.org
, Feb 7 2018