mediawiki-extensions-Visual.../modules/ve-mw/init/targets
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
..
ve.init.mw.DesktopArticleTarget.init.js Reduce mayhem caused by ?oldid=currentRevId 2016-07-25 20:04:47 -07:00
ve.init.mw.DesktopArticleTarget.js Reduce mayhem caused by ?oldid=currentRevId 2016-07-25 20:04:47 -07:00
ve.init.mw.MobileArticleTarget.js Fix config of mobile surfaces 2016-06-03 10:51:42 +01:00