diff options
author | creis@chromium.org <creis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-21 18:14:27 +0000 |
---|---|---|
committer | creis@chromium.org <creis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-21 18:14:27 +0000 |
commit | 5fa9b36b8fe025d297c852b7e2cc07abd6a26431 (patch) | |
tree | f912ea055e4161c664bfcb7f9a4068576ec8b2b3 /content/test/data | |
parent | 5316922053cfb101718e4fc5da7643cbaad4e5ba (diff) | |
download | chromium_src-5fa9b36b8fe025d297c852b7e2cc07abd6a26431.zip chromium_src-5fa9b36b8fe025d297c852b7e2cc07abd6a26431.tar.gz chromium_src-5fa9b36b8fe025d297c852b7e2cc07abd6a26431.tar.bz2 |
Don't let swappedout:// page be visible when updating frame tree.
BUG=143155
TEST=See bug, comment 19.
Review URL: https://chromiumcodereview.appspot.com/10952035
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158025 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/test/data')
-rw-r--r-- | content/test/data/remove_frame_on_unload.html | 21 |
1 files changed, 21 insertions, 0 deletions
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 0000000..118b447 --- /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> |