Closed Bug 564397 Opened 15 years ago Closed 14 years ago

Geolocation never fires callbacks if user closes the prompt toolbar

Categories

(Core :: DOM: Geolocation, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: bugzilla, Unassigned)

Details

User-Agent: Opera/9.80 (Windows NT 5.1; U; en) Presto/2.2.15 Version/10.10 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 Script does this: navigator.geolocation.getCurrentPosition(function () {alert(1)},function () {alert(2)}); User is prompted for permission. Prompt toolbar has "share" "don't share" "remember" "close this message". User clicks the "close this message" button, which is equivalent to "don't share", since it means the script will never get a location. The callback functions are not executed. The script has no way to detect that the user can no longer give permission. Reproducible: Always Steps to Reproduce: 1. Prompt for geolocation 2. Click the [X] button on the prompt toolbar Actual Results: Callback function is not executed Expected Results: The errorCallback function should be executed, with code PERMISSION_DENIED.
Behavior described above also present on Mac OS (Using Firefox 4.0b3). Additionally: - CPU load shoots up when closing the request - All navigator.geolocation.getCurrentPosition(fn,fn) requests after that fail, no matter what you do (close, accept, deny)
Bramus: how are you closing the prompt?
OS: Windows XP → All
Josh: If I recall it correctly, in Firefox4b3 (on Mac), the prompt icon (which is shown next to the favicon in the URL/address bar) would disappear when focusing an other element of the UI. Could also be that the dialog had a "close" button on it ... don't remember exactly as I've upgraded to Firefox4b4 by now. I see that in Firefox4b4 this has been fixed and that the symptoms I described above are no long present. Regards, Bram.
no, i do not think the expected result is correct. closing the prompt with X doesn't mean that you made a decision to deny. In FF4, there isn't a X any longer for the notification. You can ignore the new prompt, and if you do, the page will not get any notification... which is fine.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.