From f38c6807543400531ee2257b3c93629ba4110b5a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marcos=20C=C3=A1ceres?=
Date: Wed, 9 Jun 2021 19:53:43 +1000
Subject: [PATCH 4/7] Gracefully handle documents that are not fully active
---
index.html | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/index.html b/index.html
index f4efeeb..453e97e 100644
--- a/index.html
+++ b/index.html
@@ -592,7 +592,18 @@
Let |watchTasks:Set| be [=this=]'s
- {{Geolocation/[[watchTasks]]}}.
+ {{Geolocation/[[watchTasks]]}}.
+
+
+ If the [=current settings object=]'s [=associated `Document`=] is not [=fully active=]:
+
+
+ [=list/Empty=] |watchTasks|.
+
+
+ Return [=implementation-defined=] {{long}}.
+
+
If the [=current settings object=]'s [=associated `Document`=] is
not [=fully active=]:
From be3c046d9089caa602c8aa47861c797979c2b5df Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marcos=20C=C3=A1ceres?=
Date: Fri, 9 Jul 2021 11:07:00 +1000
Subject: [PATCH 5/7] Integrate better with visibility
---
index.html | 46 +++++++++++++++++++++++++++++++++-------------
1 file changed, 33 insertions(+), 13 deletions(-)
diff --git a/index.html b/index.html
index 453e97e..f5949d4 100644
--- a/index.html
+++ b/index.html
@@ -118,6 +118,9 @@
has received the following changes:
+
Added handling for when documents are not [=Document/fully
+ active=].
+
Added the [=geolocation task source=], which handles dispatching
position updates and errors.
@@ -591,6 +594,10 @@
optionally (and only if |repeats| is true) a |previousId:long|.
+
If the [=current settings object=]'s [=associated `Document`=] is
+ not [=Document/fully active=], return an [=implementation-defined=]
+ {{long}}.
+
Let |watchTasks:Set| be [=this=]'s
{{Geolocation/[[watchTasks]]}}.
@@ -605,15 +612,6 @@
-
If the [=current settings object=]'s [=associated `Document`=] is
- not [=fully active=]:
-
-
[=list/Empty=] |watchTasks|.
-
-
Return an [=implementation-defined=] {{long}}.
-
-
-
If |previousId| was provided, let |watchId:long| be |previousId|;
Otherwise, let |watchId:long| be an [=implementation-defined=]
{{long}} that is greater than or equal to zero.
@@ -650,6 +648,9 @@
If |document:Document| is [=Document/hidden=], wait for
the |document| to become [=Document/visible=].
Wait for a significant change of geographic position. What
- constitutes a significant change of geographic position is left
- to the implementation. User agents MAY impose a rate limit on the
- frequency position changes.
+
+ Wait for a significant change of
+ geographic position. What constitutes a significant
+ change of geographic position is left to the implementation.
+ User agents MAY impose a rate limit on the frequency position
+ changes.
+