From 5d6d0ba56ae7cd106e17d85a9290550f4f2cca9d Mon Sep 17 00:00:00 2001 From: MusikAnimal Date: Wed, 13 Nov 2024 02:04:03 -0500 Subject: [PATCH] extension.json: set default user option for usecodemirror-colorblind This preference doesn't have a default value, meaning any and all values are saved when it should only save if it doesn't match the default. This causes bloat to the user_properties table (see T286270 for the same situation that happened with the 'usecodemirror' preference). This patch sets a default value so that only values different than it are stored. Bug: T286270 Change-Id: Ie9fc1f4265a6f6df2bc2cc4e99ad4294a76e2769 --- extension.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extension.json b/extension.json index c2eff504..3d2ba324 100644 --- a/extension.json +++ b/extension.json @@ -333,7 +333,8 @@ }, "ForeignResourcesDir": "resources/lib", "DefaultUserOptions": { - "usecodemirror": 0 + "usecodemirror": 0, + "usecodemirror-colorblind": 0 }, "QUnitTestModule": { "localBasePath": "resources/legacy/mode/mediawiki/tests",