mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 18:39:52 +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 |
||
---|---|---|
.. | ||
styles | ||
targets | ||
classListSkipFunction.js | ||
ve.init.mw.ApiResponseCache.js | ||
ve.init.mw.ArticleTarget.js | ||
ve.init.mw.ArticleTargetEvents.js | ||
ve.init.mw.ArticleTargetLoader.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.Target.js | ||
ve.init.mw.trackSubscriber.js | ||
ve.init.MWEditingTabDialog.js | ||
ve.init.MWVESwitchConfirmDialog.js | ||
ve.init.MWWelcomeDialog.js |