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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/resources/iframe-that-performs-top-navigation-without-user-gesture.html

Issue 2425663002: Add an error page for resources blocked via XSS Auditor. (Closed)
Patch Set: Test. Created 4 years, 1 month 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/resources/iframe-that-performs-top-navigation-without-user-gesture.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/resources/iframe-that-performs-top-navigation-without-user-gesture.html b/third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/resources/iframe-that-performs-top-navigation-without-user-gesture.html
index 206a16c7f7243d5d274477ba4f222812f7c3ae95..f2c74ebb14b1ec1a681e8bdf4aab9c4ed54ac1b8 100644
--- a/third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/resources/iframe-that-performs-top-navigation-without-user-gesture.html
+++ b/third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/resources/iframe-that-performs-top-navigation-without-user-gesture.html
@@ -4,7 +4,12 @@ The navigation should fail and this iframe should be blocked. This text shouldn'
<script>
window.onload = function()
{
- top.location = "http://localhost:8000/security/frameNavigation/resources/navigation-changed-iframe.html";
+ try {
+ top.location = "http://localhost:8000/security/frameNavigation/resources/navigation-changed-iframe.html";
+ top.postMessage("FAIL", "*");
+ } catch(e) {
+ top.postMessage("PASS", "*");
+ }
}
</script>
</body>

Powered by Google App Engine
This is Rietveld 408576698