From 73fc23d80386b8e5ce72d337e66753fe9b3265f3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marcos=20C=C3=A1ceres?=
- Recipients ought to only request position information when necessary, - and only use the location information for the task for which it was - provided to them. Recipients ought to dispose of location information - once that task is completed, unless expressly permitted to retain it - by the user. Recipients need to also take measures to protect this - information against unauthorized access. If location information is - stored, users need to be allowed to update and delete this - information. + Recipients ought to only request a position information when + necessary, and only use the location information for the task for + which it was provided to them. Recipients ought to dispose of + location information once that task is completed, unless expressly + permitted to retain it by the user. Recipients need to also take + measures to protect this information against unauthorized access. If + location information is stored, users need to be allowed to update + and delete this information.
The recipients of location information need to refrain from @@ -488,6 +488,25 @@
+ The Geolocation API is a [=default powerful feature=]. +
++ When check permission + to use the API, a user agent MAY suggest time-based [=permission=] + [=permission/lifetimes=], such as "24 hours", "1 week", or choose to + remember the permission [permission/grant=] indefinitely. However, it + is RECOMMENDED that a user agent prioritize restricting the + [=permission=] [=permission/lifetime=] to a single session: This can + be, for example, until the [=environment settings object/realm=] is + destroyed, the end-user [=navigates=] away from the [=origin=], or + the relevant browser tab is closed. +
+- Request position by passing a {{PositionCallback}} - |successCallback:PositionCallback|, a {{PositionErrorCallback}}`?` - |errorCallback:PositionErrorCallback|, {{PositionOptions}} - |options:PositionOptions|, a {{boolean}} |repeats:boolean|, and - optionally (and only if |repeats| is true) a |previousId:long|. + To request a position, pass a {{PositionCallback}} + |successCallback:PositionCallback|, a {{PositionErrorCallback?}} + |errorCallback:PositionErrorCallback?|, {{PositionOptions}} + |options:PositionOptions|, and an optional |watchId:long|:
- [=Call back with error=] passing |errorCallback| - and - {{GeolocationPositionError/PERMISSION_DENIED}}. -
- -- The Geolocation API is a [=default powerful feature=]. -
-- The user agent MAY suggest time-based [=permission=] - [=permission/lifetimes=], such as "24 hours", "1 week", or choose to - remember the permission [permission/grant=] indefinitely. However, it - is RECOMMENDED that a user agent prioritize restricting the - [=permission=] [=permission/lifetime=] to a single session: This can - be, for example, until the [=environment settings object/realm=] is - destroyed, the end-user [=navigates=] away from the [=origin=], or - the relevant browser tab is closed. -
-- When instructed to check permission, given a - {{PositionErrorCallback}}`?` |errorCallback:PositionErrorCallback|: + To acquire a position, + passing {{PositionCallback}} |successCallback:PositionCallback|, a + {{PositionErrorCallback?}} |errorCallback:PositionErrorCallback?|, + {{PositionOptions}} |options:PositionOptions|, and an optional + |watchId:long|.
+ [=Call back with error=] passing |errorCallback| and + {{GeolocationPositionError/PERMISSION_DENIED}}. +
+ ++
The time spent waiting for the document to become visible and for [=check permission|obtaining permission to use the API=] is not included in the period covered by the {{PositionOptions/timeout}} member. The {{PositionOptions/timeout}} member only applies when [=acquiring a position=] begins.
+
- Recipients ought to only request a position information when
+ Recipients ought to only request position information when
necessary, and only use the location information for the task for
which it was provided to them. Recipients ought to dispose of
location information once that task is completed, unless expressly
From 121b09c8843d6da84b465dccc81f24f329a7f635 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marcos=20C=C3=A1ceres?=
that can govern the usage and access to users' location data.
- Recipients ought to only request position information when - necessary, and only use the location information for the task for - which it was provided to them. Recipients ought to dispose of - location information once that task is completed, unless expressly - permitted to retain it by the user. Recipients need to also take - measures to protect this information against unauthorized access. If - location information is stored, users need to be allowed to update - and delete this information. + Recipients ought to only request position information when necessary, + and only use the location information for the task for which it was + provided to them. Recipients ought to dispose of location information + once that task is completed, unless expressly permitted to retain it + by the user. Recipients need to also take measures to protect this + information against unauthorized access. If location information is + stored, users need to be allowed to update and delete this + information.
The recipients of location information need to refrain from @@ -608,7 +608,7 @@
When instructed to call back with error, given an - {{PositionErrorCallback}}`?` |callback:PositionErrorCallback| and an + {{PositionErrorCallback?}} |callback:PositionErrorCallback?| and an {{unsigned short}} |code:unsigned short|:
- When check permission + When checking permission to use the API, a user agent MAY suggest time-based [=permission=] [=permission/lifetimes=], such as "24 hours", "1 week", or choose to - remember the permission [permission/grant=] indefinitely. However, it + remember the permission [=permission/grant=] indefinitely. However, it is RECOMMENDED that a user agent prioritize restricting the [=permission=] [=permission/lifetime=] to a single session: This can be, for example, until the [=environment settings object/realm=] is @@ -804,7 +804,7 @@
- When checking permission - to use the API, a user agent MAY suggest time-based [=permission=] - [=permission/lifetimes=], such as "24 hours", "1 week", or choose to - remember the permission [=permission/grant=] indefinitely. However, it - is RECOMMENDED that a user agent prioritize restricting the - [=permission=] [=permission/lifetime=] to a single session: This can - be, for example, until the [=environment settings object/realm=] is + When checking permission to use the API, a user agent MAY + suggest time-based [=permission=] [=permission/lifetimes=], such as + "24 hours", "1 week", or choose to remember the permission + [=permission/grant=] indefinitely. However, it is RECOMMENDED that a + user agent prioritize restricting the [=permission=] + [=permission/lifetime=] to a single session: This can be, for + example, until the [=environment settings object/realm=] is destroyed, the end-user [=navigates=] away from the [=origin=], or the relevant browser tab is closed.
From 3453a23f696e1f7bd0e528d963b6fbcca5572694 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20C=C3=A1ceres?=- When checking permission to use the API, a user agent MAY - suggest time-based [=permission=] [=permission/lifetimes=], such as - "24 hours", "1 week", or choose to remember the permission - [=permission/grant=] indefinitely. However, it is RECOMMENDED that a - user agent prioritize restricting the [=permission=] - [=permission/lifetime=] to a single session: This can be, for - example, until the [=environment settings object/realm=] is + When checking permission + to use the API, a user agent MAY suggest time-based [=permission=] + [=permission/lifetimes=], such as "24 hours", "1 week", or choose to + remember the permission [=permission/grant=] indefinitely. However, + it is RECOMMENDED that a user agent prioritize restricting the + [=permission=] [=permission/lifetime=] to a single session: This can + be, for example, until the [=environment settings object/realm=] is destroyed, the end-user [=navigates=] away from the [=origin=], or the relevant browser tab is closed.
From e5481f8c11f6e211911c4b21ce187caead9670fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20C=C3=A1ceres?=The getCurrentPosition(|successCallback:PositionCallback|, - |errorCallback:PositionErrorCallback|, |options:PositionOptions|) + |errorCallback:PositionErrorCallback?|, |options:PositionOptions|) method steps are:
The watchPosition(|successCallback:PositionCallback|, - |errorCallback:PositionErrorCallback|, |options:PositionOptions|) + |errorCallback:PositionErrorCallback?|, |options:PositionOptions|) method steps are: