| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <!-- This page is meant to load inside the host browser like IE/FF --> | 2 <!-- This page is meant to load inside the host browser like IE/FF --> |
| 3 <head><title>Initialize hidden chrome frame</title> | 3 <head><title>Initialize hidden chrome frame</title> |
| 4 <script type="text/javascript" src="chrome_frame_tester_helpers.js"> | 4 <script type="text/javascript" src="chrome_frame_tester_helpers.js"> |
| 5 </script> | 5 </script> |
| 6 <script type="text/javascript"> | 6 <script type="text/javascript"> |
| 7 var g_failure_timeout = null; | 7 var g_failure_timeout = null; |
| 8 var g_test_id = 1; | 8 var g_test_id = 1; |
| 9 var g_test_name = 'InitializeHidden'; | 9 var g_test_name = 'InitializeHidden'; |
| 10 var g_cf3_loaded = false; | 10 var g_cf3_loaded = false; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 if (evt.data == 'btnOnFocus') { | 78 if (evt.data == 'btnOnFocus') { |
| 79 window.clearTimeout(g_failure_timeout); | 79 window.clearTimeout(g_failure_timeout); |
| 80 g_failure_timeout = null; | 80 g_failure_timeout = null; |
| 81 appendStatus('CF2 visible and focused'); | 81 appendStatus('CF2 visible and focused'); |
| 82 onSuccess(g_test_name, g_test_id); | 82 onSuccess(g_test_name, g_test_id); |
| 83 } | 83 } |
| 84 } | 84 } |
| 85 </script> | 85 </script> |
| 86 </head> | 86 </head> |
| 87 <body> | 87 <body> |
| 88 <div id="CFDiv1" style="visibility: hidden;"> | 88 <div id="CFDiv1" style="visibility: hidden;"></div> |
| 89 <object id="ChromeFrame1" width="300" height="80" tabindex="0" | 89 <script type="text/javascript"> |
| 90 codebase="http://www.google.com" | 90 insertControl("CFDiv1", |
| 91 classid="CLSID:E0A900DF-9611-4446-86BD-4B1D47E7DB2A"> | 91 { "id": "ChromeFrame1", |
| 92 <param name="src" value="simple_object_focus_cf.html"> | 92 "width": "300", |
| 93 <param name="onload" value="OnCF1Loaded();"> | 93 "height": "80", |
| 94 <param name="onloaderror" value="OnNavigationFailed();"> | 94 "src": "simple_object_focus_cf.html", |
| 95 <param name="onmessage" value="OnCF1Message(arguments[0]);"> | 95 "eventHandlers": { "onload": "OnCF1Loaded();", |
| 96 <embed width="300" height="80" name="ChromeFrame1" | 96 "onloaderror": "OnNavigationFailed();", |
| 97 type="application/chromeframe" | 97 "onmessage": "OnCF1Message(arguments[0]);" }, |
| 98 src="simple_object_focus_cf.html" | 98 "objectAttributes": { "tabindex": "0" }, |
| 99 onload="OnCF1Loaded();" | 99 "embedAttributes": {"id": null} |
| 100 onloaderror="OnNavigationFailed();" | 100 }); |
| 101 onmessage="OnCF1Message(arguments[0]);"> | 101 </script> |
| 102 </embed> | 102 <div id="CFDiv2" style="display: none;"></div> |
| 103 </object> | 103 <script type="text/javascript"> |
| 104 </div> | 104 insertControl("CFDiv2", |
| 105 <div id="CFDiv2" style="display: none;"> | 105 { "id": "ChromeFrame2", |
| 106 <object id="ChromeFrame2" width="300" height="80" tabindex="1" | 106 "width": "300", |
| 107 codebase="http://www.google.com" | 107 "height": "80", |
| 108 classid="CLSID:E0A900DF-9611-4446-86BD-4B1D47E7DB2A"> | 108 "src": "simple_object_focus_cf.html", |
| 109 <param name="src" value="simple_object_focus_cf.html"> | 109 "eventHandlers": { "onload": "OnCF2Loaded();", |
| 110 <param name="onload" value="OnCF2Loaded();"> | 110 "onloaderror": "OnNavigationFailed();", |
| 111 <param name="onloaderror" value="OnNavigationFailed();"> | 111 "onmessage": "OnCF2Message(arguments[0]);" }, |
| 112 <param name="onmessage" value="OnCF2Message(arguments[0]);"> | 112 "objectAttributes": { "tabindex": "1" }, |
| 113 <embed width="300" height="80" name="ChromeFrame2" | 113 "embedAttributes": { "id": null} |
| 114 type="application/chromeframe" | 114 }); |
| 115 src="simple_object_focus_cf.html" | 115 </script> |
| 116 onload="OnCF2Loaded();" | |
| 117 onloaderror="OnNavigationFailed();" | |
| 118 onmessage="OnCF2Message(arguments[0]);"> | |
| 119 </embed> | |
| 120 </object> | |
| 121 </div> | |
| 122 <div id="statusPanel" style="border: 1px solid red; width: 100%"> | 116 <div id="statusPanel" style="border: 1px solid red; width: 100%"> |
| 123 Test running.... | 117 Test running.... |
| 124 </div> | 118 </div> |
| 125 </body> | 119 </body> |
| 126 </html> | 120 </html> |
| OLD | NEW |