title: html navigator "User denied Geolocation"
body: <p>I have an issue with window.navigator, I'm getting error code 1, "User denied Geolocation" whenever I run the following code as a local html file:</p>
  
  <pre><code>navigator.geolocation.getCurrentPosition(function(position) {
          console.log(position);
      }, function(positionError) {
          console.log(positionError);
      });
  </code></pre>
  
  <p>The output is coming from the error function, positionError contains:</p>
  
  <pre><code>code: 1
  message: "User denied Geolocation"
  </code></pre>
  
  <p>This does not happen if the containing html is served from some server.</p>
  
  <p>Is this expected? Is there some way to use navigator from a local html? I am trying to write some mobile app, but am also trying to avoid network whenever possible.</p>
  
  <p>thanks.</p>