From: Timo Tijhof Date: Fri, 31 Jul 2015 19:34:10 +0000 (-0700) Subject: resourceloader: Remove ESI support (previously disabled) X-Git-Tag: 1.31.0-rc.0~10555 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=96fc60533fb583cae13de4bed74ade9e149d2495;p=lhc%2Fweb%2Fwiklou.git resourceloader: Remove ESI support (previously disabled) These were never enabled or used in production and are not compatible with the upcoming async changes (T107399). To avoid having to maintain compatibility with this, remove it for now. The current on-going request to operations for ESI support is unrelated to this code. Considered making makeResourceLoaderLink() protected as it's not used anywhere in @wikimedia Git outside mediawiki-core. And the unit test actually treated it as protected already. However it's called in SpecialJavaScriptTest so leaving that as-is for now. In Icba6d7a87b239 the signature will change again with the removal of the $loadCall parameter, which is obsolete in an async world due to document.write being forbidden. Change-Id: I9f557cc794638ffd15329934865e21e1027f7cfa --- diff --git a/RELEASE-NOTES-1.26 b/RELEASE-NOTES-1.26 index fc0e752327..11da802d18 100644 --- a/RELEASE-NOTES-1.26 +++ b/RELEASE-NOTES-1.26 @@ -16,6 +16,8 @@ production. use the 'rawcontinue' parameter to receive raw query-continue data, but the new style is encouraged as it's harder to implement incorrectly. * Deprecated API formats dump and wddx have been completely removed. +* $wgResourceLoaderUseESI was deprecated and removed. This was an experimental + feature that was never enabled by default. === New features in 1.26 === * (T51506) Now action=info gives estimates of actual watchers for a page. diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 2517bc5c3d..4d1b3299cd 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -3510,13 +3510,6 @@ $wgResourceLoaderMaxage = array( */ $wgResourceLoaderDebug = false; -/** - * Enable embedding of certain resources using Edge Side Includes. This will - * improve performance but only works if there is something in front of the - * web server (e..g a Squid or Varnish server) configured to process the ESI. - */ -$wgResourceLoaderUseESI = false; - /** * Put each statement on its own line when minifying JavaScript. This makes * debugging in non-debug mode a bit easier. diff --git a/includes/OutputPage.php b/includes/OutputPage.php index c972045655..530a1d5b2e 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -2766,15 +2766,14 @@ class OutputPage extends ContextSource { * @todo Document * @param array|string $modules One or more module names * @param string $only ResourceLoaderModule TYPE_ class constant - * @param bool $useESI * @param array $extraQuery Array with extra query parameters to add to each * request. array( param => value ). * @param bool $loadCall If true, output an (asynchronous) mw.loader.load() * call rather than a "" ), - // Load module script with ESI - array( - array( 'test.foo', ResourceLoaderModule::TYPE_SCRIPTS, true ), - '' - ), - // Load module styles with ESI - array( - array( 'test.foo', ResourceLoaderModule::TYPE_STYLES, true ), - '', - ), // Load no modules array( array( array(), ResourceLoaderModule::TYPE_COMBINED ), @@ -219,7 +209,6 @@ class OutputPageTest extends MediaWikiTestCase { public function testMakeResourceLoaderLink( $args, $expectedHtml ) { $this->setMwGlobals( array( 'wgResourceLoaderDebug' => false, - 'wgResourceLoaderUseESI' => true, 'wgLoadScript' => 'http://127.0.0.1:8080/w/load.php', // Affects whether CDATA is inserted 'wgWellFormedXml' => false,