Prevent Skins Vector from setting preferences for temporary accounts

Bug: T337874
Change-Id: I83ca625276569349abcd6622d295137c5c4ffe2c
This commit is contained in:
tsepothoabala 2023-06-07 13:46:26 +02:00 committed by Jon Robson
parent b2705c55f1
commit e5ef6f5f64
3 changed files with 17 additions and 17 deletions

28
package-lock.json generated
View file

@ -15,8 +15,8 @@
"@wikimedia/codex": "0.11.0",
"@wikimedia/codex-icons": "0.11.0",
"@wikimedia/codex-search": "0.11.0",
"@wikimedia/mw-node-qunit": "7.0.0",
"@wikimedia/types-wikimedia": "0.4.0",
"@wikimedia/mw-node-qunit": "7.1.0",
"@wikimedia/types-wikimedia": "0.4.1",
"eslint-config-wikimedia": "0.25.0",
"eslint-plugin-no-jquery": "2.7.0",
"grunt-banana-checker": "0.10.0",
@ -2504,9 +2504,9 @@
}
},
"node_modules/@wikimedia/mw-node-qunit": {
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/@wikimedia/mw-node-qunit/-/mw-node-qunit-7.0.0.tgz",
"integrity": "sha512-EJncCjJVxfiZVdlFMs0RWX3Xz7ol/wXH09Yd4Kz7T3fDJ1dEzTlTqI7YODeZx6OM6ov+7cm1EiBonMo8tA+ujQ==",
"version": "7.1.0",
"resolved": "https://registry.npmjs.org/@wikimedia/mw-node-qunit/-/mw-node-qunit-7.1.0.tgz",
"integrity": "sha512-1tkM5ipfEcPpChyW+Q7yIHN9F12lbjQeqRQdipnBzaQab0tlrl7+o2DjWVJ07KtABMSJpbOVpUL4p6UTDKjLvw==",
"dev": true,
"dependencies": {
"glob": "7.2.0",
@ -2532,9 +2532,9 @@
}
},
"node_modules/@wikimedia/types-wikimedia": {
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/@wikimedia/types-wikimedia/-/types-wikimedia-0.4.0.tgz",
"integrity": "sha512-yFHc/cWCqF6m4Tg9xZEW8f+gUYPBGkGgSza2IaXf8B58K/Rv0nWpMjcUjx7bJX3qTbbnbccCfi+OBNie1KAZxA==",
"version": "0.4.1",
"resolved": "https://registry.npmjs.org/@wikimedia/types-wikimedia/-/types-wikimedia-0.4.1.tgz",
"integrity": "sha512-RJUZXQNo+z7zBjcRSsVRR5GH2/R8/aSJc9Vo/ntnTzr8v1TjUlM3Dh4sP6XQODYKm/0HQn+hln3bWyeU6YTyRw==",
"dev": true
},
"node_modules/abab": {
@ -15065,9 +15065,9 @@
"requires": {}
},
"@wikimedia/mw-node-qunit": {
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/@wikimedia/mw-node-qunit/-/mw-node-qunit-7.0.0.tgz",
"integrity": "sha512-EJncCjJVxfiZVdlFMs0RWX3Xz7ol/wXH09Yd4Kz7T3fDJ1dEzTlTqI7YODeZx6OM6ov+7cm1EiBonMo8tA+ujQ==",
"version": "7.1.0",
"resolved": "https://registry.npmjs.org/@wikimedia/mw-node-qunit/-/mw-node-qunit-7.1.0.tgz",
"integrity": "sha512-1tkM5ipfEcPpChyW+Q7yIHN9F12lbjQeqRQdipnBzaQab0tlrl7+o2DjWVJ07KtABMSJpbOVpUL4p6UTDKjLvw==",
"dev": true,
"requires": {
"glob": "7.2.0",
@ -15089,9 +15089,9 @@
}
},
"@wikimedia/types-wikimedia": {
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/@wikimedia/types-wikimedia/-/types-wikimedia-0.4.0.tgz",
"integrity": "sha512-yFHc/cWCqF6m4Tg9xZEW8f+gUYPBGkGgSza2IaXf8B58K/Rv0nWpMjcUjx7bJX3qTbbnbccCfi+OBNie1KAZxA==",
"version": "0.4.1",
"resolved": "https://registry.npmjs.org/@wikimedia/types-wikimedia/-/types-wikimedia-0.4.1.tgz",
"integrity": "sha512-RJUZXQNo+z7zBjcRSsVRR5GH2/R8/aSJc9Vo/ntnTzr8v1TjUlM3Dh4sP6XQODYKm/0HQn+hln3bWyeU6YTyRw==",
"dev": true
},
"abab": {

View file

@ -28,8 +28,8 @@
"@wikimedia/codex": "0.11.0",
"@wikimedia/codex-icons": "0.11.0",
"@wikimedia/codex-search": "0.11.0",
"@wikimedia/mw-node-qunit": "7.0.0",
"@wikimedia/types-wikimedia": "0.4.0",
"@wikimedia/mw-node-qunit": "7.1.0",
"@wikimedia/types-wikimedia": "0.4.1",
"eslint-config-wikimedia": "0.25.0",
"eslint-plugin-no-jquery": "2.7.0",
"grunt-banana-checker": "0.10.0",

View file

@ -10,7 +10,7 @@ const debounce = require( /** @type {string} */ ( 'mediawiki.util' ) ).debounce;
* @param {boolean} enabled
*/
function save( feature, enabled ) {
if ( mw.user.isAnon() ) {
if ( !mw.user.isNamed() ) {
switch ( feature ) {
case 'limited-width':
if ( enabled ) {