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