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

Unified 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, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome_frame/test/data/privileged_apis_frame.html
===================================================================
--- chrome_frame/test/data/privileged_apis_frame.html (revision 0)
+++ chrome_frame/test/data/privileged_apis_frame.html (revision 0)
@@ -0,0 +1,33 @@
+<!-- saved from url=(0014)about:internet -->
+<html>
+<!-- This page is meant to load inside ChromeFrame -->
+ <head>
+ <script type="text/javascript" src="chrome_frame_tester_helpers.js">
+ </script>
+ <script type="text/javascript">
+ function OnLoad() {
+ externalHost.onmessage = OnHostMessage;
+ }
+
+ function OnHostMessage(evt) {
+ // Any time we receive a message, we reflect it back both
+ // with a nonsensical target, and with "*".
+ appendStatus('Host message: ' + evt.data);
+ externalHost.postMessage(evt.data,
+ "privileged_target");
+ appendStatus('After postMessage(' + evt.data + ', "privileged_target)"');
+ externalHost.postMessage(evt.data);
+ appendStatus('After postMessage(' + evt.data + '")');
+ }
+ </script>
+ </head>
+
+ <body onload="OnLoad();">
+ <div id="statusPanel" style="border: 1px solid red; width: 100%">
+ Test running....
+ </div>
+
+ <p>ChromeFrame PrivilegeApis Test
+ <br>Tests that private messaging is not available to regular web pages</p>
+ </body>
+</html>
« 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