Page MenuHomePhabricator

Prevent Popups from setting preferences for temporary accounts
Closed, ResolvedPublic2 Estimated Story Points

Description

Following T335971, it appears the extension is saving preferences for temporary users.
Update the code to treat temporary users like anon users.

Wherever these do something different based on whether a user is anonymous or registered, they may need updating (including comments).

Tests and comments should also be updated.
Notes
To help with searching:

In PHP preferences are saved via UserOptionsManager::saveOptions
In JS preferences are saved via methods defined on options.js: https://gerrit.wikimedia.org/g/mediawiki/core/+/809d4c9a9dd2cff6321cdae7a41e75b6c362cbbd/resources/src/mediawiki.api/options.js
Code Search: https://codesearch.wmcloud.org/deployed/?q=UserOptionsManager

Event Timeline

(Please add codebase project tags to tasks when possible, so such tasks can be found when looking for open tasks related to that codebase - thanks!)

AGueyte updated the task description. (Show Details)
AGueyte set the point value for this task to 2.

Change 928557 had a related patch set uploaded (by AGueyte; author: AGueyte):

[mediawiki/extensions/Popups@master] Prevent Enabling Beta Preferences for temp users

https://gerrit.wikimedia.org/r/928557

Hey @AGueyte there seems to be overlap with this task and the one I'm currently working on in T330517 so let's chat before merging any code here!

Hey @AGueyte there seems to be overlap with this task and the one I'm currently working on in T330517 so let's chat before merging any code here!

Noted, I'll add a note on the patch for visibility.
Thanks for this update!

Change 928557 merged by jenkins-bot:

[mediawiki/extensions/Popups@master] Prevent Enabling Beta Preferences for temp users

https://gerrit.wikimedia.org/r/928557