<body onload="loaded()">
    <script>
        if (window.internals)
            internals.markContextAsInsecure();
        if (navigator.geolocation) {
	    navigator.geolocation.getCurrentPosition(showPosition);
	} 
	function showPosition(position) {
	    console.log("Latitude: " + position.coords.latitude + "Longitude: " + position.coords.longitude);	
	}
	function loaded() {
	    if (window.opener)
	        window.opener.postMessage('done', '*');
	}
    </script>
</body>
