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

Unified Diff: LayoutTests/http/tests/security/xssAuditor/viewsource-onmouseover.html

Issue 301813002: Highlight relfected XSS vectors in view-source page. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update descriptive text in test cases. Created 6 years, 7 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/xssAuditor/viewsource-onmouseover-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/security/xssAuditor/viewsource-onmouseover.html
diff --git a/LayoutTests/http/tests/security/xssAuditor/viewsource-onmouseover.html b/LayoutTests/http/tests/security/xssAuditor/viewsource-onmouseover.html
new file mode 100644
index 0000000000000000000000000000000000000000..cea770cecf68ce49b1d590684c336a116ed3eae9
--- /dev/null
+++ b/LayoutTests/http/tests/security/xssAuditor/viewsource-onmouseover.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+<iframe id="x" name="x"></iframe>
+<script>
+var frame = document.getElementById('x');
+if (window.testRunner) {
+ testRunner.waitUntilDone();
+ testRunner.setXSSAuditorEnabled(true);
+ testRunner.dumpAsMarkup();
+ testRunner.dumpChildFramesAsMarkup();
+ testRunner.setViewSourceForFrame('x', true);
+ frame.onload = testRunner.notifyDone.bind(testRunner);
+}
+frame.src = '/security/xssAuditor/resources/echo-intertag.pl?q=%3cdiv%20onmouseover=%22alert(/xss/)%22%%3e%3c/div%3e';
+</script>
+<p>This test passes if the iframe is rendered in view-source mode and the div with the
+onmouseover handler is in a highlighted span.</p>
+</html>
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/xssAuditor/viewsource-onmouseover-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698