mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-30 17:14:42 +00:00
VisualEditorDataModule: Remove origin restriction
"ORIGIN_USER_SITEWIDE" indicates "sitewide module generated from user-editable files, like MediaWiki:Common.js". In this case the JavaScript generated by this module is not directly editably by wiki users. It includes localisation messages editable by users, but that is considered safe because we correctly escape them when including them in the JavaScript code. Without this change, VisualEditor would no longer load in safe mode (T185303) because this module would be missing. Bug: T185303 Change-Id: I6d097ccbf1dc2462843219adcf96bf8313e30289
This commit is contained in:
parent
1bd430c9d1
commit
4efc2f876d
|
@ -12,7 +12,6 @@ class VisualEditorDataModule extends ResourceLoaderModule {
|
|||
|
||||
/* Protected Members */
|
||||
|
||||
protected $origin = self::ORIGIN_USER_SITEWIDE;
|
||||
protected $targets = [ 'desktop', 'mobile' ];
|
||||
|
||||
/* Methods */
|
||||
|
|
Loading…
Reference in a new issue