Last modified: 2014-08-22 10:34:30 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T68598, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 66598 - ResourceLoader: mw.loader.using() promise is indefinitely "pending" if load request is aborted
ResourceLoader: mw.loader.using() promise is indefinitely "pending" if load r...
Status: NEW
Product: MediaWiki
Classification: Unclassified
ResourceLoader (Other open bugs)
1.24rc
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 66599
  Show dependency treegraph
 
Reported: 2014-06-13 19:14 UTC by Fomafix
Modified: 2014-08-22 10:34 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Fomafix 2014-06-13 19:14:45 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"
Comment 1 Bartosz Dziewoński 2014-06-16 14:20:44 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links