Author: jp.posma
Description:
When mixing Javascript files and ResourceLoaderWikiModule, the execution order is incorrect. JS scripts from ResourceLoaderWikiModule are loaded inline, and are executed before the files are executed.
When debug=false, there is no problem, as files are also included as inline JS (in load.php). The problem only occurs when mixing the two types of inclusion.
Can be reproduced by checking out r90873, installing WikiLove, adding a mw.log statement to MediaWiki:WikiLove.js and to extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.defaultOptions.js. Obviously the latter should be executed first, and then the site-specific JS can overwrite options. However, when setting debug=true, one will find that the latter is executed before MediaWiki:WikiLove.js, which is wrong.
Version: 1.17.x
Severity: normal