Bug 1488171 [wpt PR 12798] - String_list_directive created, a=testonly
commit5dfc1c9034a43b7e3cb7cb3b2e8afaf78a925c66
authorOrsi Batiz <orsibatiz@google.com>
Fri, 7 Sep 2018 10:55:14 +0000 (7 10:55 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Mon, 10 Sep 2018 10:11:55 +0000 (10 10:11 +0000)
tree6f6c331d9ac9b8a476e8ec3247e9725269cf3f11
parentfef1330e028184f265a9a1fb5ac6aec45dbd3fd4
Bug 1488171 [wpt PR 12798] - String_list_directive created, a=testonly

Automatic update from web-platform-testsString_list_directive created

Created a primitive version of function AllowTrustedTypePolicy
"require-trusted-types" changed into "trusted-types" and takes a list of policy names
createPolicy updated to throw when policy name is not allowed
Tests added for policy creation attempt when policy name is on the whitelist and when it isn't
Tests added fot policy creation attempt with no whitelist given
Poked at existing tests to change "require-trusted-types" into "trusted-types"
Removed boolean require_safe_types_ from csp_directive_list

Bug: 739170
Change-Id: Ida0188cf38f8edba8b966b2f708b7a7919d08b29
Reviewed-on: https://chromium-review.googlesource.com/1186325
Reviewed-by: Andy Paicu <andypaicu@chromium.org>
Reviewed-by: Mike West <mkwst@chromium.org>
Commit-Queue: Orsolya Bernadett Batiz <orsibatiz@google.com>
Cr-Commit-Position: refs/heads/master@{#588496}

--

wpt-commits: 1de1550e95396f979da97620a289c213acaf55e2
wpt-pr: 12798
14 files changed:
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/trusted-types/HTMLElement-generic.tentative.html
testing/web-platform/tests/trusted-types/TrustedTypePolicyFactory-createPolicy-cspTests-noNamesGiven.tentative.html [new file with mode: 0644]
testing/web-platform/tests/trusted-types/TrustedTypePolicyFactory-createPolicy-cspTests.tentative.html [new file with mode: 0644]
testing/web-platform/tests/trusted-types/block-string-assignment-to-DOMParser-parseFromString.tentative.html
testing/web-platform/tests/trusted-types/block-string-assignment-to-Document-write.tentative.html
testing/web-platform/tests/trusted-types/block-string-assignment-to-Element-insertAdjacentHTML.tentative.html
testing/web-platform/tests/trusted-types/block-string-assignment-to-Element-outerHTML.tentative.html
testing/web-platform/tests/trusted-types/block-string-assignment-to-HTMLElement-generic.tentative.html
testing/web-platform/tests/trusted-types/block-string-assignment-to-Location-assign.tentative.html
testing/web-platform/tests/trusted-types/block-string-assignment-to-Location-href.tentative.html
testing/web-platform/tests/trusted-types/block-string-assignment-to-Location-replace.tentative.html
testing/web-platform/tests/trusted-types/block-string-assignment-to-Range-createContextualFragment.tentative.html
testing/web-platform/tests/trusted-types/block-string-assignment-to-Window-open.tentative.html