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

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: undo cros change 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
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..aeb4f30918cad4b492190a9cdcce8b79367d2920
--- /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>

Powered by Google App Engine
This is Rietveld 408576698