Skip to content

gclue-web-source: make sure the accuracy is known before sending a submission query

Chris T requested to merge kop316/geoclue:wip/submit_check into master

As discussed in #174 (closed) , in set_location () an accuracy that is GCLUE_LOCATION_ACCURACY_UNKNOWN is evaluated to -1 and therefore always sets the location. As a consequence, if submit-data is on, that same location will also be submitted to Mozilla (since -1 also is below SUBMISSION_ACCURACY_THRESHOLD), which I think is undesirable.

This adds a check to the submission query to make sure the accuracy is known before submitting a query.

Merge request reports