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: "chatbox-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: "chatbox-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: "chatbox-visibility", result: "hidden"}); |
michael@0 | 16 | }, false); |
michael@0 | 17 | window.addEventListener("socialTest-CloseSelf", function(e) { |
michael@0 | 18 | window.close(); |
michael@0 | 19 | }, false); |
michael@0 | 20 | </script> |
michael@0 | 21 | <title>test chat window</title> |
michael@0 | 22 | </head> |
michael@0 | 23 | <body onload="pingWorker();"> |
michael@0 | 24 | <p>This is a test social chat window.</p> |
michael@0 | 25 | <!-- a couple of input fields to help with focus testing --> |
michael@0 | 26 | <input id="input1"/> |
michael@0 | 27 | <input id="input2"/> |
michael@0 | 28 | |
michael@0 | 29 | <!-- an iframe here so this one page generates multiple load events --> |
michael@0 | 30 | <iframe id="iframe" src="data:text/plain:this is an iframe"></iframe> |
michael@0 | 31 | </body> |
michael@0 | 32 | </html> |