permission-geolocation-inner.html (493B)
1 <!DOCTYPE html> 2 <script src="utils.js"></script> 3 <title>Fenced frame content to report the result of navigator.geolocation.getCurrentPosition()</title> 4 5 <body> 6 <script> 7 (async () => { 8 const [permission_geolocation_key] = parseKeylist(); 9 const result = await new Promise(resolve => { 10 navigator.geolocation.getCurrentPosition( 11 () => resolve('granted'), () => resolve('denied')); 12 }); 13 writeValueToServer(permission_geolocation_key, `result: ${result}`); 14 })(); 15 </script> 16 </body>