Bug 1473361 [wpt PR 11777] - Make preload play nice with CSP strict-dynamic, a=testonly
commitbfe2891b2b9e0df4a645e8c2215bf1fa7e7e30d8
authorYoav Weiss <yoav@yoav.ws>
Sat, 7 Jul 2018 12:57:39 +0000 (7 12:57 +0000)
committerJames Graham <james@hoppipolla.co.uk>
Wed, 11 Jul 2018 07:05:41 +0000 (11 08:05 +0100)
tree5d4da58ef4ab40e6952f77330494c4a47837617f
parent2007eff597f2f36b7a8aa39e73c1dc6e1be7e237
Bug 1473361 [wpt PR 11777] - Make preload play nice with CSP strict-dynamic, a=testonly

Automatic update from web-platform-testsMake preload play nice with CSP strict-dynamic

Dynamically loaded preloaded scripts were not loaded when a strict-dynamic
CSP directive was used. This was because the state regarding whether the
element was parser created or not was not properly propoagated to the CSP
checks. This CL fixes that and adds tests that make sure that such scripts
can be preloaded (and that markup based preloaded scripts with no nonce cannot).

Bug: 752922
Change-Id: Ib4f3bce8583ccc9770c261d76167243033e5a112
Reviewed-on: https://chromium-review.googlesource.com/1125064
Reviewed-by: Andy Paicu <andypaicu@chromium.org>
Reviewed-by: Mike West <mkwst@chromium.org>
Commit-Queue: Yoav Weiss <yoav@yoav.ws>
Cr-Commit-Position: refs/heads/master@{#572908}

--

wpt-commits: e6ac489577c1ac1e0dadd9bef80e63af2a2eb42a
wpt-pr: 11777
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/preload/preload-strict-dynamic.html [new file with mode: 0644]