Callback with error if doc is not fully active (#97) · w3c/geolocation@de05002 (original) (raw)
`@@ -544,8 +544,12 @@
`
544
544
` method steps are:
`
545
545
`
`
546
546
`
- [=Request position=], passing |successCallback|, |errorCallback|,
`
548
``
`-
|options|, and (repeats) false.
`
``
547
`` +
- If the [=current settings object=]'s [=associated `Document`=] is
``
``
548
`+
not [=Document/fully active=], [=call back with error=]
`
``
549
`+
|errorCallback| and {{GeolocationPositionError/POSITION_UNAVAILABLE}}.
`
``
550
`+
- Otherwise, [=request position=], passing |successCallback|,
`
``
552
`+
|errorCallback|, |options|, and (repeats) false.
`
549
553
`
- Return
undefined
. - If the [=current settings object=]'s [=associated `Document`=] is
``
``
570
`+
not [=Document/fully active=]:
`
``
571
`+
- [=Call back with error=] |errorCallback| and
`
``
573
`+
{{GeolocationPositionError/POSITION_UNAVAILABLE}}.
`
``
574
`+
- Return an [=implementation-defined=] {{long}}.
`
``
576
`+
`
``
572
`+
`
``
575
`+
`
``
577
`+
`
``
578
`+
- [=Call back with error=] |errorCallback| and
- Let |watchId:long| be [=request position=], passing
- 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
`
547
``
`-
`
``
551
`+
`
550
554
``
``
551
555
`
`
`@@ -562,6 +566,16 @@
`
562
566
` method steps are:
`
563
567
`
`
564
568
`
`
``
569
`` +
`
565
579
`
`
566
580
` |successCallback|, |errorCallback|, |options|, and (repeats) true.
`
567
581
`
`
`@@ -595,10 +609,6 @@
`
595
609
` optionally (and only if |repeats| is true) a |previousId:long|.
`
596
610
`
`
597
611
`
`
598
``
`` -
`
602
612
`
`
603
613
` {{Geolocation/[[watchTasks]]}}.
`
604
614
`
`