trusted-types

edit

WPT coverage of the tests of trusted-types at the revision 5602b0f210e3. The tests link to their results in the browsers on wpt.fyi. The tentative tests (experimental features) and the reftests are listed separately from the stable tests.

GroupPassingTestsDisabledPass rate
Stable216224096%
Tentative69067%
Reftests110100%
All223234095%

Failure reasons

The tests that do not pass (failing or disabled), by kind of reason. A test with several reasons counts once per kind.

  • BUG: 1
  • NOT IMPLEMENTED: 8
  • TEST RUNNER: 2

Stable tests

TestResultSubtestsKindDescription
DOMParser-parseFromString-regression.htmlPass1 / 1
DOMParser-parseFromString.htmlPass2 / 2
DedicatedWorker-block-eval-function-constructor.htmlPass6 / 6
DedicatedWorker-constructor-from-DedicatedWorker.htmlPass3 / 3
DedicatedWorker-constructor-from-SharedWorker.htmlPass3 / 3
DedicatedWorker-constructor.https.htmlPass3 / 3
DedicatedWorker-eval.htmlPass8 / 8
DedicatedWorker-importScripts.htmlPass8 / 8
DedicatedWorker-setTimeout-setInterval.htmlPass6 / 6
Document-execCommand.htmlPass2 / 2
Document-parseHTMLUnsafe-respects-current-globals-CSP.htmlPass2 / 2
Document-write-appending-line-feed.htmlPass6 / 6
Document-write-exception-order.xhtmlPass3 / 3
Document-write.htmlPass8 / 8
Element-insertAdjacentHTML.htmlPass1 / 1
Element-outerHTML.htmlPass1 / 1
Element-setAttribute-respects-Elements-node-documents-globals-CSP-after-adoption-from-TT-realm.htmlPass4 / 4
Element-setAttribute-respects-Elements-node-documents-globals-CSP-after-adoption-from-non-TT-realm.htmlPass4 / 4
Element-setAttribute.htmlPass5 / 5
Element-setAttributeNS.htmlPass4 / 4
Element-toggleAttribute.htmlPass2 / 2
GlobalEventHandlers-onclick.htmlPass3 / 3
HTMLElement-generic.htmlPass72 / 72
HTMLScriptElement-internal-slot.htmlPass9 / 9
Node-multiple-arguments-tt-enforced.htmlPass90 / 90
Node-multiple-arguments.htmlPass90 / 90
Range-createContextualFragment.htmlPass1 / 1
SVGScriptElement-internal-slot.htmlPass1 / 1
ServiceWorker-block-eval-function-constructor.https.htmlPass6 / 6
ServiceWorker-eval.https.htmlPass8 / 8
ServiceWorker-importScripts.https.htmlPass8 / 8
ServiceWorkerContainer-register-from-DedicatedWorker.https.htmlPass4 / 4
ServiceWorkerContainer-register-from-ServiceWorker.https.htmlPass4 / 4
ServiceWorkerContainer-register-from-SharedWorker.https.htmlPass4 / 4
ServiceWorkerContainer-register.https.htmlPass3 / 3
SharedWorker-block-eval-function-constructor.htmlPass6 / 6
SharedWorker-constructor.https.htmlPass3 / 3
SharedWorker-eval.htmlPass8 / 8
SharedWorker-importScripts.htmlPass8 / 8
SharedWorker-setTimeout-setInterval.htmlPass6 / 6
TrustedType-AttributeNodes.htmlPass33 / 33
TrustedTypePolicy-CSP-no-name.htmlPass1 / 1
TrustedTypePolicy-CSP-wildcard.htmlPass1 / 1
TrustedTypePolicy-createXXX.htmlPass29 / 29
TrustedTypePolicyFactory-constants.htmlPass6 / 6
TrustedTypePolicyFactory-createPolicy-createXYZTests.htmlPass28 / 28
TrustedTypePolicyFactory-createPolicy-cspTests-case.htmlPass2 / 2
TrustedTypePolicyFactory-createPolicy-cspTests-case2.htmlPass1 / 1
TrustedTypePolicyFactory-createPolicy-cspTests-noNamesGiven.htmlPass1 / 1
TrustedTypePolicyFactory-createPolicy-cspTests-none-none-name.htmlPass2 / 2
TrustedTypePolicyFactory-createPolicy-cspTests-none-none.htmlPass2 / 2
TrustedTypePolicyFactory-createPolicy-cspTests-none-skip.htmlPass3 / 3
TrustedTypePolicyFactory-createPolicy-cspTests-none.htmlPass2 / 2
TrustedTypePolicyFactory-createPolicy-cspTests-wildcard.htmlPass1 / 1
TrustedTypePolicyFactory-createPolicy-cspTests.htmlPass4 / 4
TrustedTypePolicyFactory-createPolicy-non-tt-policy-name.htmlPass5 / 5
TrustedTypePolicyFactory-createPolicy-unenforced.htmlPass1 / 1
TrustedTypePolicyFactory-defaultPolicy.htmlPass3 / 3
TrustedTypePolicyFactory-getAttributeType-namespace.htmlPass21 / 21
TrustedTypePolicyFactory-getAttributeType-svg.htmlPass4 / 4
TrustedTypePolicyFactory-getAttributeType.htmlPass23 / 23
TrustedTypePolicyFactory-isXXX.htmlPass4 / 4
Window-TrustedTypes.htmlPass2 / 2
Window-block-eval-function-constructor.htmlPass6 / 6
Window-setTimeout-setInterval-default-policy-before-csp.htmlPass2 / 2
Window-setTimeout-setInterval.htmlPass6 / 6
block-Document-execCommand.htmlPass6 / 6
block-string-assignment-to-DOMParser-parseFromString.htmlPass5 / 5
block-string-assignment-to-DedicatedWorker-setTimeout-setInterval.htmlPass9 / 9
block-string-assignment-to-Document-parseHTMLUnsafe.htmlPass5 / 5
block-string-assignment-to-Document-write.htmlPass20 / 20
block-string-assignment-to-Element-insertAdjacentHTML.htmlPass7 / 7
block-string-assignment-to-Element-outerHTML.htmlPass7 / 7
block-string-assignment-to-Element-setAttribute.htmlPass14 / 14
block-string-assignment-to-Element-setAttributeNS.htmlPass11 / 11
block-string-assignment-to-Element-setHTMLUnsafe.htmlPass5 / 5
block-string-assignment-to-HTMLElement-generic.htmlPass9 / 9
block-string-assignment-to-HTMLIFrameElement-srcdoc.htmlPass5 / 5
block-string-assignment-to-Range-createContextualFragment.htmlPass5 / 5
block-string-assignment-to-ShadowRoot-innerHTML.htmlPass5 / 5
block-string-assignment-to-ShadowRoot-setHTMLUnsafe.htmlPass5 / 5
block-string-assignment-to-SharedWorker-setTimeout-setInterval.htmlPass9 / 9
block-string-assignment-to-Window-setTimeout-setInterval.htmlPass9 / 9
block-string-assignment-to-attribute-via-attribute-node.htmlPass7 / 7
block-string-assignment-to-text-and-url-sinks.htmlPass11 / 11
block-text-node-insertion-into-script-element.htmlPass10 / 10
block-text-node-insertion-into-svg-script-element.htmlFail8 / 9NOT IMPLEMENTEDmodule and import map scripts in SVG <script> elements (only classic scripts run)
csp-block-eval.htmlPass2 / 2
default-policy-callback-arguments.htmlPass5 / 5
default-policy-report-only.htmlPass19 / 19
default-policy.htmlPass19 / 19
empty-default-policy-report-only.htmlPass4 / 4
empty-default-policy.htmlPass4 / 4
eval-csp-no-tt.htmlPass7 / 7
eval-csp-tt-default-policy-mutate.htmlPass18 / 18
eval-csp-tt-default-policy.htmlPass72 / 72
eval-csp-tt-no-default-policy.htmlPass39 / 39
eval-function-constructor-untrusted-arguments-and-applying-default-policy.htmlPass12 / 12
eval-function-constructor-untrusted-arguments-and-default-policy-throwing.htmlPass2 / 2
eval-function-constructor.htmlPass65 / 65
eval-no-csp-no-tt-default-policy.htmlPass7 / 7
eval-no-csp-no-tt.htmlPass10 / 10
eval-with-non-trusted-script-object.htmlPass1 / 1
eval-with-permissive-csp.htmlPass9 / 9
get-trusted-types-compliant-attribute-value.htmlPass5 / 5
idlharness.window.jsPass109 / 109
inheriting-csp-for-local-schemes.htmlPass10 / 10
legacy-trusted-script-urls.htmlPass4 / 4
legacy-trusted-scripts.htmlPass1 / 1
modify-attributes-in-callback.htmlPass9 / 9
navigate-to-javascript-url-001.htmlPass1 / 1
navigate-to-javascript-url-002.htmlPass1 / 1
navigate-to-javascript-url-003.htmlPass1 / 1
navigate-to-javascript-url-004.htmlPass1 / 1
navigate-to-javascript-url-005.htmlPass1 / 1
navigate-to-javascript-url-006.sub.htmlPass1 / 1
navigate-to-javascript-url-008.htmlPass1 / 1
navigate-to-javascript-url-009.htmlPass2 / 2
navigate-to-javascript-url-010.htmlPass3 / 3
navigate-to-javascript-url-csp-headers.htmlPass14 / 14
no-require-trusted-types-for-report-only.htmlPass9 / 9
no-require-trusted-types-for.htmlPass9 / 9
policy-without-return-value.sub.htmlPass4 / 4
require-trusted-types-for-TypeError-belongs-to-the-global-object-realm.htmlPass2 / 2
require-trusted-types-for-report-only.htmlPass4 / 4
require-trusted-types-for.htmlPass4 / 4
script-enforcement-001-outerHTML.xhtmlPass1 / 1
script-enforcement-001.htmlPass35 / 35
script-enforcement-002-outerHTML.xhtmlPass1 / 1
script-enforcement-002.htmlPass33 / 33
script-enforcement-003.htmlPass33 / 33
script-enforcement-004.htmlPass31 / 31
script-enforcement-005.htmlPass4 / 4
script-enforcement-006.htmlPass4 / 4
script-enforcement-007.htmlFail1 / 4NOT IMPLEMENTEDmodule and import map scripts in SVG <script> elements (only classic scripts run)
script-enforcement-008.https.htmlPass5 / 5
script-enforcement-009.https.htmlFail2 / 5NOT IMPLEMENTEDmodule and import map scripts in SVG <script> elements (only classic scripts run)
script-enforcement-010.htmlPass2 / 2
script-enforcement-011.htmlFail1 / 2NOT IMPLEMENTEDmodule and import map scripts in SVG <script> elements (only classic scripts run)
script-enforcement-012.htmlPass1 / 1
script-enforcement-013.htmlPass1 / 1
script-enforcement-014.htmlPass1 / 1
script-enforcement-015.htmlPass1 / 1
script-enforcement-016.htmlPass1 / 1
script-enforcement-017.htmlPass1 / 1
set-attributes-no-require-trusted-types.htmlPass202 / 202
set-attributes-require-trusted-types-default-policy.htmlPass264 / 264
set-attributes-require-trusted-types-no-default-policy-error-cases.htmlPass8 / 8
set-attributes-require-trusted-types-no-default-policy.htmlPass264 / 264
setTimeout-setInterval-csp-tt-default-policy.htmlPass16 / 16
setTimeout-setInterval-csp-tt-no-default-policy.htmlPass8 / 8
should-sink-type-mismatch-violation-be-blocked-by-csp-001.htmlFail13 / 15TEST RUNNERthe runner ends a header value at a line break: the continuation line of the %0A%20 and %0D%20 cases (obs-fold) is lost, so the directive has no 'script' keyword
should-sink-type-mismatch-violation-be-blocked-by-csp-002-worker.htmlPass2 / 2
should-sink-type-mismatch-violation-be-blocked-by-csp-003.htmlPass1 / 1
should-trusted-type-policy-creation-be-blocked-by-csp-001.htmlPass24 / 24
should-trusted-type-policy-creation-be-blocked-by-csp-002.htmlFail20 / 21TEST RUNNERthe required-ascii-whitespace subtest folds the Content-Security-Policy header with a line break followed by a space (%0A%20, an obsolete line folding): the runner ends the header value at the line break, as wptserve writes it, so _TTP3_ and the next names are not in the directive and their creation is blocked
should-trusted-type-policy-creation-be-blocked-by-csp-003.htmlPass6 / 6
should-trusted-type-policy-creation-be-blocked-by-csp-004-worker.htmlPass16 / 16
should-trusted-type-policy-creation-be-blocked-by-csp-005.htmlPass1 / 1
trusted-types-createHTMLDocument.htmlPass13 / 13
trusted-types-duplicate-names-list-report-only.htmlPass1 / 1
trusted-types-duplicate-names-list.htmlPass1 / 1
trusted-types-duplicate-names-without-enforcement.htmlPass2 / 2
trusted-types-duplicate-names.htmlPass1 / 1
trusted-types-eval-reporting-no-unsafe-eval.htmlPass3 / 3
trusted-types-eval-reporting-report-only.htmlPass3 / 3
trusted-types-event-handlers.htmlFail113 / 115NOT IMPLEMENTEDthe onfullscreenchange and onfullscreenerror event handler content attributes of the elements (Fullscreen API)
trusted-types-navigation.htmlTimeout9 / 36BUGthe report-only cases: the navigation started by the script of the javascript: URL replaces the document before the task of the securitypolicyviolation event runs (the loader of the runner completes synchronously and the new document is loaded at once), so the listeners of the previous document do not run (it is not fully active) and the violation is not posted to the opener; the next cases do not run
trusted-types-report-only.htmlPass5 / 5
trusted-types-reporting-check-report-DedicatedWorker-create-policy.htmlPass4 / 4
trusted-types-reporting-check-report-DedicatedWorker-sink-mismatch.htmlPass5 / 5
trusted-types-reporting-check-report-Window-create-policy.htmlPass4 / 4
trusted-types-reporting-check-report-Window-sink-mismatch.htmlPass5 / 5
trusted-types-reporting-clipping-of-sample.htmlPass12 / 12
trusted-types-reporting-for-DOMParser-parseFromString.htmlPass2 / 2
trusted-types-reporting-for-DedicatedWorker-DedicatedWorker-constructor.htmlPass2 / 2
trusted-types-reporting-for-DedicatedWorker-ServiceWorkerContainer-register.https.htmlPass2 / 2
trusted-types-reporting-for-DedicatedWorker-eval.htmlPass2 / 2
trusted-types-reporting-for-DedicatedWorker-function-constructor.htmlPass12 / 12
trusted-types-reporting-for-DedicatedWorker-importScripts.htmlPass2 / 2
trusted-types-reporting-for-DedicatedWorker-setTimeout-setInterval.htmlPass4 / 4
trusted-types-reporting-for-Document-execCommand.htmlPass3 / 3
trusted-types-reporting-for-Document-parseHTMLUnsafe.htmlPass2 / 2
trusted-types-reporting-for-Document-write.htmlPass4 / 4
trusted-types-reporting-for-Element-innerHTML.htmlPass2 / 2
trusted-types-reporting-for-Element-insertAdjacentHTML.htmlPass2 / 2
trusted-types-reporting-for-Element-outerHTML.htmlPass2 / 2
trusted-types-reporting-for-Element-setAttribute.htmlPass10 / 10
trusted-types-reporting-for-Element-setHTMLUnsafe.htmlPass2 / 2
trusted-types-reporting-for-HTMLIFrameElement-srcdoc.htmlPass2 / 2
trusted-types-reporting-for-HTMLScriptElement-children-change.htmlPass2 / 2
trusted-types-reporting-for-HTMLScriptElement-innerHTML.htmlPass2 / 2
trusted-types-reporting-for-HTMLScriptElement.htmlPass8 / 8
trusted-types-reporting-for-Range-createContextualFragment.htmlPass2 / 2
trusted-types-reporting-for-SVGScriptElement-children-change.htmlPass2 / 2
trusted-types-reporting-for-SVGScriptElement-innerHTML.htmlPass2 / 2
trusted-types-reporting-for-ServiceWorker-ServiceWorkerContainer-register.https.htmlPass2 / 2
trusted-types-reporting-for-ServiceWorker-eval.https.htmlPass2 / 2
trusted-types-reporting-for-ServiceWorker-function-constructor.https.htmlPass12 / 12
trusted-types-reporting-for-ServiceWorker-importScripts.https.htmlPass2 / 2
trusted-types-reporting-for-ServiceWorker-setTimeout-setInterval.https.htmlPass4 / 4
trusted-types-reporting-for-ShadowRoot-innerHTML.htmlPass2 / 2
trusted-types-reporting-for-ShadowRoot-setHTMLUnsafe.htmlPass2 / 2
trusted-types-reporting-for-SharedWorker-DedicatedWorker-constructor.htmlPass2 / 2
trusted-types-reporting-for-SharedWorker-ServiceWorkerContainer-register.https.htmlPass2 / 2
trusted-types-reporting-for-SharedWorker-eval.htmlPass2 / 2
trusted-types-reporting-for-SharedWorker-function-constructor.htmlPass12 / 12
trusted-types-reporting-for-SharedWorker-importScripts.htmlPass2 / 2
trusted-types-reporting-for-SharedWorker-setTimeout-setInterval.htmlPass4 / 4
trusted-types-reporting-for-Window-DedicatedWorker-constructor.htmlPass2 / 2
trusted-types-reporting-for-Window-ServiceWorkerContainer-register.https.htmlPass2 / 2
trusted-types-reporting-for-Window-SharedWorker-constructor.htmlPass2 / 2
trusted-types-reporting-for-Window-eval.htmlPass2 / 2
trusted-types-reporting-for-Window-function-constructor.htmlPass12 / 12
trusted-types-reporting-for-Window-setTimeout-setInterval.htmlPass4 / 4
trusted-types-reporting.htmlPass8 / 8
trusted-types-sandbox-allow-scripts.htmlPass2 / 2
trusted-types-sandbox-no-allow-scripts.htmlPass1 / 1
trusted-types-secondary-document.htmlPass97 / 97
trusted-types-source-file-path.htmlPass3 / 3
trusted-types-svg-script-set-href.htmlPass18 / 18
trusted-types-tojson.htmlPass1 / 1
trusted-types-wildcard-with-trailing-characters.htmlPass1 / 1
tt-block-eval.htmlPass3 / 3

Tentative tests

TestResultSubtestsKindDescription
Element-setAttribute-setAttributeNS-sinks.tentative.htmlPass7 / 7
HTMLScriptElement-in-xhtml-document.tentative.https.xhtmlPass1 / 1
TrustedTypePolicyFactory-getAttributeType-event-handler-content-attributes.tentative.htmlFail90 / 93NOT IMPLEMENTEDthe SVG animation event handler content attributes (onbegin, onend, onrepeat)
TrustedTypePolicyFactory-getPropertyType.tentative.htmlPass28 / 28
TrustedTypePolicyFactory-metadata.tentative.htmlPass64 / 64
set-attributes-mutations-in-callback.tentative.htmlPass248 / 248
set-event-handlers-content-attributes.tentative.htmlFail519 / 527NOT IMPLEMENTEDthe SVG animation event handler content attributes (onbegin, onend, onrepeat)
trusted-types-from-literal.tentative.htmlFail24 / 45NOT IMPLEMENTEDTrustedHTML.fromLiteral(), TrustedScript.fromLiteral() and TrustedScriptURL.fromLiteral() (tentative)
trusted-types-reporting-clipping-of-sample.tentative.htmlPass8 / 8

Reftests

TestResultVariantsKindDescription
cjk-string-assignment-to-paragraph.htmlPass1 / 1