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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/xss-DENIED-top-navigation-without-user-gesture.html

Issue 2425663002: Add an error page for resources blocked via XSS Auditor. (Closed)
Patch Set: frameNavigation test. Created 4 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: third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/xss-DENIED-top-navigation-without-user-gesture.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/xss-DENIED-top-navigation-without-user-gesture.html b/third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/xss-DENIED-top-navigation-without-user-gesture.html
index a2cdc9496450a459d055e4355f2145b35765ef50..2b49cd26f1d44f68314b1a749bc0fb7806e918fc 100644
--- a/third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/xss-DENIED-top-navigation-without-user-gesture.html
+++ b/third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/xss-DENIED-top-navigation-without-user-gesture.html
@@ -4,10 +4,17 @@
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.dumpChildFramesAsText();
- testRunner.setDumpConsoleMessages(false);
+ testRunner.setDumpConsoleMessages(true);
+ testRunner.waitUntilDone();
}
-if (window.internals)
- internals.runtimeFlags.setFramebustingNeedsSameOriginOrUserGesture(true);
+//if (window.internals)
+// internals.runtimeFlags.setFramebustingNeedsSameOriginOrUserGesture(true);
Mike West 2016/10/24 11:46:18 TODO(me): Delete these lines (oops). The timing o
+window.addEventListener("message", e => {
+ if (e.data == "PASS")
+ testRunner.notifyDone();
+ else
+ testRunner.testFailed("'top.location' didn't throw.");
+});
</script>
</head>
<body>

Powered by Google App Engine
This is Rietveld 408576698