1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/webapprt/test/chrome/geolocation-prompt-perm.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,18 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html> 1.6 + <head> 1.7 + <meta charset="utf-8"> 1.8 + </head> 1.9 + <body> 1.10 + <script> 1.11 + function failureCallback() { 1.12 + document.getElementById("msg").textContent = "Failure."; 1.13 + } 1.14 + function successCallback() { 1.15 + document.getElementById("msg").textContent = "Success."; 1.16 + } 1.17 + navigator.geolocation.getCurrentPosition(successCallback, failureCallback); 1.18 + </script> 1.19 + <p id="msg">Webapp waiting for geolocation...</p> 1.20 + </body> 1.21 +</html>