| 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 ' <object id="ChromeFrame1" width="300" height="80" tabindex="0"' + |
| 92 <param name="src" value="simple_object_focus_cf.html"> | 92 ' codebase="http://www.google.com"' + |
| 93 <param name="onload" value="OnCF1Loaded();"> | 93 ' classid="CLSID:E0A900DF-9611-4446-86BD-4B1D47E7DB2A">' + |
| 94 <param name="onloaderror" value="OnNavigationFailed();"> | 94 ' <param name="src" value="simple_object_focus_cf.html">' + |
| 95 <param name="onmessage" value="OnCF1Message(arguments[0]);"> | 95 ' <param name="onload" value="OnCF1Loaded();">' + |
| 96 <embed width="300" height="80" name="ChromeFrame1" | 96 ' <param name="onloaderror" value="OnNavigationFailed();">' + |
| 97 type="application/chromeframe" | 97 ' <param name="onmessage" value="OnCF1Message(arguments[0]);">' + |
| 98 src="simple_object_focus_cf.html" | 98 ' <embed width="300" height="80" name="ChromeFrame1"' + |
| 99 onload="OnCF1Loaded();" | 99 ' type="application/chromeframe"' + |
| 100 onloaderror="OnNavigationFailed();" | 100 ' src="simple_object_focus_cf.html"' + |
| 101 onmessage="OnCF1Message(arguments[0]);"> | 101 ' onload="OnCF1Loaded();"' + |
| 102 </embed> | 102 ' onloaderror="OnNavigationFailed();"' + |
| 103 </object> | 103 ' onmessage="OnCF1Message(arguments[0]);">' + |
| 104 </div> | 104 ' </embed>' + |
| 105 <div id="CFDiv2" style="display: none;"> | 105 ' </object>'); |
| 106 <object id="ChromeFrame2" width="300" height="80" tabindex="1" | 106 </script> |
| 107 codebase="http://www.google.com" | 107 <div id="CFDiv2" style="display: none;"></div> |
| 108 classid="CLSID:E0A900DF-9611-4446-86BD-4B1D47E7DB2A"> | 108 <script type="text/javascript"> |
| 109 <param name="src" value="simple_object_focus_cf.html"> | 109 insertControl("CFDiv2", |
| 110 <param name="onload" value="OnCF2Loaded();"> | 110 ' <object id="ChromeFrame2" width="300" height="80" tabindex="1"' + |
| 111 <param name="onloaderror" value="OnNavigationFailed();"> | 111 ' codebase="http://www.google.com"' + |
| 112 <param name="onmessage" value="OnCF2Message(arguments[0]);"> | 112 ' classid="CLSID:E0A900DF-9611-4446-86BD-4B1D47E7DB2A">' + |
| 113 <embed width="300" height="80" name="ChromeFrame2" | 113 ' <param name="src" value="simple_object_focus_cf.html">' + |
| 114 type="application/chromeframe" | 114 ' <param name="onload" value="OnCF2Loaded();">' + |
| 115 src="simple_object_focus_cf.html" | 115 ' <param name="onloaderror" value="OnNavigationFailed();">' + |
| 116 onload="OnCF2Loaded();" | 116 ' <param name="onmessage" value="OnCF2Message(arguments[0]);">' + |
| 117 onloaderror="OnNavigationFailed();" | 117 ' <embed width="300" height="80" name="ChromeFrame2"' + |
| 118 onmessage="OnCF2Message(arguments[0]);"> | 118 ' type="application/chromeframe"' + |
| 119 </embed> | 119 ' src="simple_object_focus_cf.html"' + |
| 120 </object> | 120 ' onload="OnCF2Loaded();"' + |
| 121 </div> | 121 ' onloaderror="OnNavigationFailed();"' + |
| 122 ' onmessage="OnCF2Message(arguments[0]);">' + |
| 123 ' </embed>' + |
| 124 ' </object>'); |
| 125 </script> |
| 122 <div id="statusPanel" style="border: 1px solid red; width: 100%"> | 126 <div id="statusPanel" style="border: 1px solid red; width: 100%"> |
| 123 Test running.... | 127 Test running.... |
| 124 </div> | 128 </div> |
| 125 </body> | 129 </body> |
| 126 </html> | 130 </html> |
| OLD | NEW |