jenkins-bot has submitted this change and it was merged.

Change subject: Always use the requestIdleCallback polyfill for batchEval
......................................................................


Always use the requestIdleCallback polyfill for batchEval

Bug: T146099
Change-Id: I10fd6d47cb2ecc5fb8f3f761fbe727f7c0a9faab
---
M resources/src/mediawiki/mediawiki.js
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Catrope: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/resources/src/mediawiki/mediawiki.js 
b/resources/src/mediawiki/mediawiki.js
index db5a4fb..9fd8fb5 100644
--- a/resources/src/mediawiki/mediawiki.js
+++ b/resources/src/mediawiki/mediawiki.js
@@ -1680,7 +1680,7 @@
                                if ( !implementations.length ) {
                                        return;
                                }
-                               mw.requestIdleCallback( function iterate( 
deadline ) {
+                               mw.requestIdleCallbackInternal( function 
iterate( deadline ) {
                                        while ( implementations[ 0 ] && 
deadline.timeRemaining() > 5 ) {
                                                try {
                                                        $.globalEval( 
implementations.shift() );
@@ -1690,7 +1690,7 @@
                                                }
                                        }
                                        if ( implementations[ 0 ] ) {
-                                               mw.requestIdleCallback( iterate 
);
+                                               mw.requestIdleCallbackInternal( 
iterate );
                                        }
                                } );
                        }

-- 
To view, visit https://gerrit.wikimedia.org/r/311855
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I10fd6d47cb2ecc5fb8f3f761fbe727f7c0a9faab
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: wmf/1.28.0-wmf.18
Gerrit-Owner: Gilles <gdu...@wikimedia.org>
Gerrit-Reviewer: Catrope <roan.katt...@gmail.com>
Gerrit-Reviewer: Jack Phoenix <j...@countervandalism.net>
Gerrit-Reviewer: Krinkle <krinklem...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to