With [[mw:API:Options]] it is now possible for gadgets/user scripts/etc. to set their own custom options. But there is one drawback: Whenever the user changes his settings on Special:Preferences, those custom options are removed.
Steps to reproduce:
- Visit [[Special:APISandbox]], get a token to change your options and then use action=options with change "gadget-foo-options-bar=baz".
- Verify that the custom option is set by inspecting mw.user.options.
- Visit [[Special:Preferences]] and click save.
- Repeat step 2.
Desired result: The custom option is still present.
Actual result: The custom option doesn't exist any more.
Version: 1.21.x
Severity: enhancement