diff --git a/index.html b/index.html index 2c6ecb6..76a53fa 100644 --- a/index.html +++ b/index.html @@ -46,7 +46,7 @@ }; - +
@@ -398,6 +398,23 @@

Geolocation interface

The implementation of the getCurrentPosition method MUST execute the following set of steps:

    +
  1. + Return and continue asynchronously. +
  2. +
  3. + If the environment settings object is a non-secure context: +
      +
    1. + If |errorCallback| was passed, invoke the |errorCallback| with a newly created {{GeolocationPositionError}} object whose {{GeolocationPositionError/code}} attribute is initialized to {{GeolocationPositionError/PERMISSION_DENIED}}. +
    2. +
    3. + Optionally, inform the developer that the API can only be used from secure contexts. +
    4. +
    5. + Terminate this algorithm. +
    6. +
    +
  4. If a cached GeolocationPosition object, whose age is no greater than the value of the maximumAge variable, is available, invoke the successCallback with the @@ -428,12 +445,25 @@

    Geolocation interface

    present) with a new GeolocationPositionError object whose code is set to POSITION_UNAVAILABLE.
- -

The watchPosition() - method takes one, two or three arguments. When called, it MUST immediately - return a long value that uniquely identifies a watch - process and then asynchronously start the watch - operation. This operation MUST first attempt to obtain the current location of the +

The watchPosition() method takes one, two or three arguments. When called, immediately return a long value that uniquely identifies a watch process and continue asynchronously.

+
    +
  1. + If the environment settings object is a non-secure context: +
      +
    1. + If |errorCallback| was passed, invoke the |errorCallback| with a newly created {{GeolocationPositionError}} object whose {{GeolocationPositionError/code}} attribute is initialized to {{GeolocationPositionError/PERMISSION_DENIED}}. +
    2. +
    3. + Optionally, inform the developer that the API can only be used from secure contexts. +
    4. +
    5. + Terminate this algorithm. +
    6. +
    +
  2. +
  3. +

    + Otherwise, start the watch operation. This operation MUST first attempt to obtain the current location of the device. If the attempt is successful, the successCallback MUST be invoked (i.e. the {{EventListener/handleEvent()}} operation MUST be called on the callback object) with a new GeolocationPosition object, @@ -444,9 +474,10 @@

    Geolocation interface

    to monitor the position of the device and invoke the appropriate callback every time this position changes. The watch process MUST continue until - the clearWatch() method is + the {{Geolocation/clearWatch()}} method is called with the corresponding identifier.

    - +
  4. +

The PositionCallBack callback is invoked when a GeolocationPosition object is available, resulting from a cached object or the acquisition operation. The PositionCallBack callback gets set using the successCallback parameter.

@@ -622,7 +653,7 @@

GeolocationPosition interface

position (e.g. street addresses).
-  [Exposed=Window]
+  [Exposed=Window, SecureContext]
   interface GeolocationPosition {
     readonly attribute GeolocationCoordinates coords;
     readonly attribute DOMTimeStamp timestamp;
@@ -641,7 +672,7 @@ 

GeolocationPosition interface

GeolocationCoordinates interface

-  [Exposed=Window]
+  [Exposed=Window, SecureContext]
   interface GeolocationCoordinates {
     readonly attribute double latitude;
     readonly attribute double longitude;