mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
33 lines
1.1 KiB
HTML
33 lines
1.1 KiB
HTML
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<script>
|
|
function pingWorker() {
|
|
var port = navigator.mozSocial.getWorker().port;
|
|
port.postMessage({topic: "chatbox-message", result: "ok"});
|
|
}
|
|
window.addEventListener("socialFrameShow", function(e) {
|
|
var port = navigator.mozSocial.getWorker().port;
|
|
port.postMessage({topic: "chatbox-visibility", result: "shown"});
|
|
}, false);
|
|
window.addEventListener("socialFrameHide", function(e) {
|
|
var port = navigator.mozSocial.getWorker().port;
|
|
port.postMessage({topic: "chatbox-visibility", result: "hidden"});
|
|
}, false);
|
|
window.addEventListener("socialTest-CloseSelf", function(e) {
|
|
window.close();
|
|
}, false);
|
|
</script>
|
|
<title>test chat window</title>
|
|
</head>
|
|
<body onload="pingWorker();">
|
|
<p>This is a test social chat window.</p>
|
|
<!-- a couple of input fields to help with focus testing -->
|
|
<input id="input1"/>
|
|
<input id="input2"/>
|
|
|
|
<!-- an iframe here so this one page generates multiple load events -->
|
|
<iframe id="iframe" src="data:text/plain:this is an iframe"></iframe>
|
|
</body>
|
|
</html>
|