Correction: check for non-secure contexts (#157) · w3c/geolocation@c2fdd74 (original) (raw)

Original file line number Diff line number Diff line change
@@ -695,6 +695,23 @@

695 695 </li>
696 696 </ol>
697 697 </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
703 + object=] is a [=non-secure context=]:
704 +<ol>
705 +<li>If |watchId
706 + |watchIDs
707 +</li>
708 +<li>[=Call back with error=] passing |errorCallback
709 + {{GeolocationPositionError/PERMISSION_DENIED}}.
710 +</li>
711 +<li>Terminate this algorithm.
712 +</li>
713 +</ol></ins>
714 +</li>
698 715 <li>If |document:Document
699 716 "hidden", wait for the following [=page visibility change steps=] to
700 717 run:
@@ -1293,8 +1310,14 @@

1293 1310 <dfn>PERMISSION_DENIED</dfn> (numeric value 1)
1294 1311 </dt>
1295 1312 <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>.
1298 1321 </dd>
1299 1322 <dt>
1300 1323 <dfn>POSITION_UNAVAILABLE</dfn> (numeric value 2)