mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 00:00:49 +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 |
||
---|---|---|
.. | ||
styles | ||
targets | ||
ve.init.mw.ApiResponseCache.js | ||
ve.init.mw.ArticleTarget.js | ||
ve.init.mw.ArticleTargetEvents.js | ||
ve.init.mw.ArticleTargetLoader.js | ||
ve.init.mw.DiffLoader.js | ||
ve.init.mw.DiffPage.init.js | ||
ve.init.mw.GalleryImageInfoCache.js | ||
ve.init.mw.ImageInfoCache.js | ||
ve.init.mw.js | ||
ve.init.mw.LinkCache.js | ||
ve.init.mw.Platform.init.js | ||
ve.init.mw.Platform.js | ||
ve.init.mw.ProgressBarWidget.js | ||
ve.init.mw.SaveErrorHandler.js | ||
ve.init.mw.Target.js | ||
ve.init.mw.TempWikitextEditorWidget.js | ||
ve.init.mw.trackSubscriber.js | ||
ve.init.mw.ViewportZoomHandler.js | ||
ve.init.MWEditingTabDialog.js | ||
ve.init.MWEditModeTool.js | ||
ve.init.MWVESwitchConfirmDialog.js | ||
ve.init.MWVESwitchPopupWidget.js | ||
ve.init.MWWelcomeDialog.js |