Firefox 11 and GeoLocation denial callback

后端 未结 2 1695
鱼传尺愫
鱼传尺愫 2021-01-13 04:51

Things worked okay is Firefox 10.x but with the upgrade to Firefox 11 has thrown up a problem.

I use

navigator.geolocation.getCurrentPosition(succes         


        
2条回答
  •  轮回少年
    2021-01-13 05:10

    Actually you get the error callback in Firefox ONLY if you click Never share location.

    Because when you click Not now (or just close the popup), you can still click the location icon in address bar and allow it later.

    (tested on FF28)

    edit: here is a demo of how to detect location with special note for Firefox.

提交回复
热议问题