| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <script> | |
| 4 | |
| 5 if (window.testRunner) { | |
| 6 testRunner.dumpAsText(); | |
| 7 testRunner.waitUntilDone(); | |
| 8 testRunner.overridePreference("WebKitUsesPageCachePreferenceKey", 1); | |
| 9 } | |
| 10 | |
| 11 window.onload = function() { | |
| 12 window.location.href = "resources/notify-done.html"; | |
| 13 } | |
| 14 | |
| 15 window.onpagehide = function(evt) { | |
| 16 alert("Main frame window.onpagehide called"); | |
| 17 } | |
| 18 | |
| 19 </script> | |
| 20 </head> | |
| 21 <body> | |
| 22 Tests if a page with a subframe that has an unload handler is allowed to go in t
he page cache. (It should not be.)<br> | |
| 23 If the subframe's unload handler is called when navigating away from this page,
it did *NOT* go in the page cache and all is well.<br> | |
| 24 However, if *only* its pageshow handler is called, then it *did* go in | |
| 25 <iframe src="resources/subframe-with-subsubframe-with-unload-handler.html"></ifr
ame> | |
| 26 </body> | |
| 27 </html> | |
| OLD | NEW |