Skip to content
Commit f709fea1 authored by Christian Flach's avatar Christian Flach Committed by Chromium LUCI CQ
Browse files

iwa: Extract Update Manifest parsing logic from policy handling

This CL extracts the update manifest downloading and parsing logic into
a standalone class, `IsolatedWebAppUpdateManifestFetcher`. This is in
preparation for re-using the update manifest processing for implementing
updating of IWAs.

This CL also introduces a new `UpdateManifest` class, which acts as a
thin wrapper around the data contained in an update manifest.

The parsing logic is now also aligned more closely to the explainer:
- Additional fields are ignored.
- Invalid URLs or versions are ignored, instead of failing parsing.

Update Manifest Explainer: https://github.com/WICG/isolated-web-apps/blob/main/Updates.md

Bug: 1444407
Change-Id: I9e5f088eaab68ef544144e2ce29d1b264e5169f8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4521123


Commit-Queue: Christian Flach <cmfcmf@chromium.org>
Reviewed-by: default avatarOleksandr Peletskyi <peletskyi@chromium.org>
Reviewed-by: default avatarSonja Laurila <laurila@google.com>
Reviewed-by: default avatarRainhard Findling <rainhard@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1149098}
parent 276a7083
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment