mediawiki-extensions-Visual.../modules/ve-mw
Bartosz Dziewoński 756572ed8a ve.init.mw.ArticleTarget: Use errorformat=html when saving
When saving fails for a reason we don't handle explicitly, the error
message will have HTML formatting and will respect any on-wiki
overridden messages, rather than being plain text generic message.

Extensions providing custom SaveErrorHandlers may need to be updated.
The only one in Gerrit that requires a fix is TitleBlacklist:
Ibeae79c95557a7af699716c9d921f34c310bee6d.

* Remove handling for errors returned in .visualeditoredit.edit.info
  rather than .errors (.error in old format). AFAIK this is only used
  by some extensions, it is probably incorrect to do (T229539) and all
  extensions I know of that do this (AbuseFilter, SpamBlacklist,
  ConfirmEdit) have custom SaveErrorHandlers.

* Remove custom error messages for 'readonly' (identical to API
  response) and for 'hookaborted' (very unhelpful and there is a
  chance that the API response is better, if the extension causing
  this error generates any error message).

* Add a silly shim for MobileFrontend integration, because we allow it
  to handle error responses, and it expects them in the old format.
  This is probably subtly wrong in many ways, but MobileFrontend code
  only uses this for logging, so it shouldn't explode. In the future
  we will hopefully change it to use errorformat=html (T228897#5366960).

Bug: T229532
Change-Id: I3b9c4fefc0869ef7999c21cef754434febd852ec
2019-08-22 00:37:15 +00:00
..
ce Remove redundant @method annotations 2019-08-21 23:33:15 +02:00
dm Remove redundant @method annotations 2019-08-21 23:33:15 +02:00
init ve.init.mw.ArticleTarget: Use errorformat=html when saving 2019-08-22 00:37:15 +00:00
tests Remove redundant @method annotations 2019-08-21 23:33:15 +02:00
themes SaveDialog: Hide options bar when empty 2019-07-16 14:28:25 +01:00
ui Remove redundant @method annotations 2019-08-21 23:33:15 +02:00
ve.MWutils.js eslint: Enable valid-jsdoc 2019-04-17 17:13:39 +01:00