|
38 | 38 | };
|
39 | 39 | </script>
|
40 | 40 | </head>
|
41 |
| - <body data-cite="secure-contexts permissions-policy permissions"> |
| 41 | + <body data-cite= |
| 42 | + "secure-contexts permissions-policy permissions page-visibility-2"> |
42 | 43 | <section id="abstract">
|
43 | 44 | <p>
|
44 | 45 | The Geolocation API provides access to geographical location
|
|
118 | 119 | has received the following changes:
|
119 | 120 | </p>
|
120 | 121 | <ul>
|
| 122 | + <li>Added handling for when documents are not [=Document/fully |
| 123 | + active=]. |
| 124 | + </li> |
121 | 125 | <li>Added the [=geolocation task source=], which handles dispatching
|
122 | 126 | position updates and errors.
|
123 | 127 | </li>
|
@@ -591,6 +595,10 @@ <h2>
|
591 | 595 | optionally (and only if |repeats| is true) a |previousId:long|.
|
592 | 596 | </p>
|
593 | 597 | <ol class="algorithm">
|
| 598 | + <li>If the [=current settings object=]'s [=associated `Document`=] is |
| 599 | + not [=Document/fully active=], return an [=implementation-defined=] |
| 600 | + {{long}}. |
| 601 | + </li> |
594 | 602 | <li>Let |watchTasks:Set| be [=this=]'s
|
595 | 603 | {{Geolocation/[[watchTasks]]}}.
|
596 | 604 | </li>
|
@@ -621,15 +629,17 @@ <h2>
|
621 | 629 | </li>
|
622 | 630 | </ol>
|
623 | 631 | </li>
|
624 |
| - <li data-cite="page-visibility-2">Wait for document to become |
625 |
| - visible. |
| 632 | + <li>Wait for document to become visible. |
626 | 633 | <ol>
|
627 | 634 | <li>Let |document:Document| be the [=current settings
|
628 | 635 | object=]'s [=associated Document=].
|
629 | 636 | </li>
|
630 | 637 | <li>If |document:Document| is [=Document/hidden=], wait for
|
631 | 638 | the |document| to become [=Document/visible=].
|
632 | 639 | </li>
|
| 640 | + <li>Go to <a href="#wait-for-change">wait for significant |
| 641 | + change of geographic position</a>. |
| 642 | + </li> |
633 | 643 | </ol>
|
634 | 644 | </li>
|
635 | 645 | <li data-tests=
|
@@ -747,10 +757,29 @@ <h2>
|
747 | 757 | </li>
|
748 | 758 | </ol>
|
749 | 759 | </li>
|
750 |
| - <li>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 | + <li> |
| 761 | + <span id="wait-for-change">Wait for a significant change of |
| 762 | + geographic position</span>. 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 | + </li> |
| 767 | + <li>If |document| is not [=Document/fully active=] or not |
| 768 | + [=Document/visible=], go back to the previous step and again |
| 769 | + <a href="#wait-for-change">wait for significant change of |
| 770 | + geographic position</a>. |
| 771 | + <aside class="note" title= |
| 772 | + "Position updates are exclusively for fully-active visible documents"> |
| 773 | + <p> |
| 774 | + The desired effect here being that position updates are |
| 775 | + exclusively delivered to fully active documents that are |
| 776 | + visible; Otherwise the updates get silently "dropped on the |
| 777 | + floor". Only once a document again becomes fully active and |
| 778 | + visible (e.g., an [^iframe^] gets reattached to a parent |
| 779 | + document), do the position updates once again start getting |
| 780 | + delivered. |
| 781 | + </p> |
| 782 | + </aside> |
754 | 783 | </li>
|
755 | 784 | <li>If |watchTasks| [=list/contain|contains=] |watchId|, then:
|
756 | 785 | <ol>
|
|
0 commit comments