diff options
Diffstat (limited to 'testing/web-platform/tests/trusted-types/support/HTMLScriptElement-internal-slot-support.html')
-rw-r--r-- | testing/web-platform/tests/trusted-types/support/HTMLScriptElement-internal-slot-support.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/testing/web-platform/tests/trusted-types/support/HTMLScriptElement-internal-slot-support.html b/testing/web-platform/tests/trusted-types/support/HTMLScriptElement-internal-slot-support.html new file mode 100644 index 0000000000..b9a0ceefae --- /dev/null +++ b/testing/web-platform/tests/trusted-types/support/HTMLScriptElement-internal-slot-support.html @@ -0,0 +1,18 @@ +<html> +<head> +<meta http-equiv="Content-Security-Policy" content="require-trusted-types-for 'script'"> +<script> +// Support script. This is meant to trigger deferred parsing. To accomplish this +// we pad the file (with this very comment) to >>200B length, and then load it +// with ...?pipe=tricle(200:d1) to ensure it's being delivered in pieces. +window.parent.postMessage("first script element executed", "*"); +</script> +<script> +window.parent.postMessage("second script element executed", "*"); +</script> +</head> +<body> +Hey! +</body> +</html> + |