Closed Bug 1970225 Opened 1 year ago Closed 10 months ago

[GeckoView] Multi - Get and Set Gecko Preferences

Categories

(GeckoView :: General, task)

All
Android
task

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: olivia, Assigned: olivia)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxdroid] [geckoview])

Attachments

(2 files, 1 obsolete file)

This bug is to look into add a multi preference getter and setter for GeckoView to reduce messaging on bulk operations.

For example, getGeckoPreference(List<Strings>) and similar for setting.

Blocks: 1908182
Whiteboard: [fxdroid] [geckoview]
Severity: -- → N/A
Assignee: nobody → ohall

This has changed some it needs to also have expected pref state on the setter.

This patch expands the GeckoView preference API to add an option to
get multiple preferences.

Keywords: leave-open
Pushed by ohall@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/a1cde27a58c1 https://hg.mozilla.org/integration/autoland/rev/53ff82beb3bc GeckoView Option to Get Multiple Prefs r=geckoview-reviewers,geckoview-api-reviewers,nika,owlish

This patch adds a new GeckoView API that adds a method to only set a
Gecko preference if it currently matches the previous expected preference
value.

It additionally adds an object that contains setting information.

Attachment #9495021 - Attachment description: WIP: Bug 1970225 - GeckoView Multi-Preference Setter with State Check → Bug 1970225 - GeckoView Multi-Preference Setter with State Check
Blocks: 1974800
Attachment #9495021 - Attachment is obsolete: true

This bug adds:

  • A way to set multiple Gecko preferences at once from GeckoView.
  • Introduces SetGeckoPreference as an object to hold setting information.
Pushed by ohall@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/355a71b331ab https://hg.mozilla.org/integration/autoland/rev/cf6f4bf50b97 GeckoView Multi-Preference Setter r=geckoview-reviewers,geckoview-api-reviewers,owlish,nika
Status: NEW → RESOLVED
Closed: 10 months ago
Keywords: leave-open
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: