diff options
Diffstat (limited to 'testing/web-platform/tests/content-security-policy/inheritance/support/navigate-self-to-blob.html')
-rw-r--r-- | testing/web-platform/tests/content-security-policy/inheritance/support/navigate-self-to-blob.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/testing/web-platform/tests/content-security-policy/inheritance/support/navigate-self-to-blob.html b/testing/web-platform/tests/content-security-policy/inheritance/support/navigate-self-to-blob.html new file mode 100644 index 0000000000..9ea069969c --- /dev/null +++ b/testing/web-platform/tests/content-security-policy/inheritance/support/navigate-self-to-blob.html @@ -0,0 +1,6 @@ +<script nonce="abc"> + var blob_string = "<script>alert(document.domain)<\/script>"; + var blob = new Blob([blob_string], {type : 'text/html'}); + var url = URL.createObjectURL(blob); + location.href=url; +</script> |