Index: LayoutTests/http/tests/htmlimports/resources/external-script-with-nonce.js |
diff --git a/LayoutTests/http/tests/htmlimports/resources/external-script-with-nonce.js b/LayoutTests/http/tests/htmlimports/resources/external-script-with-nonce.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f8b13580badcf0221865f80ace92504729d408ca |
--- /dev/null |
+++ b/LayoutTests/http/tests/htmlimports/resources/external-script-with-nonce.js |
@@ -0,0 +1,4 @@ |
+if (document.currentScript.getAttribute("nonce") == null) |
+ throw "Should be included by nonce-annotated element!"; |
+document.externalScriptWithNonceHasRun = true; |
+eval("document.evalFromExternalWithNonceHasRun = true;"); |