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

Side by Side Diff: chrome_frame/test/data/fulltab_before_unload_event_test.html

Issue 3014001: ChromeFrame tabs would hang at times while closing. This would randomly occur... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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
1 <html> 1 <html>
2 <head> 2 <head>
3 <meta http-equiv="x-ua-compatible" content="chrome=1" />
4 <title>ChromeFrame fulltab mode unload event test</title> 3 <title>ChromeFrame fulltab mode unload event test</title>
5 <script type="text/javascript" 4 <script type="text/javascript"
6 src="chrome_frame_tester_helpers.js"></script> 5 src="chrome_frame_tester_helpers.js"></script>
7 6
8 <script type="text/javascript"> 7 <script type="text/javascript">
9 var new_window; 8 var new_window;
10 function ValidateUserAgent() { 9 function ValidateUserAgent() {
11 if (isRunningInChrome()) { 10 if (isRunningInChrome()) {
12 window.localStorage.unload_success = 0; 11 window.localStorage.unload_success = 0;
13 new_window = window.open("fulltab_before_unload_event_main.html", 12 new_window = window.open("fulltab_before_unload_event_main.html",
14 "_self"); 13 "_self");
15 } 14 }
16 } 15 }
17 16
18 function onBeforeUnload() { 17 function onBeforeUnload() {
19 if (isRunningInChrome()) { 18 if (isRunningInChrome()) {
20 new_window.localStorage.unload_success = 1; 19 new_window.localStorage.unload_success = 1;
21 } 20 }
22 } 21 }
23 </script> 22 </script>
24 </head> 23 </head>
25 24
26 <body onLoad="setTimeout(ValidateUserAgent, 100);" 25 <body onLoad="setTimeout(ValidateUserAgent, 100);"
27 onbeforeunload="onBeforeUnload();"> 26 onbeforeunload="onBeforeUnload();">
28 ChromeFrame full tab mode unload event test. 27 ChromeFrame full tab mode unload event test.
29 Validates that page unload events are received in ChromeFrame. 28 Validates that page unload events are received in ChromeFrame.
30 </body> 29 </body>
31 </html> 30 </html>
OLDNEW
« no previous file with comments | « chrome_frame/test/data/fulltab_before_unload_event_main.html ('k') | chrome_frame/test/navigation_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698