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

Side by Side Diff: chrome/test/data/prerender/prerender_loader_with_unload.html

Issue 116483002: Move common prerender_loader code into prerender_events_common.js. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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
1 <html> 1 <html>
2 <head> 2 <head>
3 <title>Preloader</title> 3 <title>Preloader</title>
4 <script src="prerender_events_common.js"></script>
4 5
5 <script> 6 <script>
6 function UnloadHandler() { 7 function UnloadHandler() {
7 document.title = 'Unloaded'; 8 document.title = 'Unloaded';
8 } 9 }
9 10
10 addEventListener('unload', UnloadHandler, false); 11 addEventListener('unload', UnloadHandler, false);
11 </script> 12 </script>
12 13
13 </head> 14 </head>
14 <body> 15 <body>
15 <script> 16 <script>
16 document.write('<link rel="prerender" href="REPLACE_WITH_PRERENDER_URL"/>'); 17 AddPrerender('REPLACE_WITH_DESTINATION_URL', 0);
17 </script> 18 </script>
18 <a href="REPLACE_WITH_DESTINATION_URL">Link To Click</a> 19 <a href="REPLACE_WITH_DESTINATION_URL">Link To Click</a>
19 </body> 20 </body>
20 </html> 21 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698