mediawiki-extensions-Visual.../modules/ve-mw/init
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
..
styles MobileArticleTarget: Tweak styling for editor switcher 2019-08-08 19:47:14 +02:00
targets ve.init.mw.ArticleTarget: Use errorformat=html when saving 2019-08-22 00:37:15 +00:00
ve.init.mw.ApiResponseCache.js Remove redundant @method annotations 2019-08-21 23:33:15 +02:00
ve.init.mw.ArticleTarget.js ve.init.mw.ArticleTarget: Use errorformat=html when saving 2019-08-22 00:37:15 +00:00
ve.init.mw.ArticleTargetEvents.js Remove redundant @method annotations 2019-08-21 23:33:15 +02:00
ve.init.mw.ArticleTargetLoader.js Remove 'mobile-ab' config for section editing 2019-06-12 17:45:20 +01:00
ve.init.mw.DiffLoader.js Only depend on ArticleTarget for diff viewer 2019-04-12 15:14:09 +01:00
ve.init.mw.DiffPage.init.js Only depend on ArticleTarget for diff viewer 2019-04-12 15:14:09 +01:00
ve.init.mw.GalleryImageInfoCache.js doc: Bump copyright year for 2019 2019-01-01 13:24:23 +00:00
ve.init.mw.ImageInfoCache.js doc: Bump copyright year for 2019 2019-01-01 13:24:23 +00:00
ve.init.mw.js doc: Bump copyright year for 2019 2019-01-01 13:24:23 +00:00
ve.init.mw.LinkCache.js Update OOUI icons names for article icons in link cache 2019-07-17 13:08:50 +01:00
ve.init.mw.Platform.init.js doc: Bump copyright year for 2019 2019-01-01 13:24:23 +00:00
ve.init.mw.Platform.js Remove redundant @method annotations 2019-08-21 23:33:15 +02:00
ve.init.mw.ProgressBarWidget.js DesktopArticleTarget: Make the progress bar into a reusable widget 2019-02-06 22:20:37 +01:00
ve.init.mw.SaveErrorHandler.js Remove redundant @method annotations 2019-08-21 23:33:15 +02:00
ve.init.mw.Target.js Remove redundant @method annotations 2019-08-21 23:33:15 +02:00
ve.init.mw.TempWikitextEditorWidget.js eslint: Enable valid-jsdoc 2019-04-17 17:13:39 +01:00
ve.init.mw.trackSubscriber.js Log editor switches to visualeditorfeatureuse 2019-07-03 23:58:30 -05:00
ve.init.mw.ViewportZoomHandler.js MobileArticleTarget: Prevent unwanted page zooming on focus on iOS 2019-07-01 15:53:29 +02:00
ve.init.MWEditingTabDialog.js MWEditingTabDialog: Don't use ve.init.target because it may not be loaded 2019-07-23 19:09:37 +00:00
ve.init.MWEditModeTool.js Remove redundant @method annotations 2019-08-21 23:33:15 +02:00
ve.init.MWVESwitchConfirmDialog.js Remove switch confirm dialogs 2019-06-11 22:35:34 +02:00
ve.init.MWVESwitchPopupWidget.js doc: Bump copyright year for 2019 2019-01-01 13:24:23 +00:00
ve.init.MWWelcomeDialog.js stylelint: Enforce class name pattern 2019-01-13 15:14:53 +00:00