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

Unified Diff: chrome/test/data/login/deframe.html

Issue 239143009: Disallow top-level navigation in gaia iframe (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: disable flaky test Created 6 years, 8 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 | « chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/login/deframe.html
diff --git a/chrome/test/data/login/deframe.html b/chrome/test/data/login/deframe.html
new file mode 100644
index 0000000000000000000000000000000000000000..894d5a79787bbbbcc69a59c654b53c67126b6c29
--- /dev/null
+++ b/chrome/test/data/login/deframe.html
@@ -0,0 +1,16 @@
+<html>
+<head>
+<script>
+
+// Attempts to trigger top-frame navigation.
+function deframe() {
+ if (top.location != self.location)
+ top.location.href = self.location;
+}
+</script>
+</head>
+
+<body onload="deframe();">
+This page will attempt to break out iframe.
+</body>
+</html>
« no previous file with comments | « chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698