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

Unified Diff: content/test/data/remove_frame_on_unload.html

Issue 10952035: Don't let swappedout:// page be visible when updating frame tree. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comments Created 8 years, 3 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 | « content/renderer/render_view_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/remove_frame_on_unload.html
diff --git a/content/test/data/remove_frame_on_unload.html b/content/test/data/remove_frame_on_unload.html
new file mode 100644
index 0000000000000000000000000000000000000000..118b447cdaf428d06bae12e3412587d81d844b9d
--- /dev/null
+++ b/content/test/data/remove_frame_on_unload.html
@@ -0,0 +1,21 @@
+<html>
+ <head>
+ <title>Remove Frame on Unload</title>
+ <script>
+ function openWindow() {
+ var w = window.open("title1.html");
+ return true;
+ }
+
+ window.addEventListener('unload', function() {
+ var f = document.getElementById("f");
+ document.body.removeChild(f);
+ }, false);
+ </script>
+ </head>
+ <body>
+ <button onclick="openWindow()">Open Window</button>
+ <p>Navigate to another page to cause frame to be removed.</p>
+ <iframe id="f" src="about:blank"></iframe>
+ </body>
+</html>
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698