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

Unified Diff: content/test/data/frame_tree/top.html

Issue 10827078: Support frame tree propagation between renderers in the same browsing instance. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Another round of fixes based on Charlie's review. Created 8 years, 4 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: content/test/data/frame_tree/top.html
diff --git a/content/test/data/frame_tree/top.html b/content/test/data/frame_tree/top.html
new file mode 100644
index 0000000000000000000000000000000000000000..37cd4462a5a5791ec3cb3da00c814506d28de7bf
--- /dev/null
+++ b/content/test/data/frame_tree/top.html
@@ -0,0 +1,47 @@
+<html>
+<head>
+<script>
+ window.name = "foo";
+
+ function simulateClick(target) {
+ var evt = document.createEvent("MouseEvents");
+ evt.initMouseEvent("click", true, true, window,
+ 0, 0, 0, 0, 0, false, false,
+ false, false, 0, null);
+
+ return target.dispatchEvent(evt);
+ }
+
+ function openWindow(url) {
+ window.open(url);
+ return true;
+ }
+
+ function removeFrame() {
+ var frame = document.getElementById('1-2-id');
+ frame.parentNode.removeChild(frame);
+ return true;
+ }
+
+ function addFrame() {
+ var frame = document.createElement('iframe');
+ frame.setAttribute('src', '1-2.html');
+ document.body.appendChild(frame);
+ return true;
+ }
+</script>
+</head>
+<body>
+
+Top frame.
+<br>
+<iframe src="1-1.html" name="1-1-name"></iframe>
+<br>
+<iframe src="1-2.html" id="1-2-id" name="1-2-name"></iframe>
+<br>
+<iframe src="1-3.html" id="1-3-id"></iframe>
+<br>
+
+</html>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698