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

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: ToT sync 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 { "src": "privileged_apis_frame.html",
77 <param name='onload' value='OnChromeFrameLoaded(arguments[0]);'> 78 "eventHandlers": {
78 <param name='onloaderror' value='OnNavigationFailed();'> 79 "onload": "OnChromeFrameLoaded(arguments[0]);",
79 <param name='onmessage' value='OnChromeFrameMessage(arguments[0]);'> 80 "onloaderror": "OnNavigationFailed();",
80 <embed id='ChromeFramePlugin' width='500' height='500' name='ChromeFra me' 81 "onmessage": "return OnChromeFrameMessage(arguments[0]);"
81 src='privileged_apis_frame.html' 82 },
82 type='application/chromeframe' 83 "embedAttributes": { "privileged_mode": "1" }
83 onload='OnChromeFrameLoaded(arguments[0]);' 84 });
84 onloaderror='OnNavigationFailed();' 85 </script>
85 onmessage='return OnChromeFrameMessage(arguments[0]);'
86 privileged_mode='1'
87 </embed>
88 </object>
89 <p>Tests that privileged apis are unavailable from regular pages</p> 86 <p>Tests that privileged apis are unavailable from regular pages</p>
90 </body> 87 </body>
91 </html> 88 </html>
OLDNEW
« no previous file with comments | « chrome_frame/test/data/postmessage_basic_host.html ('k') | chrome_frame/test/data/simple_object_focus.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698