diff --git a/modules/ve-mw/init/targets/ve.init.mw.ArticleTarget.js b/modules/ve-mw/init/targets/ve.init.mw.ArticleTarget.js index 24be8e6800..ce5c47d6db 100644 --- a/modules/ve-mw/init/targets/ve.init.mw.ArticleTarget.js +++ b/modules/ve-mw/init/targets/ve.init.mw.ArticleTarget.js @@ -1578,6 +1578,9 @@ ve.init.mw.ArticleTarget.prototype.submit = function ( wikitext, fields ) { if ( this.submitting ) { return false; } + // Clear autosave now that we don't expect to need it again. + // FIXME: This isn't transactional, so if the save fails we're left with no recourse. + this.clearDocState(); // Save DOM this.submitting = true; $form = $( '