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

Unified Diff: LayoutTests/http/tests/security/xssAuditor/html5-import-safe.html

Issue 644663003: Apply XSSAuditor to html5 import (i.e. <link rel="import">) tags. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove parameter name. Created 6 years, 2 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/security/xssAuditor/html5-import-safe.html
diff --git a/LayoutTests/http/tests/security/xssAuditor/html5-import-safe.html b/LayoutTests/http/tests/security/xssAuditor/html5-import-safe.html
new file mode 100644
index 0000000000000000000000000000000000000000..d8d230ccfcc78ad3c0b3b7ac3409e8a9fa7b4a9e
--- /dev/null
+++ b/LayoutTests/http/tests/security/xssAuditor/html5-import-safe.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.dumpChildFramesAsText();
+ testRunner.setXSSAuditorEnabled(true);
+}
+</script>
+</head>
+<body>
+<iframe src="http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?q=%3clink%20rel=%22import%22%20href=%22http://localhost:8000/security/xssAuditor/resources/safe-html.html%22%3e">
+</iframe>
+<p>This test passes if the "safe" HTML5 import occurs, because XSSAuditor gives a pass to resources from the same origin to cut down on the false positive rate.
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698