Skip to content

Commit fb6221d

Browse files
authored
Remove notice about setPref not working with json variables (#586)
Bug 1887732 [1] is adding support for setPref json variables. https://bugzilla.mozilla.org/show_bug.cgi?id=1887732
1 parent c28130a commit fb6221d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/deep-dives/desktop/desktop-pref-experiments.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ As of Firefox 107, Nimbus supports experiments that set preferences on Desktop.
88
Unlike Normandy, Nimbus cannot set arbitrary preferences; instead, the
99
preferences that may be set are determined by the feature manifest.
1010

11-
Each variable in a Nimbus feature can set a single pref. Integer, string, and
12-
boolean typed variables are supported but JSON variables are not supported. If
13-
you want to set a JSON value to a pref, a string variable should be used and
14-
experiments should set the value to a JSON string.
11+
Each variable in a Nimbus feature can set a single pref of any type.
12+
13+
NB: Support for JSON variables was added in Firefox 126. The value of the pref
14+
will be `JSON.stringify(value)`.
1515

1616
## Example Feature
1717

0 commit comments

Comments
 (0)