| 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>
|
|
|