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

Unified Diff: LayoutTests/http/tests/security/xssAuditor/html5-import-CORS-expected.txt

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-CORS-expected.txt
diff --git a/LayoutTests/http/tests/security/xssAuditor/html5-import-CORS-expected.txt b/LayoutTests/http/tests/security/xssAuditor/html5-import-CORS-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..a78915a7d16f1ad2087e06dfa82429679d949d13
--- /dev/null
+++ b/LayoutTests/http/tests/security/xssAuditor/html5-import-CORS-expected.txt
@@ -0,0 +1,3 @@
+CONSOLE ERROR: line 4: The XSS Auditor refused to execute a script in 'http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?q=%3clink%20rel=%22import%22%20href=%22http://127.0.0.1:8000/security/xssAuditor/resources/xss.js%22%3e' because its source code was found within the request. The auditor was enabled as the server sent neither an 'X-XSS-Protection' nor 'Content-Security-Policy' header.
+
+This test passes if the XSSAuditor blocks the load prior to the CORS restriction kicking in. We've not bothered to enable CORS for this test, unlike what a real attacker would do, so a CORS error here means failure.

Powered by Google App Engine
This is Rietveld 408576698