diff --git a/dom/geolocation/Geolocation.cpp b/dom/geolocation/Geolocation.cpp index fda07886e36d..763192a50cf8 100644 --- a/dom/geolocation/Geolocation.cpp +++ b/dom/geolocation/Geolocation.cpp @@ -862,18 +862,6 @@ Geolocation::Update(nsIDOMGeoPosition* aSomewhere) { return NS_OK; } - // Don't update position if window is not fully active or the document is - // hidden. We keep the pending callaback and watchers waiting for the next - // update. - nsCOMPtr window = do_QueryReferent(this->GetOwner()); - if (window) { - nsCOMPtr document = window->GetDoc(); - bool isHidden = document && document->Hidden(); - if (isHidden || !window->IsFullyActive()) { - return NS_OK; - } - } - if (aSomewhere) { nsCOMPtr coords; aSomewhere->GetCoords(getter_AddRefs(coords)); diff --git a/dom/tests/mochitest/geolocation/mochitest.ini b/dom/tests/mochitest/geolocation/mochitest.ini index 69bd15e34d0a..3eb7a813ada9 100644 --- a/dom/tests/mochitest/geolocation/mochitest.ini +++ b/dom/tests/mochitest/geolocation/mochitest.ini @@ -6,7 +6,6 @@ support-files = geolocation_common.js network_geolocation.sjs windowTest.html - popup.html prefs = dom.security.featurePolicy.header.enabled=true dom.security.featurePolicy.webidl.enabled=true @@ -15,11 +14,8 @@ prefs = skip-if = xorigin # Hangs [test_allowWatch.html] skip-if = xorigin # Hangs -[test_hidden.html] -skip-if = xorigin # Hangs -support-files = popup.html [test_cachedPosition.html] -fail-if = xorigin +fail-if = xorigin [test_cancelCurrent.html] [test_cancelWatch.html] [test_clearWatch.html] diff --git a/dom/tests/mochitest/geolocation/popup.html b/dom/tests/mochitest/geolocation/popup.html deleted file mode 100644 index b286f16ff3a1..000000000000 --- a/dom/tests/mochitest/geolocation/popup.html +++ /dev/null @@ -1,19 +0,0 @@ - - - Simple access of geolocation - - - - - - - -

Just a support file

- - diff --git a/dom/tests/mochitest/geolocation/test_hidden.html b/dom/tests/mochitest/geolocation/test_hidden.html deleted file mode 100644 index 25f7f80d43e6..000000000000 --- a/dom/tests/mochitest/geolocation/test_hidden.html +++ /dev/null @@ -1,110 +0,0 @@ - - - - -Test that geolocation position can't be gotten when document is hidden - - - - -Mozilla Bug 1653549 -

- -
-
-
-
- - -