-
Notifications
You must be signed in to change notification settings - Fork 254
Bug 2003370 - Use and react to Gecko preferences stored values #7157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
b5a826e to
ba07d8d
Compare
|
Hey @freshstrangemusic and @jeddai, just leaving a message that part 2 to use the stored values is up because I can't set reviewers! The observer part 3 will be in bug 2006095. |
|
I didn't add anything in |
The gecko side has to handle the pref resetting. Because we're unenrolling we get to throw out all of our state regarding those prefs and original values. |
Actually, I think we need to tell Gecko to restore all the prefs except the one that changed. I keep forgetting which sides have what responsibilities. |
be11f77 to
1bff3b6
Compare
Updated, thanks! Round 1 comments should now be addressed on this revision |
This patch adds functionality to use the new PreviousGeckoPrefState.
It adds:
* `set_gecko_prefs_original_values` for external handling of setting prefs back to original values
* Mechanisms to return to a previous states when:
* `on_experiment_updated`
* Certain situations and as determined in will_pref_experiment_change
* `on_experiment_ended`
* `on_opt_out`
* `unenroll_for_gecko_pref`
This patch adds functionality to use the new PreviousGeckoPrefState.
It adds:
set_gecko_prefs_original_valuesfor external handling of setting prefs back to original valueson_experiment_updatedon_experiment_endedon_opt_outunenroll_for_gecko_prefPull Request checklist
[ci full]to the PR title.