Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | <html> |
michael@0 | 2 | <head> |
michael@0 | 3 | <meta charset="utf-8"> |
michael@0 | 4 | <script> |
michael@0 | 5 | function pingWorker() { |
michael@0 | 6 | var port = navigator.mozSocial.getWorker().port; |
michael@0 | 7 | port.postMessage({topic: "flyout-message", result: "ok"}); |
michael@0 | 8 | } |
michael@0 | 9 | window.addEventListener("socialFrameShow", function(e) { |
michael@0 | 10 | var port = navigator.mozSocial.getWorker().port; |
michael@0 | 11 | port.postMessage({topic: "flyout-visibility", result: "shown"}); |
michael@0 | 12 | }, false); |
michael@0 | 13 | window.addEventListener("socialFrameHide", function(e) { |
michael@0 | 14 | var port = navigator.mozSocial.getWorker().port; |
michael@0 | 15 | port.postMessage({topic: "flyout-visibility", result: "hidden"}); |
michael@0 | 16 | }, false); |
michael@0 | 17 | window.addEventListener("socialTest-MakeWider", function(e) { |
michael@0 | 18 | document.body.setAttribute("style", "width: 500px; height: 500px; margin: 0; overflow: hidden;"); |
michael@0 | 19 | document.body.offsetWidth; // force a layout flush |
michael@0 | 20 | var evt = document.createEvent("CustomEvent"); |
michael@0 | 21 | evt.initCustomEvent("SocialTest-DoneMakeWider", true, true, {}); |
michael@0 | 22 | document.documentElement.dispatchEvent(evt); |
michael@0 | 23 | }, false); |
michael@0 | 24 | window.addEventListener("socialTest-CloseSelf", function(e) { |
michael@0 | 25 | window.close(); |
michael@0 | 26 | var evt = document.createEvent("CustomEvent"); |
michael@0 | 27 | evt.initCustomEvent("SocialTest-DoneCloseSelf", true, true, {}); |
michael@0 | 28 | document.documentElement.dispatchEvent(evt); |
michael@0 | 29 | }, false); |
michael@0 | 30 | </script> |
michael@0 | 31 | </head> |
michael@0 | 32 | <body style="width: 400px; height: 400px; margin: 0; overflow: hidden;" onload="pingWorker();"> |
michael@0 | 33 | <p>This is a test social flyout panel.</p> |
michael@0 | 34 | <a id="traversal" href="http://mochi.test">test link</a> |
michael@0 | 35 | </body> |
michael@0 | 36 | </html> |
michael@0 | 37 |