Add a privacy mode.
Geoclue (in the default configuration) leaks information to the outside world. Many users do not want that leakage. Therefore, there should exist a straightforward way to stop that information leakage.
Geoclue should have a privacy mode.
In this mode, all active communication (e.g. with Mozilla Location Service) shall be disabled. It should be one setting and only one setting. That setting should be persisted. For starters, it could be a configuration file setting
[global]
privacy=true
Note that configuring to
[network-nmea]
enable=false
[3g]
enable=false
[modem-gps]
enable=true
[wifi]
enable=false
[compass]
enable=true
[static-source]
enable=false
is not enough to make Geoclue not leak information and thus emulate a privacy mode. However, such a configuration deceptively looks like it should be enough for that. Therefore, a separate privacy mode is needed.