Speaking to @saschanaz, they suggested that watchPosition() and getCurrentPosition() should invoke the error callbacks if the document is not fully active.
This makes sense in particular for promise-wrapped code, which would otherwise get stuck.
// current spec, this doesn't proceed in the odd case where the geo
// object is from a non-fully active doc.
await new Promise((res, rej) => geo.getCurrentPosition(res, rej));
Speaking to @saschanaz, they suggested that
watchPosition()
andgetCurrentPosition()
should invoke the error callbacks if the document is not fully active.This makes sense in particular for promise-wrapped code, which would otherwise get stuck.