Bug 1515298 [wpt PR 14599] - SignedExchange: Reject SXG if fallback URL has invalid...
commitd2cfc8e57be7fe5910260219a6530a21674a8636
authorKunihiko Sakamoto <ksakamoto@chromium.org>
Thu, 31 Jan 2019 12:12:59 +0000 (31 12:12 +0000)
committerJames Graham <james@hoppipolla.co.uk>
Tue, 5 Feb 2019 17:52:22 +0000 (5 17:52 +0000)
tree945d48e37899ccdcf98dddeee1b352a4261b6276
parent4eb64bbce4a477ca7d38c86d9653bea7a30cfcd4
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]