mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 14:56:20 +00:00
5483b25657
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 |
||
---|---|---|
.. | ||
ve.init.mw.DesktopArticleTarget.init.js | ||
ve.init.mw.DesktopArticleTarget.js | ||
ve.init.mw.MobileArticleTarget.js |