Merge "Remove client-side timeout when saving pages (again)"

This commit is contained in:
jenkins-bot 2021-09-09 23:28:18 +00:00 committed by Gerrit Code Review
commit 95c124d821

View file

@ -291,7 +291,7 @@ CommentController.prototype.save = function ( comment, pageName ) {
// No timeout. Huge talk pages can take a long time to save, and falsely reporting an error
// could result in duplicate messages if the user retries. (T249071)
var defaults = OO.copy( controller.getApi().defaults );
defaults.timeout = 0;
defaults.ajax.timeout = 0;
var noTimeoutApi = new mw.Api( defaults );
return mw.libs.ve.targetSaver.postContent(