Open Bug 1930828 Opened 22 days ago Updated 8 days ago

Cannot change RemoteSettingsExperimentLoader collection after startup

Categories

(Firefox :: Nimbus Desktop Client, defect, P3)

defect

Tracking

()

People

(Reporter: beth, Unassigned)

Details

The RemoteSettingsExperimentLoader lets you specify the collection it should fetch recipes from via the messaging-system.rsexperimentloader.collection_id pref. However, this has never let you change the collection without restarting the browser because the remote settings client is defined using ChromeUtils.defineLazyGetter (previous version before prefFlips: here, this was not a regression), which replaces the getter with the result of the callback after the first call.

Instead, this should be a regular lazy getter that returns RemoteSettings(collection). We do not have to worry about the collection being garbage collected because it is kept alive by remote-settings.sys.mjs

The severity field is not set for this bug.
:beth, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(brennie)
Severity: -- → S4
Flags: needinfo?(brennie)
You need to log in before you can comment on or make changes to this bug.