Skip to content

Commit c2fdd74

Browse files
authoredJun 4, 2024··
Correction: check for non-secure contexts (#157)
1 parent e1636cb commit c2fdd74

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed
 

‎index.html

+25-2
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,23 @@ <h2>
695695
</li>
696696
</ol>
697697
</li>
698+
<li>
699+
<aside class="correction" id="c7">
700+
<span class="marker">Candidate Correction:</span> Added missing
701+
step to handle [=non-secure contexts=].
702+
</aside><ins cite="#c7">If |geolocation|'s [=environment settings
703+
object=] is a [=non-secure context=]:
704+
<ol>
705+
<li>If |watchId| was passed, [=List/remove=] |watchId| from
706+
|watchIDs|.
707+
</li>
708+
<li>[=Call back with error=] passing |errorCallback| and
709+
{{GeolocationPositionError/PERMISSION_DENIED}}.
710+
</li>
711+
<li>Terminate this algorithm.
712+
</li>
713+
</ol></ins>
714+
</li>
698715
<li>If |document:Document|'s [=Document/visibility state=] is
699716
"hidden", wait for the following [=page visibility change steps=] to
700717
run:
@@ -1293,8 +1310,14 @@ <h3>
12931310
<dfn>PERMISSION_DENIED</dfn> (numeric value 1)
12941311
</dt>
12951312
<dd>
1296-
[=Request a position=] failed because the user denied permission to
1297-
use the API.
1313+
<aside class="correction" id="c6">
1314+
<span class="marker">Candidate Correction:</span> Updated the
1315+
description of the `PERMISSION_DENIED` constant to clarify the
1316+
reasons for permission denial, including [=non-secure context=]
1317+
and user denials.
1318+
</aside>[=Request a position=] failed because the user denied
1319+
permission to use the API <ins cite="#c6">or the request was made
1320+
from an [=non-secure context=]</ins>.
12981321
</dd>
12991322
<dt>
13001323
<dfn>POSITION_UNAVAILABLE</dfn> (numeric value 2)

0 commit comments

Comments
 (0)
Please sign in to comment.