Thu, 15 Jan 2015 21:03:48 +0100
Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)
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: "panel-message", |
michael@0 | 8 | result: "ok", |
michael@0 | 9 | location: window.location.href}); |
michael@0 | 10 | } |
michael@0 | 11 | window.addEventListener("socialFrameShow", function(e) { |
michael@0 | 12 | var port = navigator.mozSocial.getWorker().port; |
michael@0 | 13 | port.postMessage({topic: "status-panel-visibility", result: "shown"}); |
michael@0 | 14 | }, false); |
michael@0 | 15 | window.addEventListener("socialFrameHide", function(e) { |
michael@0 | 16 | var port = navigator.mozSocial.getWorker().port; |
michael@0 | 17 | port.postMessage({topic: "status-panel-visibility", result: "hidden"}); |
michael@0 | 18 | }, false); |
michael@0 | 19 | </script> |
michael@0 | 20 | </head> |
michael@0 | 21 | <body onload="pingWorker();"> |
michael@0 | 22 | <p>This is a test social panel.</p> |
michael@0 | 23 | </body> |
michael@0 | 24 | </html> |