Closed Bug 1063572 Opened 10 years ago Closed 2 years ago

Create Geoclue2 Location provider

Categories

(Core :: DOM: Geolocation, enhancement)

All
Linux
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
102 Branch
Tracking Status
firefox102 --- fixed

People

(Reporter: garvan, Assigned: mail)

References

()

Details

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #485472 +++ Geoclue2 is a D-Bus service that provides geolocation, and uses MLS for network location: https://developer.gnome.org/platform-overview/stable/tech-geoclue2.html.en As D-Bus service, the provider can be queried at runtime, and if not present, fallback to the default provider.
Depends on: 485472

Marking inactive due to the length of inactivity here, feel free to re-open if you wish this to remain active.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → INACTIVE

Doesn't look like I have permission to re-open, but I'd love to see this or some alternatively to allow integrating with any system geolocation methods I have set up, such as a Bluetooth GPS.

I do have a Geoclue2 geolocation provider for gecko-dev right now and have been using it in Firefox for a few weeks now.

This provider is purely (G)D-Bus based, so it doesn't need any additional external library as a dependency.
I envision it as a system-wide geolocation source, much like the ones that Firefox already uses on Windows, Mac OS or Android platforms.

Unfortunately, it's unlikely that I will be able to find enough time to go through a formal review process with this patch before this year winter holiday break.

Add a Geoclue (version 2) geolocation provider.

This way Firefox can make use of multiple location sources present in the
system, from GNSS provided by a cellular modem or the current network to
location based on visible WiFi networks and 3G tower data, all while
sharing them with other applications.

This is a pure D-Bus-based implementation using a proper state machine, it
does not require any additional dependencies.

Assignee: nobody → mail
Status: RESOLVED → REOPENED
Resolution: INACTIVE → ---

By the way, WebKitGTK got Geoclue2 support already.

How does this compare to the portal service that was recently added for Flatpak and so on? Do we really need both?

(In reply to Emilio Cobos Álvarez (:emilio) from comment #7)

How does this compare to the portal service that was recently added for Flatpak and so on? Do we really need both?

Portal service is a limited API for Flatpak containers that internally forwards to Geoclue. Without Flatpak runtime that API is not available.

In contrast to the portal provider this is a complete, native Geoclue API implementation on a state machine (for handling corner cases, etc.) for use in a standalone Firefox.

Sylvestre, do you know why reviewbot didn't complain about the static analysis issue in the phab revision? I'm pretty sure it used to do that in the past.

Flags: needinfo?(emilio) → needinfo?(sledru)

Marco and Andi should know better now

Flags: needinfo?(sledru)
Flags: needinfo?(mcastelluccio)
Flags: needinfo?(bpostelnicu)
Status: REOPENED → RESOLVED
Closed: 5 years ago2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 102 Branch
Blocks: 1769664

There is an intermittent issue with code-review events, and it doesn't notify Phabricator, we are tracking this in github.

Flags: needinfo?(mcastelluccio)
Flags: needinfo?(bpostelnicu)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: