https://bugzilla.wikimedia.org/show_bug.cgi?id=41453
Web browser: ---
Bug #: 41453
Summary: mw.loader.using do not call any of the ready/error
callbacks in debug mode
Product: MediaWiki
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Keywords: javascript
Severity: normal
Priority: Unprioritized
Component: ResourceLoader
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected],
[email protected]
Classification: Unclassified
Mobile Platform: ---
I created "MediaWiki:Gadget-someBug.js" on testwiki with
----
mw.loader.using([ 'mediawiki.util', 'jquery.placeholder', 'jquery.spinner' ],
function(){
console.log( 'Ok! All modules were loaded!', arguments )
}, function(){
console.log( 'Ops! Error with mw.loader.using! ', arguments )
});
----
and then enabled <gadget-someBug> at
https://test.wikipedia.org/wiki/Special:Preferences#mw-prefsection-gadgets
After that, if I go to
https://test.wikipedia.org/wiki/MediaWiki:Gadget-someBug.js?action=edit&debug=1&uselang=en&useskin=vector
using Google Chrome 22.0.1229.94.
my console do not show any message from the gadget (and no error either). This
means none of the callbacks were called.
My common.js was empty during the tests.
I also tested doing one of the following changes in the URL above:
* action=history: bugged;
* uselang=fr: bugged;
* useskin=monobook: bugged;
* debug=0: Ok! All modules were loaded! [];
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l