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

Unified Diff: chrome_frame/test/data/privileged_apis_host.html

Issue 8777002: Chrome Frame test fixes for Vista/IE7. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: whitespace fix Created 9 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome_frame/test/data/privileged_apis_host.html
diff --git a/chrome_frame/test/data/privileged_apis_host.html b/chrome_frame/test/data/privileged_apis_host.html
index 052b2769ca713a7f924d93a741f56709a8837964..9d01ef15a66c4dc424a84eff4390a99409071147 100644
--- a/chrome_frame/test/data/privileged_apis_host.html
+++ b/chrome_frame/test/data/privileged_apis_host.html
@@ -69,23 +69,28 @@
Test running....
</div>
+ <span id='ChromeFrameSpan'></span>
<!-- TODO(siggi): Test setting onprivatemessage in these params -->
- <object id='ChromeFrame' width='500' height='500'
- codebase='http://www.google.com'
- classid='CLSID:E0A900DF-9611-4446-86BD-4B1D47E7DB2A'>
- <param name='src' value='privileged_apis_frame.html'>
- <param name='onload' value='OnChromeFrameLoaded(arguments[0]);'>
- <param name='onloaderror' value='OnNavigationFailed();'>
- <param name='onmessage' value='OnChromeFrameMessage(arguments[0]);'>
- <embed id='ChromeFramePlugin' width='500' height='500' name='ChromeFrame'
- src='privileged_apis_frame.html'
- type='application/chromeframe'
- onload='OnChromeFrameLoaded(arguments[0]);'
- onloaderror='OnNavigationFailed();'
- onmessage='return OnChromeFrameMessage(arguments[0]);'
- privileged_mode='1'
- </embed>
- </object>
+ <script type='text/javascript'>
+insertControl(
+ 'ChromeFrameSpan',
+" <object id='ChromeFrame' width='500' height='500'" +
+" codebase='http://www.google.com'" +
+" classid='CLSID:E0A900DF-9611-4446-86BD-4B1D47E7DB2A'>" +
+" <param name='src' value='privileged_apis_frame.html'>" +
+" <param name='onload' value='OnChromeFrameLoaded(arguments[0]);'>" +
+" <param name='onloaderror' value='OnNavigationFailed();'>" +
+" <param name='onmessage' value='OnChromeFrameMessage(arguments[0]);'>" +
+" <embed id='ChromeFramePlugin' width='500' height='500' name='ChromeFrame'" +
+" src='privileged_apis_frame.html'" +
+" type='application/chromeframe'" +
+" onload='OnChromeFrameLoaded(arguments[0]);'" +
+" onloaderror='OnNavigationFailed();'" +
+" onmessage='return OnChromeFrameMessage(arguments[0]);'" +
+" privileged_mode='1'" +
+" </embed>" +
+" </object>");
+ </script>
<p>Tests that privileged apis are unavailable from regular pages</p>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698