oxide::qt::LocationProvider should be paused when the application becomes inactive
Bug #1402994 reported by
Olivier Tilloy
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
Fix Released
|
High
|
Unassigned | ||
Oxide |
Invalid
|
High
|
Alexandre Abreu | ||
qtubuntu-sensors (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
If a WebView is used to browse to a page that requests continuous position updates, the LocationProvider should be paused when the application goes in the background, and resumed when it gets back in the foreground.
This could be implemented by making oxide::
Related branches
lp://staging/~abreu-alexandre/oxide/location-provider-app-lifecycle
Rejected
for merging
into
lp://staging/oxide/1.4
- Alexandre Abreu (community): Disapprove
- Chris Coulson: Needs Fixing
-
Diff: 53 lines (+21/-0)1 file modifiedqt/core/browser/oxide_qt_location_provider.cc (+21/-0)
lp://staging/~ricmm/qtubuntu-sensors/browser-location-vivid
- Ricardo Salveti (community): Approve
- PS Jenkins bot: Approve (continuous-integration)
-
Diff: 102 lines (+13/-12)3 files modifiedplugins/position/CMakeLists.txt (+5/-2)
plugins/position/core_geo_position_info_source.cpp (+7/-8)
plugins/position/core_geo_position_info_source.h (+1/-2)
Changed in oxide: | |
assignee: | nobody → Olivier Tilloy (osomon) |
Changed in oxide: | |
status: | New → In Progress |
Changed in oxide: | |
assignee: | Olivier Tilloy (osomon) → Alexandre Abreu (abreu-alexandre) |
importance: | Undecided → High |
Changed in canonical-devices-system-image: | |
status: | New → In Progress |
importance: | Undecided → High |
milestone: | none → ww13-ota |
tags: | added: battery |
Changed in canonical-devices-system-image: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
It turns out LocationProvider can’t safely be made a BrowserPlatform IntegrationObse rver, as it’s owned by the geolocation thread (we’d need to guarantee it stays alive during the state change, which implies it has to be reference counted, which means the whole ownership model in chromium has to be changed).