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

Side by Side Diff: chrome_frame/test/data/privileged_apis_frame.html

Issue 218019: Initial import of the Chrome Frame codebase. Integration in chrome.gyp coming... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 2 months 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
(Empty)
1 <!-- saved from url=(0014)about:internet -->
2 <html>
3 <!-- This page is meant to load inside ChromeFrame -->
4 <head>
5 <script type="text/javascript" src="chrome_frame_tester_helpers.js">
6 </script>
7 <script type="text/javascript">
8 function OnLoad() {
9 externalHost.onmessage = OnHostMessage;
10 }
11
12 function OnHostMessage(evt) {
13 // Any time we receive a message, we reflect it back both
14 // with a nonsensical target, and with "*".
15 appendStatus('Host message: ' + evt.data);
16 externalHost.postMessage(evt.data,
17 "privileged_target");
18 appendStatus('After postMessage(' + evt.data + ', "privileged_target)"') ;
19 externalHost.postMessage(evt.data);
20 appendStatus('After postMessage(' + evt.data + '")');
21 }
22 </script>
23 </head>
24
25 <body onload="OnLoad();">
26 <div id="statusPanel" style="border: 1px solid red; width: 100%">
27 Test running....
28 </div>
29
30 <p>ChromeFrame PrivilegeApis Test
31 <br>Tests that private messaging is not available to regular web pages</p>
32 </body>
33 </html>
OLDNEW
« no previous file with comments | « chrome_frame/test/data/postmessage_basic_host.html ('k') | chrome_frame/test/data/privileged_apis_host.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698