Closed Bug 2064958 Opened 3 months ago Closed 3 months ago

Use network:link-status-changed for network geolocation cache invalidation

Categories

(Toolkit :: Geolocation Provider, task)

task

Tracking

()

RESOLVED DUPLICATE of bug 2060572

People

(Reporter: handyman, Unassigned)

Details

This is an AI-generated description.


Revive the obsoleted network:link-status-changed cache invalidation.

Chromium does exactly this, including the placement: PositionCacheImpl (services/device/geolocation) is itself a net::NetworkChangeNotifier::NetworkChangeObserver with an OnNetworkChanged override, so the invalidation sits on the cache and not on the location provider, which observes nothing. Chromium does not rely on scan polling for this - polling covers movement, the network-change observer covers a position that became wrong without the device moving. The implementation already exists as obsoleted attachment 9603235 [details] on bug 2048118, so a new bug can simply re-land that half. Correctness fix for §7, and nearly free: cost is one request per network change per client, because the dense event stream repopulates the cache immediately. Those requests are also required: a GeoIP fix is a property of the public IP, so after a link change the cached position is simply wrong. Consider invalidating on a wifi AP set that no longer overlaps, for the same reason.

Status: NEW → RESOLVED
Closed: 3 months ago
Duplicate of bug: 2060572
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.