Skip to content

Commit

Permalink
Correction: check for non-secure contexts (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoscaceres authored Jun 4, 2024
1 parent e1636cb commit c2fdd74
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,23 @@ <h2>
</li>
</ol>
</li>
<li>
<aside class="correction" id="c7">
<span class="marker">Candidate Correction:</span> Added missing
step to handle [=non-secure contexts=].
</aside><ins cite="#c7">If |geolocation|'s [=environment settings
object=] is a [=non-secure context=]:
<ol>
<li>If |watchId| was passed, [=List/remove=] |watchId| from
|watchIDs|.
</li>
<li>[=Call back with error=] passing |errorCallback| and
{{GeolocationPositionError/PERMISSION_DENIED}}.
</li>
<li>Terminate this algorithm.
</li>
</ol></ins>
</li>
<li>If |document:Document|'s [=Document/visibility state=] is
"hidden", wait for the following [=page visibility change steps=] to
run:
Expand Down Expand Up @@ -1293,8 +1310,14 @@ <h3>
<dfn>PERMISSION_DENIED</dfn> (numeric value 1)
</dt>
<dd>
[=Request a position=] failed because the user denied permission to
use the API.
<aside class="correction" id="c6">
<span class="marker">Candidate Correction:</span> Updated the
description of the `PERMISSION_DENIED` constant to clarify the
reasons for permission denial, including [=non-secure context=]
and user denials.
</aside>[=Request a position=] failed because the user denied
permission to use the API <ins cite="#c6">or the request was made
from an [=non-secure context=]</ins>.
</dd>
<dt>
<dfn>POSITION_UNAVAILABLE</dfn> (numeric value 2)
Expand Down

0 comments on commit c2fdd74

Please sign in to comment.