browser/base/content/test/social/social_window.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/browser/base/content/test/social/social_window.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,17 @@
     1.4 +<html>
     1.5 +  <head>
     1.6 +    <meta charset="utf-8">
     1.7 +    <script>
     1.8 +      function pingWorker() {
     1.9 +        var port = navigator.mozSocial.getWorker().port;
    1.10 +        port.postMessage({topic: "service-window-message",
    1.11 +                          location: window.location.href,
    1.12 +                          result: "ok"
    1.13 +                         });
    1.14 +      }
    1.15 +    </script>
    1.16 +  </head>
    1.17 +  <body onload="pingWorker();">
    1.18 +    <p>This is a test social service window.</p>
    1.19 +  </body>
    1.20 +</html>

mercurial