mediawiki-extensions-Visual.../modules/ve-mw/preinit
Bartosz Dziewoński b91c8647fe Ignore user prefs for enabling/disabling VE which are not settable
We have two preferences used for enabling/disabling VE:
'visualeditor-enable' and 'visualeditor-betatempdisable'.
(And 'visualeditor-autodisable', which sometimes overrides
them both, but it's not relevant here.)

The user can only set 'visualeditor-enable' when VE is Beta Feature,
and they can only set 'visualeditor-betatempdisable' when it is not.

However, when deciding if VE should be loaded, we always checked both
of the preferences. This gives incorrect results when the preference
that is not supposed to be settable actually exists, due to being set
in GlobalPreferences on another wiki where it's settable.

A similar issue could occur if VE configuration is changed from Beta
Feature to a normal preference (or the other way around), and the
preference values for the previous configuration still persist.

Bug: T271434
Change-Id: I7399b3c516f762429050a662ac85d1d392392323
2021-02-05 12:40:51 +00:00
..
styles Remove upstreamed clearfix 2020-12-02 21:21:49 +00:00
.eslintrc.json Replace $.when with ve.promiseAll 2019-11-04 22:06:54 +08:00
ve.init.mw.ArticleTargetLoader.js ArticleTargetLoader: Allow customizing 'editintro' parameter 2020-12-17 02:01:09 +01:00
ve.init.mw.ArticleTargetSaver.js Use Array.prototype.forEach.call in copyAttributes 2020-08-18 23:17:03 +01:00
ve.init.mw.DesktopArticleTarget.init.js Ignore user prefs for enabling/disabling VE which are not settable 2021-02-05 12:40:51 +00:00
ve.init.mw.DiffLoader.js Move restbaseId stripping to ve.utils.parsoid 2020-06-10 20:31:16 +01:00
ve.init.mw.DiffPage.init.js Add .mw-parser-output to historical visual diffs 2020-02-11 21:12:19 +01:00
ve.init.mw.ProgressBarWidget.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.init.mw.TempWikitextEditorWidget.js eslint: Enable the mediawiki/class-doc rule and make pass 2020-04-17 22:59:11 +01:00
ve.init.MWEditingTabDialog.js build: Update eslint-config-wikimedia to 0.17.0 2020-08-18 13:16:49 +01:00
ve.init.MWEditModeTool.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.init.MWVESwitchConfirmDialog.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.init.MWVESwitchPopupWidget.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.init.MWWelcomeDialog.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.utils.parsoid.js Move restbaseId stripping to ve.utils.parsoid 2020-06-10 20:31:16 +01:00