mediawiki-extensions-Visual.../modules/ve-mw/init
Roan Kattouw 5483b25657 Reduce mayhem caused by ?oldid=currentRevId
If you viewed a page with an ?oldid= query parameter set to the ID
of the current revision, some parts of VE would believe we were
in oldid mode (because there's an oldid present), but others
wouldn't (because the revid we're editing equals the newest revid).
This caused bugs when opening the editor a second time after saving
(which is normally impossible to do after an oldid-mode edit, because
we navigate to a new page after an oldid save, but we don't do that
in this case).

Ensure that:
* The internal state of DesktopArticleTarget is updated correctly
  after saving in this case
* The ?oldid= parameter is removed from the URL after saving
* DesktopArticleTarget.init doesn't preload the article HTML
  on a second/subsequent editor load: this causes issues because
  it caches the oldid, and generally speaking the Target's internal
  state is not considered

Bug: T141330
Change-Id: I74034328797c59f7249f1f6f4f53a92ee1c26334
2016-07-25 20:04:47 -07:00
..
styles Only apply font fix to global overlay 2016-07-25 14:48:49 +01:00
targets Reduce mayhem caused by ?oldid=currentRevId 2016-07-25 20:04:47 -07:00
classListSkipFunction.js build: Bump devDependencies to latest and make pass 2016-06-07 17:17:02 +01:00
ve.init.mw.ApiResponseCache.js build: Bump file copyright notices for 2016 2016-01-03 14:57:25 -08:00
ve.init.mw.ArticleTarget.js Call child serializeSuccess/Failure in ArticleTarget#serialize 2016-06-13 23:37:27 +01:00
ve.init.mw.ArticleTargetEvents.js Create MW targets using a factory 2016-04-21 21:06:39 +01:00
ve.init.mw.ArticleTargetLoader.js Avoid trying to load unregistered modules 2016-07-13 15:21:25 +00:00
ve.init.mw.ImageInfoCache.js MWMediaDialog: Only cache relevant information 2016-02-29 10:16:34 -06:00
ve.init.mw.js Create MW targets using a factory 2016-04-21 21:06:39 +01:00
ve.init.mw.LinkCache.js build: Bump file copyright notices for 2016 2016-01-03 14:57:25 -08:00
ve.init.mw.Platform.init.js build: Bump file copyright notices for 2016 2016-01-03 14:57:25 -08:00
ve.init.mw.Platform.js Make visualeditor-quick-access-characters.json always exist 2016-06-10 17:15:49 +01:00
ve.init.mw.Target.js Blacklist article/section from external paste 2016-06-13 12:22:10 +01:00
ve.init.mw.trackSubscriber.js ve.init.mw.trackSubscriber: Sample at 6.25% 2016-02-08 13:22:33 -08:00
ve.init.MWEditingTabDialog.js Make edit tab dialog wider to accommodate long messages 2016-06-30 13:43:58 +01:00
ve.init.MWVESwitchConfirmDialog.js Remove icon properties from windows 2016-03-29 12:33:42 +01:00
ve.init.MWWelcomeDialog.js ve.init.MWWelcomeDialog: Don't mess with the actions dynamically 2016-05-31 23:15:49 +02:00