Take a look at this code:
navigator.geolocation.getCurrentPosition(function(){
console.log("a");
});
navigator.geolocation.getCurrentPosition(function(){
console.log("b");
});
https://jsfiddle.net/DerekL/sxb3j2bv/
After the permission is granted by the user, I would expect the console to have logged
> "a"
> "b"
and indeed this is what happened in Chrome. However on Firefox, for some reason it only fires once and only logs "b"
:
> "b"
What can I do about it? Is that a bug?