gecko/browser/base/content/test/social/share.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>