Callback with error if doc is not fully active (#97) · w3c/geolocation@de05002 (original ) (raw ) This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})
Original file line number
Diff line number
Diff line change
Expand Up
@@ -544,8 +544,12 @@
method steps are:
</p>
<ol class="algorithm">
<li>[=Request position=], passing |successCallback
,
errorCallback
|options
, and (repeats) false.
<li>If the [=current settings object=]'s [=associated `Document`=] is
not [=Document/fully active=], [=call back with error=]
|errorCallback
and {{GeolocationPositionError/POSITION_UNAVAILABLE}}.
</li>
<li>Otherwise, [=request position=], passing |successCallback
,
|errorCallback
,
options
</li>
<li>Return `undefined`.
</li>
Expand All
@@ -562,6 +566,16 @@
method steps are:
</p>
<ol class="algorithm">
<li>If the [=current settings object=]'s [=associated `Document`=] is
not [=Document/fully active=]:
<ol>
<li>[=Call back with error=] |errorCallback
and
{{GeolocationPositionError/POSITION_UNAVAILABLE}}.
</li>
<li>Return an [=implementation-defined=] {{long}}.
</li>
</ol>
</li>
<li>Let |watchId:long
be [=request position=], passing
|successCallback
,
errorCallback
</li>
Expand Down Expand Up
@@ -595,10 +609,6 @@
optionally (and only if |repeats
is true) a
previousId:long
</p>
<ol class="algorithm">
<li>If the [=current settings object=]'s [=associated `Document`=] is
not [=Document/fully active=], return an [=implementation-defined=]
{{long}}.
</li>
<li>Let |watchTasks:Set
be [=this=]'s
{{Geolocation/[[watchTasks]]}}.
</li>
Expand Down