new file mode 100644
--- /dev/null
+++ b/testing/web-platform/meta/trusted-types/DOMParser-parseFromString.tentative.html.ini
@@ -0,0 +1,4 @@
+[DOMParser-parseFromString.tentative.html]
+ [document.innerText assigned via policy (successful HTML transformation).]
+ expected: FAIL
+
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/meta/trusted-types/Document-write.tentative.html.ini
@@ -0,0 +1,4 @@
+[Document-write.tentative.html]
+ [document.write with html assigned via policy (successful URL transformation).]
+ expected: FAIL
+
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/meta/trusted-types/Element-innerHTML.tentative.html.ini
@@ -0,0 +1,4 @@
+[Element-innerHTML.tentative.html]
+ [innerHTML assigned via policy (successful HTML transformation).]
+ expected: FAIL
+
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/meta/trusted-types/Element-insertAdjacentHTML.tentative.html.ini
@@ -0,0 +1,4 @@
+[Element-insertAdjacentHTML.tentative.html]
+ [insertAdjacentHTML with html assigned via policy (successful HTML transformation).]
+ expected: FAIL
+
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/meta/trusted-types/Element-outerHTML.tentative.html.ini
@@ -0,0 +1,4 @@
+[Element-outerHTML.tentative.html]
+ [outerHTML with html assigned via policy (successful HTML transformation).]
+ expected: FAIL
+
--- a/testing/web-platform/meta/trusted-types/HTMLElement-generic.tentative.html.ini
+++ b/testing/web-platform/meta/trusted-types/HTMLElement-generic.tentative.html.ini
@@ -1,4 +1,55 @@
[HTMLElement-generic.tentative.html]
[HTMLElement-generic]
expected: FAIL
+ [object.codeBase assigned via policy (successful URL transformation)]
+ expected: FAIL
+
+ [iframe.src assigned via policy (successful URL transformation)]
+ expected: FAIL
+
+ [area.href assigned via policy (successful URL transformation)]
+ expected: FAIL
+
+ [embed.src assigned via policy (successful ScriptURL transformation)]
+ expected: FAIL
+
+ [object.data assigned via policy (successful URL transformation)]
+ expected: FAIL
+
+ [source.src assigned via policy (successful URL transformation)]
+ expected: FAIL
+
+ [link.href assigned via policy (successful URL transformation)]
+ expected: FAIL
+
+ [input.src assigned via policy (successful URL transformation)]
+ expected: FAIL
+
+ [frame.src assigned via policy (successful URL transformation)]
+ expected: FAIL
+
+ [script.src assigned via policy (successful ScriptURL transformation)]
+ expected: FAIL
+
+ [a.href assigned via policy (successful URL transformation)]
+ expected: FAIL
+
+ [track.src assigned via policy (successful URL transformation)]
+ expected: FAIL
+
+ [img.src assigned via policy (successful URL transformation)]
+ expected: FAIL
+
+ [video.src assigned via policy (successful URL transformation)]
+ expected: FAIL
+
+ [base.href assigned via policy (successful URL transformation)]
+ expected: FAIL
+
+ [div.innerHTML assigned via policy (successful HTML transformation)]
+ expected: FAIL
+
+ [iframe.srcdoc assigned via policy (successful HTML transformation)]
+ expected: FAIL
+
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/meta/trusted-types/HTMLIFrameElement-srcdoc.tentative.html.ini
@@ -0,0 +1,4 @@
+[HTMLIFrameElement-srcdoc.tentative.html]
+ [iframe.srcdoc assigned via policy (successful HTML transformation).]
+ expected: FAIL
+
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/meta/trusted-types/Location-assign.tentative.html.ini
@@ -0,0 +1,4 @@
+[Location-assign.tentative.html]
+ [location.assign via policy (successful URL transformation).]
+ expected: FAIL
+
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/meta/trusted-types/Location-href.tentative.html.ini
@@ -0,0 +1,4 @@
+[Location-href.tentative.html]
+ [location.href assigned via policy (successful URL transformation).]
+ expected: FAIL
+
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/meta/trusted-types/Location-replace.tentative.html.ini
@@ -0,0 +1,4 @@
+[Location-replace.tentative.html]
+ [location.replace via policy (successful URL transformation).]
+ expected: FAIL
+
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/meta/trusted-types/Range-createContextualFragment.tentative.html.ini
@@ -0,0 +1,4 @@
+[Range-createContextualFragment.tentative.html]
+ [range.createContextualFragment assigned via policy (successful HTML transformation).]
+ expected: FAIL
+
--- a/testing/web-platform/meta/trusted-types/TrustedTypePolicyFactory-createPolicy.tentative.html.ini
+++ b/testing/web-platform/meta/trusted-types/TrustedTypePolicyFactory-createPolicy.tentative.html.ini
@@ -1,7 +1,79 @@
[TrustedTypePolicyFactory-createPolicy.tentative.html]
[policy.name = name]
expected: FAIL
[TrustedTypePolicyFactory-createPolicy]
expected: FAIL
+ [html = callback that throws]
+ expected: FAIL
+
+ [script_url - calling undefined callback]
+ expected: FAIL
+
+ [html - calling undefined callback]
+ expected: FAIL
+
+ [script_url = identity function]
+ expected: FAIL
+
+ [url = this without bind]
+ expected: FAIL
+
+ [html = this bound to an object]
+ expected: FAIL
+
+ [url = identity function, global string changed]
+ expected: FAIL
+
+ [url = this bound to an object]
+ expected: FAIL
+
+ [script_url = identity function, global string changed]
+ expected: FAIL
+
+ [script_url = this bound to an object]
+ expected: FAIL
+
+ [html = identity function, global string changed]
+ expected: FAIL
+
+ [url = callback that throws]
+ expected: FAIL
+
+ [url = identity function]
+ expected: FAIL
+
+ [html = identity function]
+ expected: FAIL
+
+ [script_url = this without bind]
+ expected: FAIL
+
+ [url - calling undefined callback]
+ expected: FAIL
+
+ [script_url = callback that throws]
+ expected: FAIL
+
+ [html = this without bind]
+ expected: FAIL
+
+ [html = string + global string]
+ expected: FAIL
+
+ [script_url = string + global string]
+ expected: FAIL
+
+ [script_url = null]
+ expected: FAIL
+
+ [html = null]
+ expected: FAIL
+
+ [url = string + global string]
+ expected: FAIL
+
+ [url = null]
+ expected: FAIL
+
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/meta/trusted-types/Window-open.tentative.html.ini
@@ -0,0 +1,7 @@
+[Window-open.tentative.html]
+ [document.open via policy (successful URL transformation).]
+ expected: FAIL
+
+ [window.open via policy (successful URL transformation).]
+ expected: FAIL
+
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/meta/trusted-types/block-string-assignment-to-DOMParser-parseFromString.tentative.html.ini
@@ -0,0 +1,10 @@
+[block-string-assignment-to-DOMParser-parseFromString.tentative.html]
+ [`document.innerText = string` throws.]
+ expected: FAIL
+
+ ['document.innerText = null' throws]
+ expected: FAIL
+
+ [document.innerText assigned via policy (successful HTML transformation).]
+ expected: FAIL
+
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/meta/trusted-types/block-string-assignment-to-Document-write.tentative.html.ini
@@ -0,0 +1,10 @@
+[block-string-assignment-to-Document-write.tentative.html]
+ [`document.write(string)` throws]
+ expected: FAIL
+
+ [document.write with html assigned via policy (successful URL transformation).]
+ expected: FAIL
+
+ [`document.write(null)` throws]
+ expected: FAIL
+
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/meta/trusted-types/block-string-assignment-to-Element-innerHTML.tentative.html.ini
@@ -0,0 +1,4 @@
+[block-string-assignment-to-Element-innerHTML.tentative.html]
+ [block-string-assignment-to-Element-innerHTML]
+ expected: FAIL
+
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/meta/trusted-types/block-string-assignment-to-Element-insertAdjacentHTML.tentative.html.ini
@@ -0,0 +1,10 @@
+[block-string-assignment-to-Element-insertAdjacentHTML.tentative.html]
+ [insertAdjacentHTML with html assigned via policy (successful HTML transformation).]
+ expected: FAIL
+
+ [`insertAdjacentHTML(string)` throws.]
+ expected: FAIL
+
+ [`insertAdjacentHTML(null)` throws.]
+ expected: FAIL
+
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/meta/trusted-types/block-string-assignment-to-Element-outerHTML.tentative.html.ini
@@ -0,0 +1,10 @@
+[block-string-assignment-to-Element-outerHTML.tentative.html]
+ [`outerHTML = string` throws.]
+ expected: FAIL
+
+ [`outerHTML = null` throws.]
+ expected: FAIL
+
+ [outerHTML with html assigned via policy (successful HTML transformation).]
+ expected: FAIL
+
--- a/testing/web-platform/meta/trusted-types/block-string-assignment-to-HTMLElement-generic.tentative.html.ini
+++ b/testing/web-platform/meta/trusted-types/block-string-assignment-to-HTMLElement-generic.tentative.html.ini
@@ -1,4 +1,55 @@
[block-string-assignment-to-HTMLElement-generic.tentative.html]
[block-string-assignment-to-HTMLElement-generic]
expected: FAIL
+ [frame.src accepts only TrustedURL]
+ expected: FAIL
+
+ [object.codeBase accepts only TrustedURL]
+ expected: FAIL
+
+ [area.href accepts only TrustedURL]
+ expected: FAIL
+
+ [track.src accepts only TrustedURL]
+ expected: FAIL
+
+ [iframe.src accepts only TrustedURL]
+ expected: FAIL
+
+ [base.href accepts only TrustedURL]
+ expected: FAIL
+
+ [img.src accepts only TrustedURL]
+ expected: FAIL
+
+ [source.src accepts only TrustedURL]
+ expected: FAIL
+
+ [script.src accepts only TrustedScriptURL]
+ expected: FAIL
+
+ [video.src accepts only TrustedURL]
+ expected: FAIL
+
+ [embed.src accepts only TrustedScriptURL]
+ expected: FAIL
+
+ [link.href accepts only TrustedURL]
+ expected: FAIL
+
+ [a.href accepts only TrustedURL]
+ expected: FAIL
+
+ [object.data accepts only TrustedURL]
+ expected: FAIL
+
+ [input.src accepts only TrustedURL]
+ expected: FAIL
+
+ [iframe.srcdoc accepts only TrustedHTML]
+ expected: FAIL
+
+ [div.innerHTML accepts only TrustedHTML]
+ expected: FAIL
+
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/meta/trusted-types/block-string-assignment-to-HTMLIFrameElement-srcdoc.tentative.html.ini
@@ -0,0 +1,10 @@
+[block-string-assignment-to-HTMLIFrameElement-srcdoc.tentative.html]
+ [iframe.srcdoc assigned via policy (successful HTML transformation).]
+ expected: FAIL
+
+ [`iframe.srcdoc = null` throws.]
+ expected: FAIL
+
+ [`iframe.srcdoc = string` throws.]
+ expected: FAIL
+
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/meta/trusted-types/block-string-assignment-to-Location-assign.tentative.html.ini
@@ -0,0 +1,2 @@
+[block-string-assignment-to-Location-assign.tentative.html]
+ expected: TIMEOUT
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/meta/trusted-types/block-string-assignment-to-Location-href.tentative.html.ini
@@ -0,0 +1,2 @@
+[block-string-assignment-to-Location-href.tentative.html]
+ expected: TIMEOUT
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/meta/trusted-types/block-string-assignment-to-Location-replace.tentative.html.ini
@@ -0,0 +1,2 @@
+[block-string-assignment-to-Location-replace.tentative.html]
+ expected: TIMEOUT
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/meta/trusted-types/block-string-assignment-to-Range-createContextualFragment.tentative.html.ini
@@ -0,0 +1,10 @@
+[block-string-assignment-to-Range-createContextualFragment.tentative.html]
+ [range.createContextualFragment assigned via policy (successful HTML transformation).]
+ expected: FAIL
+
+ [`range.createContextualFragment(null)` throws.]
+ expected: FAIL
+
+ [`range.createContextualFragment(string)` throws.]
+ expected: FAIL
+
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/meta/trusted-types/block-string-assignment-to-Window-open.tentative.html.ini
@@ -0,0 +1,19 @@
+[block-string-assignment-to-Window-open.tentative.html]
+ [window.open via policy (successful URL transformation).]
+ expected: FAIL
+
+ [`window.open(string)` throws.]
+ expected: FAIL
+
+ [document.open via policy (successful URL transformation).]
+ expected: FAIL
+
+ [`document.open(null)` throws.]
+ expected: FAIL
+
+ [`window.open(null)` throws.]
+ expected: FAIL
+
+ [`document.open(string)` throws.]
+ expected: FAIL
+
deleted file mode 100644
--- a/testing/web-platform/meta/trusted-types/block-string-assignment-to-location-assign.tentative.html.ini
+++ /dev/null
@@ -1,4 +0,0 @@
-[block-string-assignment-to-location-assign.tentative.html]
- [block-string-assignment-to-location-assign]
- expected: FAIL
-
deleted file mode 100644
--- a/testing/web-platform/meta/trusted-types/block-string-assignment-to-location-href.tentative.html.ini
+++ /dev/null
@@ -1,19 +0,0 @@
-[block-string-assignment-to-location-href.tentative.html]
- [`location.href = string` throws]
- expected: FAIL
-
- [Basic processing: safe URL, safe construction.]
- expected: FAIL
-
- [Basic processing: safe URL, unsafe construction.]
- expected: FAIL
-
- [Basic processing: javascript URL, safe construction.]
- expected: FAIL
-
- [Basic processing: javascript URL, unsafe construction.]
- expected: FAIL
-
- [block-string-assignment-to-location-href]
- expected: FAIL
-
deleted file mode 100644
--- a/testing/web-platform/meta/trusted-types/block-string-assignment-to-location-replace.tentative.html.ini
+++ /dev/null
@@ -1,4 +0,0 @@
-[block-string-assignment-to-location-replace.tentative.html]
- [block-string-assignment-to-location-replace]
- expected: FAIL
-
deleted file mode 100644
--- a/testing/web-platform/meta/trusted-types/block-string-assignment-to-window-open.tentative.html.ini
+++ /dev/null
@@ -1,28 +0,0 @@
-[block-string-assignment-to-window-open.tentative.html]
- [window.open: safe URL, safe construction.]
- expected: FAIL
-
- [window.open: safe URL, unsafe construction.]
- expected: FAIL
-
- [document.open: safe URL, safe construction.]
- expected: FAIL
-
- [document.open: safe URL, unsafe construction.]
- expected: FAIL
-
- [`window.open(string)` throws.]
- expected: FAIL
-
- [`document.open(string)` throws.]
- expected: FAIL
-
- [`window.open(null)` throws.]
- expected: FAIL
-
- [`document.open(null)` throws.]
- expected: FAIL
-
- [block-string-assignment-to-window-open]
- expected: FAIL
-
deleted file mode 100644
--- a/testing/web-platform/meta/trusted-types/document-write.tentative.html.ini
+++ /dev/null
@@ -1,7 +0,0 @@
-[document-write.tentative.html]
- [document.write(TrustedHTML).]
- expected: FAIL
-
- [document-write]
- expected: FAIL
-
deleted file mode 100644
--- a/testing/web-platform/meta/trusted-types/location-assign.tentative.html.ini
+++ /dev/null
@@ -1,10 +0,0 @@
-[location-assign.tentative.html]
- [Basic processing: safe URL, safe construction.]
- expected: FAIL
-
- [Basic processing: safe URL, unsafe construction.]
- expected: FAIL
-
- [location-assign]
- expected: FAIL
-
deleted file mode 100644
--- a/testing/web-platform/meta/trusted-types/location-href.tentative.html.ini
+++ /dev/null
@@ -1,16 +0,0 @@
-[location-href.tentative.html]
- [Basic processing: safe URL, safe construction.]
- expected: FAIL
-
- [Basic processing: safe URL, unsafe construction.]
- expected: FAIL
-
- [Basic processing: javascript URL, safe construction.]
- expected: FAIL
-
- [Basic processing: javascript URL, unsafe construction.]
- expected: FAIL
-
- [location-href]
- expected: FAIL
-
deleted file mode 100644
--- a/testing/web-platform/meta/trusted-types/location-replace.tentative.html.ini
+++ /dev/null
@@ -1,10 +0,0 @@
-[location-replace.tentative.html]
- [Basic processing: safe URL, safe construction.]
- expected: FAIL
-
- [Basic processing: safe URL, unsafe construction.]
- expected: FAIL
-
- [location-replace]
- expected: FAIL
-
deleted file mode 100644
--- a/testing/web-platform/meta/trusted-types/window-open.tentative.html.ini
+++ /dev/null
@@ -1,16 +0,0 @@
-[window-open.tentative.html]
- [window.open: safe URL, safe construction.]
- expected: FAIL
-
- [window.open: safe URL, unsafe construction.]
- expected: FAIL
-
- [document.open: safe URL, safe construction.]
- expected: FAIL
-
- [document.open: safe URL, unsafe construction.]
- expected: FAIL
-
- [window-open]
- expected: FAIL
-