Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // | 1 // |
| 2 // This script provides some mechanics for testing ChromeFrame | 2 // This script provides some mechanics for testing ChromeFrame |
| 3 // | 3 // |
| 4 function onSuccess(name, id) { | 4 function onSuccess(name, id) { |
| 5 appendStatus("Success reported!"); | 5 appendStatus("Success reported!"); |
| 6 onFinished(name, id, "OK"); | 6 onFinished(name, id, "OK"); |
| 7 } | 7 } |
| 8 | 8 |
| 9 function onFailure(name, id, status) { | 9 function onFailure(name, id, status) { |
| 10 appendStatus("Failure reported: " + status); | 10 appendStatus("Failure reported: " + status); |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 182 | 182 |
| 183 url += window.location.protocol + "//" + window.location.host; | 183 url += window.location.protocol + "//" + window.location.host; |
| 184 if (path.lastIndexOf("/") > 0) { | 184 if (path.lastIndexOf("/") > 0) { |
| 185 url += path.substring(0, path.lastIndexOf("/")) + "/" + pageName; | 185 url += path.substring(0, path.lastIndexOf("/")) + "/" + pageName; |
| 186 } else { | 186 } else { |
| 187 url += "/" + pageName; | 187 url += "/" + pageName; |
| 188 } | 188 } |
| 189 url += ((queryString == "") ? "" : "?" + queryString); | 189 url += ((queryString == "") ? "" : "?" + queryString); |
| 190 return url; | 190 return url; |
| 191 } | 191 } |
| 192 | |
| 193 // Write the text for the Chrome Frame ActiveX control into an element. | |
| 194 // This works around a "feature" of IE versions released between April, 2006 | |
| 195 // and April, 2008 that required the user to click on an ActiveX control to | |
| 196 // "activate" it. See http://msdn.microsoft.com/en-us/library/ms537508.aspx. | |
| 197 function insertControl(elementId, innerHTML) { | |
| 198 var e = document.getElementById(elementId); | |
| 199 e.innerHTML = innerHTML; | |
|
robertshield
2011/12/02 22:05:02
It seems at a glance that there's a fair amount of
| |
| 200 } | |
| OLD | NEW |