Add GV API for battery settings (power-saving mode)
Categories
(GeckoView :: General, enhancement, P3)
Tracking
(firefox-esr60 wontfix, firefox65 wontfix, firefox66 wontfix, firefox67 wontfix, firefox68 affected)
People
(Reporter: cpeterson, Unassigned)
References
()
Details
(Whiteboard: [geckoview:fenix:p3])
Fenix will have a power-saving mode that users can enable:
https://github.com/mozilla-mobile/fenix/issues/240
Fenix needs a GV API to tell Gecko when to enter power-saving mode. Gecko features that have performance/power tradeoffs can then check this one flag to decide when to prioritize power savings over performance.
[geckoview:fenix:m3] so the GV API is ready when Fenix plans to implement the power-saving setting in Fenix M4.
Comment 1•5 years ago
|
||
Note that in those mocks the "battery saver" can be turned on/off on a per-site basis:
https://github.com/mozilla-mobile/fenix/issues/191#issuecomment-460509170
Reporter | ||
Comment 2•5 years ago
|
||
(In reply to Sebastian Kaspari (:sebastian; :pocmo) from comment #1)
Note that in those mocks the "battery saver" can be turned on/off on a per-site basis:
https://github.com/mozilla-mobile/fenix/issues/191#issuecomment-460509170
That would certainly complicate Gecko's implementation. If we treat "battery saver" like a site permission, then core Gecko would need to be able to query the app for the current site's "battery saver" mode. For example, Gecko's video decoder might need to know which site a video is associated with and then be able to call out through a GV API to the app if we wanted to implement connect the battery saver to Media Capabilities's smooth
and powerEfficient
flags, as Nils suggested here:
https://github.com/mozilla-mobile/fenix/issues/254#issuecomment-460830253
Reporter | ||
Comment 3•5 years ago
|
||
Barbara, is configuring battery saver settings for individual sites on the Fenix roadmap? Bram's UX mockup showed per-site battery saving settings, but I don't know if that is an intended feature requirement or just a random example for the site permissions UI.
https://github.com/mozilla-mobile/fenix/issues/191#issuecomment-460509170
Per-site battery saving settings would be complicated for Gecko to support and would reduce the total battery saving benefits.
Reporter | ||
Comment 4•5 years ago
|
||
Fenix plans to implement power-saving features in M4, so GV should provide the API in M3.
Reporter | ||
Updated•5 years ago
|
Reporter | ||
Comment 5•5 years ago
|
||
I'm pushing this bug from Fenix M3 to M4 until we have more details from the Fenix team as to what they want Gecko battery saving mode to actually do.
Reporter | ||
Comment 6•5 years ago
|
||
Fenix's Battery Saver feature has been deferred to post-MVP: https://github.com/mozilla-mobile/fenix/issues/240
Reporter | ||
Comment 7•5 years ago
|
||
I'm editing a bunch of GeckoView bugs. If you'd like to filter all this bugmail, search and destroy emails containing this UUID:
e88a5094-0fc0-4b7c-b7c5-aef00a11dbc9
Updated•2 years ago
|
Comment hidden (spam) |
Description
•