gecko/dom/tests/browser/browser_geolocation_privatebrowsing_page.html

12 lines
270 B
HTML
Raw Normal View History

<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>