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

Side by Side Diff: LayoutTests/http/tests/security/xssAuditor/html5-import-CORS.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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 if (window.testRunner) {
6 testRunner.dumpAsText();
7 testRunner.setXSSAuditorEnabled(true);
8 }
9 </script>
10 </head>
11 <body>
12 <iframe src="http://localhost:8000/security/xssAuditor/resources/echo-intertag.p l?q=%3clink%20rel=%22import%22%20href=%22http://127.0.0.1:8000/security/xssAudit or/resources/xss.js%22%3e">
13 </iframe>
14 <p>This test passes if the XSSAuditor blocks the load prior to the CORS restrict ion kicking in. We've not bothered to enable
15 CORS for this test, unlike what a real attacker would do, so a CORS error here m eans failure.
16 </body>
17 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698