gecko-dev/dom/geolocation
Marcos Cáceres 131b82f896 Bug 1653549 - don't sent a location if document is hidden r=edgar
When the document is hidden from view, silently drop position updates on the floor. This aligns, more or less, with Chrome and Safari.

The situation with "not fully active" is a bit more quirky, because non-fully active documents are generally hidden (e.g., `remove()`ing and iframe).

Regardless, I think this gives us the desired behavior and covers the main privacy case: background tabs should not receive position updates.

Differential Revision: https://phabricator.services.mozilla.com/D109279
2021-07-19 01:20:55 +00:00
..