browser/base/content/test/social/social_panel.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_panel.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,24 @@
     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: "panel-message",
    1.11 +                          result: "ok",
    1.12 +                          location: window.location.href});
    1.13 +      }
    1.14 +      window.addEventListener("socialFrameShow", function(e) {
    1.15 +        var port = navigator.mozSocial.getWorker().port;
    1.16 +        port.postMessage({topic: "status-panel-visibility", result: "shown"});
    1.17 +      }, false);
    1.18 +      window.addEventListener("socialFrameHide", function(e) {
    1.19 +        var port = navigator.mozSocial.getWorker().port;
    1.20 +        port.postMessage({topic: "status-panel-visibility", result: "hidden"});
    1.21 +      }, false);
    1.22 +    </script>
    1.23 +  </head>
    1.24 +  <body onload="pingWorker();">
    1.25 +    <p>This is a test social panel.</p>
    1.26 +  </body>
    1.27 +</html>

mercurial