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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/xssAuditor/form-action-token-fragment.html

Issue 2868973003: XSSAuditor: truncate form action attribute like other src-like attributes (Closed)
Patch Set: rebase, update expectation Created 3 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
Index: third_party/WebKit/LayoutTests/http/tests/security/xssAuditor/form-action-token-fragment.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/xssAuditor/form-action-token-fragment.html b/third_party/WebKit/LayoutTests/http/tests/security/xssAuditor/form-action-token-fragment.html
deleted file mode 100644
index 4521aac2d6b11b02b95703dc49dbb0c4a7a493f2..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/security/xssAuditor/form-action-token-fragment.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script>
-if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.dumpChildFramesAsText();
- testRunner.waitUntilDone();
- testRunner.setXSSAuditorEnabled(true);
-}
-function done()
-{
- if (window.testRunner)
- testRunner.notifyDone();
-}
-</script>
-</head>
-<body>
-This test shows that the XSSAuditor can not be induced to fire against a leading
-substring of an otherwise unknown attribute.
-<iframe id="myframe"></iframe>
-<script>
-var pad = '11111111111111111111111111111111111111111111111111111';
-var guess = 'action%3d%22http://localhost:8000/foo%3fpad%3d' + pad + '%26tok%3d1234'
-var src = 'resources/echo-form-action.pl?add-token=1&q=http://localhost:8000/foo%3fpad%3d' + pad + '&guess=' + guess;
-document.getElementById('myframe').src = src;
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698