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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <html>
2 <head>
3 <title>Remove Frame on Unload</title>
4 <script>
5 function openWindow() {
6 var w = window.open("title1.html");
7 return true;
8 }
9
10 window.addEventListener('unload', function() {
11 var f = document.getElementById("f");
12 document.body.removeChild(f);
13 }, false);
14 </script>
15 </head>
16 <body>
17 <button onclick="openWindow()">Open Window</button>
18 <p>Navigate to another page to cause frame to be removed.</p>
19 <iframe id="f" src="about:blank"></iframe>
20 </body>
21 </html>
OLDNEW
« 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