Last modified: 2014-08-22 10:34:30 UTC
Steps to reproduce: * Load MediaWiki from localhost * Stop the Webserver. -> All further requests gets aborted * Try to make a request with $.get(): var d = $.get( '/' ); -> The request gets aborted. * Enter d.state(); -> "rejected" * Try to make a request with mw.loader.using(): var d = mw.loader.using( 'mediawiki.special', function () { console.log( 'ready' ); }, function () { console.log( 'error' ); } ); -> The request gets aborted. * Enter d.state(); -> "pending" expected result: "rejected"
It seems that this can be done by making mw.loader.work(), doRequest() and addScript() work together to update the state of failed modules in the registry.