Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Callback with error if doc is not fully active #97

Merged
merged 2 commits into from
Jul 27, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 16 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -544,8 +544,12 @@ <h2>
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|, and (repeats) false.
</li>
<li>Return `undefined`.
</li>
Expand All @@ -562,6 +566,16 @@ <h2>
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|, |options|, and (repeats) true.
</li>
Expand Down Expand Up @@ -595,10 +609,6 @@ <h2>
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