Closed Bug 1615952 Opened 6 years ago Closed 6 years ago

constantly asks to use geolocation

Categories

(Core :: DOM: Geolocation, defect)

71 Branch
Unspecified
Android
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1561041
Webcompat Priority ?

People

(Reporter: karlcow, Unassigned)

References

()

Details

  1. with firefox preview nightly android (or rdm with Firefox desktop and mobile ua Bug 1523545 ? )
  2. go to https://www.freedom.com.au/
  3. select do not allow and remember this decision
  4. Reload the page.

expected:
page loading only

actual:
The location is requested again.

      var getLocation = function() {
        self.Latitude(0);
        self.Longitude(0);
        if (window.GeoCheckTimes < 1) {
          if (navigator.geolocation) {
            var position = navigator.geolocation.getCurrentPosition(function(
              position
            ) {
              self.Latitude(position.coords.latitude);
              self.Longitude(position.coords.longitude);
              reloadMiniCart();
            });
            reloadMiniCart();
          } else {
            reloadMiniCart();
          }
        } else {
          reloadMiniCart();
        }
      };
      getLocation();

which is called at the end of

var MiniCartViewModel = function(model, customer, bus) {
…
      getLocation();
}

And yet somehow the remember this decision has no effect.

I didn't find anything obvious in
https://bugzilla.mozilla.org/buglist.cgi?quicksearch=getCurrentPosition&list_id=15111956
but probably a duplicate somewhere.

This is not happening on desktop. It remembers the choice the user made.
When we set in a tab the remember don't allow, the tab which was in the rdm suddenly works.

But on firefox Android, there is no way to fix that.

Potential dupe of bug 1561041?

Flags: needinfo?(kdubost)

indeed thanks!

Status: NEW → RESOLVED
Closed: 6 years ago
Flags: needinfo?(kdubost)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.