gecko-dev/dom/tests/browser/browser_geolocation_privatebrowsing_page.html

12 lines
270 B
HTML

<html>
<body>
<script>
navigator.geolocation.getCurrentPosition(function(pos) {
var evt = document.createEvent('CustomEvent');
evt.initCustomEvent('georesult', true, false, pos.coords.latitude);
document.dispatchEvent(evt);
});
</script>
</body>
</html>