Bug 1515298 [wpt PR 14599] - SignedExchange: Reject SXG if fallback URL has invalid...
commit9680a5c5e60c2c03ab40773d2a83d6ac44f5062f
authorKunihiko Sakamoto <ksakamoto@chromium.org>
Thu, 31 Jan 2019 12:12:59 +0000 (31 12:12 +0000)
committerJames Graham <james@hoppipolla.co.uk>
Thu, 7 Feb 2019 21:49:13 +0000 (7 21:49 +0000)
treeda6b86c0a9f8a9c6ec3d122edc07c977c917f006
parent6509efb9e7a3d37d8389d67d50fbfec96a045f95
Bug 1515298 [wpt PR 14599] - SignedExchange: Reject SXG if fallback URL has invalid UTF-8 sequence, a=testonly

Automatic update from web-platform-tests
SignedExchange: Reject SXG if fallback URL has invalid UTF-8 sequence

GURL parser happily accepts invalid UTF-8 path, so we need to validate
the fallback URL string before parsing.

Spec: https://github.com/WICG/webpackage/pull/346

Bug: 916390
Change-Id: Ife25621e2a41beef01cbf36a5ab523eaee1ea222
Reviewed-on: https://chromium-review.googlesource.com/c/1382724
Commit-Queue: Kunihiko Sakamoto <ksakamoto@chromium.org>
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Reviewed-by: Kouhei Ueno <kouhei@chromium.org>
Cr-Commit-Position: refs/heads/master@{#617772}

--

wpt-commits: e663fa084dcdac43fea5cdd6c69b059b5ad0743f
wpt-pr: 14599
testing/web-platform/tests/signed-exchange/resources/generate-test-sxgs.sh
testing/web-platform/tests/signed-exchange/resources/sxg-invalid-utf8-inner-url.sxg [new file with mode: 0644]
testing/web-platform/tests/signed-exchange/resources/sxg-invalid-utf8-inner-url.sxg.headers [new file with mode: 0644]
testing/web-platform/tests/signed-exchange/sxg-invalid-utf8-inner-url.tentative.html [new file with mode: 0644]