Closed Bug 1057969 Opened 10 years ago Closed 5 years ago

SendLocation starts twice after geolocation service get position call

Categories

(Core :: DOM: Geolocation, defect)

defect
Not set
normal

Tracking

()

RESOLVED INACTIVE

People

(Reporter: daniel.marecik, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0 (Beta/Release)
Build ID: 20140716183446

Steps to reproduce:

Get position from geolocation service.


Actual results:

The nsGeolocationRequest::SendPosition starts twice:
- the first call doesn't have Principal reference (mLocator->GetPrincipal())
- the second call has Principal reference

The first call returns correct position.




Expected results:

SendPosition should start only once and should have Principal reference.

The Principal is required to recognize which application calls the service.
Hi, which Firefox OS release was tested against with?

Do you have steps to reproduce or test page? From the description it's not clear what you were trying to achieve.
Component: General → Geolocation
Product: Firefox OS → Core
Attached file Geolocation test app
(In reply to Kan-Ru Chen [:kanru] from comment #1)
> Hi, which Firefox OS release was tested against with?
> 
> Do you have steps to reproduce or test page? From the description it's not
> clear what you were trying to achieve.

I used navigator.geolocation.getCurrentPosition(success, error, options); from JS.
Summary: SendPosition starts twice after geolocation service get position call → SendLocation starts twice after geolocation service get position call

Marking inactive due to the age, and the assumption this is Firefox OS specific.

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: