mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
20 lines
541 B
HTML
20 lines
541 B
HTML
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<script>
|
|
var shareData;
|
|
addEventListener("OpenGraphData", function(e) {
|
|
shareData = JSON.parse(e.detail);
|
|
var port = navigator.mozSocial.getWorker().port;
|
|
port.postMessage({topic: "share-data-message", result: shareData});
|
|
// share windows self-close
|
|
history.back(); // bug 1042991, ensure history is available
|
|
window.close();
|
|
})
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<p>This is a test social share window.</p>
|
|
</body>
|
|
</html>
|