Home | History | Annotate | Download | only in data
      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>
     34