Closed Bug 1308600 Opened 3 years ago Closed 3 years ago

Remove ServiceReady, GetCurrentPositionReady, and WatchPositionReady methods from Geolocation


(Core :: DOM: Geolocation, defect)

Not set



Tracking Status
firefox52 --- fixed


(Reporter: jdm, Assigned: adamtomasv, Mentored)


(Keywords: good-first-bug, Whiteboard: [lang=c++])


(1 file, 1 obsolete file)

Geolocation::ServiceReady is no longer used by any code, so we should remove it. That means that GetCurrentPositionReady and WatchPositionReady only have one caller each, so we should merge each of those methods with GetCurrentPosition and WatchPosition. This will simplify the code in the file and make it easier to reason about.

Code: dom/geolocation/Geolocation.cpp, dom/geolocation/Geolocation.h

No need to run any tests; if the changes compile, then it's good enough to submit a patch for review.
i a beginner and unable to find code , could you please specify where is dom/geolocation directory
Attached patch for the suggested changes.
Assignee: nobody → adamtomasv
Comment on attachment 8799149 [details] [diff] [review]
Removed ServiceReady(), Merged *Ready methods into GetCurrentPosition, WatchPosition

Review of attachment 8799149 [details] [diff] [review]:

This looks great! We'll need to add a commit message like "Bug 1308600 - Remove unused ServiceReady method from Geolocation. r=jdm" to the patch as well.
Attachment #8799149 - Flags: review+
Hi Josh, I added the commit message (from instructions here:
Attachment #8799149 - Attachment is obsolete: true
Attachment #8799537 - Flags: review+
Thanks! Do you have access to our tryserver ( If not, please apply for level 1 access by following the steps at ; I will vouch for you. This will allow you to ensure that your changes build on the major supported platforms (windows, linux, mac).
Thanks for help, Josh. I am continuing with the ticket, I (hopefully) got a correct setup of the accounts to be able to push to try. This will be my next step.
I let the tryserver to build with my patch.
Josh, what should be the next step?
Flags: needinfo?(josh)
Looks good! Go ahead and add the `checkin-needed` keyword to the Keywords field in this bug, and then the patch will be automatically merged for you.
Flags: needinfo?(josh)
Keywords: checkin-needed
Pushed by
Remove unused ServiceReady method from Geolocation. r=jdm
Keywords: checkin-needed
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
You need to log in before you can comment on or make changes to this bug.