← back to v157 · approximate-geolocation
conformance · v157
v157 · approximate-geolocation — conformance probe
8 assertions drawn from the spec. Each is a single contract the spec text makes. Pass/fail reflects what this browser executed; blocked means the contract was not run because it needs user mediation, hardware, or another unavailable precondition. Open the page in Chrome stable / canary / Firefox / Safari to compare.
0
pass
0
fail
0
blocked
8
total
| id | contract | kind | verdict | detail |
|---|---|---|---|---|
geolocation-exposed |
navigator.geolocation is exposed, which every part of this feature builds on. spec ↗ | exists | … | |
getcurrentposition-callable |
navigator.geolocation.getCurrentPosition is a function. spec ↗ | typeof | … | |
watchposition-callable |
navigator.geolocation.watchPosition is a function. spec ↗ | typeof | … | |
positionoptions-reads-accuracymode |
getCurrentPosition reads the accuracyMode member off the PositionOptions dictionary. A getter on the member fires only when the implementation looks for it, so this distinguishes a shipped option from one that is silently dropped, without needing a position or a permission grant. spec ↗ | script | … | |
accuracymode-precise-is-default |
Omitting accuracyMode is equivalent to requesting "precise", so existing getCurrentPosition calls keep their behaviour. Verified by reading the member off a dictionary that supplies no value: the implementation must not require it. spec ↗ | script | … | |
invalid-accuracymode-rejected |
accuracyMode is an enum of "precise" and "approximate". A value outside the enum must make the call throw a TypeError rather than being treated as one of the valid modes. spec ↗ | throws | … | |
coordinates-expose-accuracy-radius |
GeolocationCoordinates exposes an accuracy radius in metres, which is what a site reads to tell a coarse fix from a fine one. spec ↗ | script | … | |
geolocation-permission-queryable |
The geolocation permission is queryable, so a page can show its state without triggering a prompt. spec ↗ | script | … |