diff options
Diffstat (limited to '')
-rw-r--r-- | dom/base/test/file_script_module_sri_fallback_failure.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/dom/base/test/file_script_module_sri_fallback_failure.html b/dom/base/test/file_script_module_sri_fallback_failure.html new file mode 100644 index 0000000000..ea61b449bf --- /dev/null +++ b/dom/base/test/file_script_module_sri_fallback_failure.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset="utf-8"> + <title>Test module script bytecode fallback</title> +</head> +<body> + <script id="watchme" type="module" src="file_script_module_sri_fallback_failure.mjs" + integrity="sha384-wronghash"></script> + <script type="text/javascript"> +// The above script isn't evaluated because of wrong integrity. +window.dispatchEvent(new Event("test_evaluated")); + </script> +</body> +</html> |