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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head><title>Privileged Apis test</title> 2 <head><title>Privileged Apis test</title>
3 <script type='text/javascript' src='chrome_frame_tester_helpers.js'> 3 <script type='text/javascript' src='chrome_frame_tester_helpers.js'>
4 </script> 4 </script>
5 <script type='text/javascript'> 5 <script type='text/javascript'>
6 var testName = 'PrivilegedApis'; 6 var testName = 'PrivilegedApis';
7 function OnNavigationFailed(msg) { 7 function OnNavigationFailed(msg) {
8 onFailure(testName, 1, 'ChromeFrame Navigation failed: ' + msg); 8 onFailure(testName, 1, 'ChromeFrame Navigation failed: ' + msg);
9 } 9 }
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 function GetChromeFrame() { 62 function GetChromeFrame() {
63 return window.document.ChromeFrame; 63 return window.document.ChromeFrame;
64 } 64 }
65 </script> 65 </script>
66 </head> 66 </head>
67 <body> 67 <body>
68 <div id='statusPanel' style='border: 1px solid red; width: 100%'> 68 <div id='statusPanel' style='border: 1px solid red; width: 100%'>
69 Test running.... 69 Test running....
70 </div> 70 </div>
71 71
72 <span id='ChromeFrameSpan'></span>
72 <!-- TODO(siggi): Test setting onprivatemessage in these params --> 73 <!-- TODO(siggi): Test setting onprivatemessage in these params -->
73 <object id='ChromeFrame' width='500' height='500' 74 <script type='text/javascript'>
74 codebase='http://www.google.com' 75 insertControl(
75 classid='CLSID:E0A900DF-9611-4446-86BD-4B1D47E7DB2A'> 76 'ChromeFrameSpan',
76 <param name='src' value='privileged_apis_frame.html'> 77 " <object id='ChromeFrame' width='500' height='500'" +
77 <param name='onload' value='OnChromeFrameLoaded(arguments[0]);'> 78 " codebase='http://www.google.com'" +
78 <param name='onloaderror' value='OnNavigationFailed();'> 79 " classid='CLSID:E0A900DF-9611-4446-86BD-4B1D47E7DB2A'>" +
79 <param name='onmessage' value='OnChromeFrameMessage(arguments[0]);'> 80 " <param name='src' value='privileged_apis_frame.html'>" +
80 <embed id='ChromeFramePlugin' width='500' height='500' name='ChromeFra me' 81 " <param name='onload' value='OnChromeFrameLoaded(arguments[0]);'>" +
81 src='privileged_apis_frame.html' 82 " <param name='onloaderror' value='OnNavigationFailed();'>" +
82 type='application/chromeframe' 83 " <param name='onmessage' value='OnChromeFrameMessage(arguments[0]);'>" +
83 onload='OnChromeFrameLoaded(arguments[0]);' 84 " <embed id='ChromeFramePlugin' width='500' height='500' name='ChromeFr ame'" +
84 onloaderror='OnNavigationFailed();' 85 " src='privileged_apis_frame.html'" +
85 onmessage='return OnChromeFrameMessage(arguments[0]);' 86 " type='application/chromeframe'" +
86 privileged_mode='1' 87 " onload='OnChromeFrameLoaded(arguments[0]);'" +
87 </embed> 88 " onloaderror='OnNavigationFailed();'" +
88 </object> 89 " onmessage='return OnChromeFrameMessage(arguments[0]);'" +
90 " privileged_mode='1'" +
91 " </embed>" +
92 " </object>");
93 </script>
89 <p>Tests that privileged apis are unavailable from regular pages</p> 94 <p>Tests that privileged apis are unavailable from regular pages</p>
90 </body> 95 </body>
91 </html> 96 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698