diff options
Diffstat (limited to '')
-rw-r--r-- | dom/tests/mochitest/fetch/file_fetch_csp_block_frame.html | 13 | ||||
-rw-r--r-- | dom/tests/mochitest/fetch/file_fetch_csp_block_frame.html^headers^ | 2 |
2 files changed, 15 insertions, 0 deletions
diff --git a/dom/tests/mochitest/fetch/file_fetch_csp_block_frame.html b/dom/tests/mochitest/fetch/file_fetch_csp_block_frame.html new file mode 100644 index 0000000000..793575f45c --- /dev/null +++ b/dom/tests/mochitest/fetch/file_fetch_csp_block_frame.html @@ -0,0 +1,13 @@ +<!DOCTYPE HTML> +<html> +<script> +addEventListener('message', evt => { + let url = '/tests/dom/security/test/csp/file_redirects_resource.sjs?redir=other&res=xhr-resp'; + fetch(url).then(response => { + parent.postMessage('RESOLVED', '*'); + }).catch(error => { + parent.postMessage('REJECTED', '*'); + }); +}, { once: true }); +</script> +</html> diff --git a/dom/tests/mochitest/fetch/file_fetch_csp_block_frame.html^headers^ b/dom/tests/mochitest/fetch/file_fetch_csp_block_frame.html^headers^ new file mode 100644 index 0000000000..4c43573eb7 --- /dev/null +++ b/dom/tests/mochitest/fetch/file_fetch_csp_block_frame.html^headers^ @@ -0,0 +1,2 @@ +Content-Type: text/html +Content-Security-Policy: connect-src 'self' |