Open Bug 1437521 Opened 6 years ago Updated 2 years ago

Only the last listener is triggered when multiple listeners are added to navigator.geolocation.getCurrentPosition

Categories

(Core :: DOM: Device Interfaces, defect, P3)

58 Branch
defect

Tracking

()

UNCONFIRMED

People

(Reporter: vishvesh.com, Unassigned)

Details

Attachments

(1 file)

Attached file location.zip
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.119 Safari/537.36 OPR/51.0.2830.26

Steps to reproduce:

Add two or more listeners for current location using "navigator.geolocation.getCurrentPosition" API. Only the last added listener is triggered.

Please refer this link to reproduce the issue or use the attached zip file.

https://jsfiddle.net/kb04n9ms/


Actual results:

Only the last added listener is triggered.


Expected results:

Both the listeners must be triggered. In case of Safari and Chrome, both the listeners are triggered.

Tested this on multiple machines and this behavior is consistent on Firefox.
Summary: Only the last listener is triggered when multiple listeners to navigator.geolocation.getCurrentPosition are added → Only the last listener is triggered when multiple listeners are added to navigator.geolocation.getCurrentPosition
Component: Untriaged → Event Handling
Product: Firefox → Core
Component: Event Handling → DOM: Device Interfaces
Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: