Page MenuHomePhabricator

Prevent Skins Vector 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.

https://codesearch.wmcloud.org/deployed/?q=UserOptionsManager#mediawiki/skins/Vector

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

Event Timeline

Change 928010 had a related patch set uploaded (by TsepoThoabala; author: TsepoThoabala):

[mediawiki/skins/Vector@master] Prevent Skins Vector from setting preferences for temporary accounts

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

AGueyte changed the task status from Open to In Progress.Jun 7 2023, 12:19 PM

Change 928010 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Prevent Skins Vector from setting preferences for temporary accounts

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