Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(329)

Unified Diff: LayoutTests/http/tests/htmlimports/resources/external-script-with-nonce.js

Issue 19762002: [HTML Imports] Let script of imported document running. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Made a test more robust. Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;");

Powered by Google App Engine
This is Rietveld 408576698