mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 08:10:35 +00:00
756572ed8a
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 |
||
---|---|---|
.. | ||
ve-mw | ||
ve-mw-collab |