gecko/browser/base/content/test/social/share.html

19 lines
473 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
window.close();
})
</script>
</head>
<body>
<p>This is a test social share window.</p>
</body>
</html>