Gracefully handle documents that are not fully active (#90) · w3c/geolocation@f4605e5 (original) (raw)
`@@ -38,7 +38,8 @@
`
38
38
`};
`
39
39
`
`
40
40
`
`
41
``
`-
`
``
41
`+
```
42
`+
"secure-contexts permissions-policy permissions page-visibility-2">
`
42
43
`
`
43
44
`
`
44
45
` The Geolocation API provides access to geographical location
`
118
119
` has received the following changes:
`
119
120
`
`
120
121
`
- Added handling for when documents are not [=Document/fully
`
``
123
`+
active=].
`
``
124
`+
- Added the [=geolocation task source=], which handles dispatching
- If the [=current settings object=]'s [=associated `Document`=] is
``
``
599
`+
not [=Document/fully active=], return an [=implementation-defined=]
`
``
600
`+
{{long}}.
`
``
601
`+
- Let |watchTasks:Set| be [=this=]'s
- Wait for document to become
`
625
``
`-
visible.
`
``
632
`+
- Wait for document to become visible.
`
626
633
`
- Let |document:Document| be the [=current settings
`
627
634
`
`
628
635
` object=]'s [=associated Document=].
`
629
636
`
- If |document:Document| is [=Document/hidden=], wait for
- Go to wait for significant
`
``
641
`+
change of geographic position
.`
``
642
`+
- Wait for a significant change of geographic position. What
`
751
``
`-
constitutes a significant change of geographic position is left
`
752
``
`-
to the implementation. User agents MAY impose a rate limit on the
`
753
``
`-
frequency position changes.
`
``
760
`+
-
`
``
761
`+
Wait for a significant change of
`
``
762
`+
geographic position. What constitutes a significant
`
``
763
`+
change of geographic position is left to the implementation.
`
``
764
`+
User agents MAY impose a rate limit on the frequency position
`
``
765
`+
changes.
`
``
766
`+
- If |document| is not [=Document/fully active=] or not
`
``
768
`+
[=Document/visible=], go back to the previous step and again
`
``
769
`+
wait for significant change of
`
``
770
`+
geographic position.
`
``
771
`+
`
754
783
`
- If |watchTasks| [=list/contain|contains=] |watchId|, then:
`
``
122
`+
`
121
125
`
`
122
126
` position updates and errors.
`
123
127
`
`
`@@ -591,6 +595,10 @@
`
591
595
` optionally (and only if |repeats| is true) a |previousId:long|.
`
592
596
`
`
593
597
`
`
``
598
`` +
`
594
602
`
`
595
603
` {{Geolocation/[[watchTasks]]}}.
`
596
604
`
`
`@@ -621,15 +629,17 @@
`
621
629
`
`
622
630
`
`
623
631
`
`
624
``
`-
`
630
637
`
`
631
638
` the |document| to become [=Document/visible=].
`
632
639
`
`
``
640
`+
`
633
643
`
`
634
644
`
`
635
645
`<li data-tests=
`
`@@ -747,10 +757,29 @@
`
747
757
`
`
748
758
`
`
749
759
`
`
750
``
`-
`
``
767
`+
`
755
784
`
`
756
785
`
`