Chromium Code Reviews

Unified Diff: LayoutTests/http/tests/htmlimports/resources/having-unsafe-eval-policy.html

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.
Jump to:
View side-by-side diff with in-line comments
Index: LayoutTests/http/tests/htmlimports/resources/having-unsafe-eval-policy.html
diff --git a/LayoutTests/http/tests/htmlimports/resources/having-unsafe-eval-policy.html b/LayoutTests/http/tests/htmlimports/resources/having-unsafe-eval-policy.html
new file mode 100644
index 0000000000000000000000000000000000000000..a593c1675c820fa285ddb344d4f287044c257c94
--- /dev/null
+++ b/LayoutTests/http/tests/htmlimports/resources/having-unsafe-eval-policy.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta http-equiv="Content-Security-Policy" content="script-src 'unsafe-inline' 'unsafe-eval'">
+<script src="external-script.js"></script>
+<script src="http://localhost:8000//htmlimports/resources/cors-js.cgi"></script>
+<script>
+document.inlineScriptHasRun = true;
+eval("document.evalFromInlineHasRun = true;");
+</script>
+
+</head>
+</html>

Powered by Google App Engine