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

Side by Side Diff: LayoutTests/fast/loader/frames-with-unload-handlers-in-page-cache.html

Issue 14495004: Remove left-over PageCache stuff (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698