Merge "Remove remnants of the cookie hack for loading unavailable tools"

This commit is contained in:
jenkins-bot 2021-08-19 16:32:10 +00:00 committed by Gerrit Code Review
commit ccd2769b17
3 changed files with 2 additions and 3 deletions

View file

@ -86,7 +86,6 @@
"mediawiki.util",
"mediawiki.storage",
"mediawiki.String",
"mediawiki.cookie",
"ext.visualEditor.core.utils.parsing"
],
"messages": [

View file

@ -45,7 +45,7 @@ class CommentFormatter {
// Never add tools twice.
// This is required because we try again to add tools to cached content
// to support query string or cookie enabling
// to support query string enabling.
if ( strpos( $text, static::MARKER_COMMENT ) !== false ) {
return;
}

View file

@ -145,7 +145,7 @@ class PageHooks implements
public function onOutputPageBeforeHTML( $output, &$text ) {
$lang = $output->getLanguage();
// Check after the parser cache if tools need to be added for
// non-cacheable reasons i.e. query string or cookie
// non-cacheable reasons (i.e. query string).
// The addDiscussionTools method is responsible for ensuring that
// tools aren't added twice.
foreach ( CommentFormatter::USE_WITH_FEATURES as $feature ) {