https://bugzilla.wikimedia.org/show_bug.cgi?id=65268
Bug ID: 65268
Summary: mw.api.getToken should not cache HTTP errors
Product: MediaWiki
Version: 1.24-git
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: JavaScript
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Web browser: ---
Mobile Platform: ---
Temporary HTTP errors should not cached by mw.api.getToken.
Steps to reproduce
* Load MediaWiki
* Switch browser to offline mode
* Enter
var api = new mw.Api();
api.getToken( 'foo' )
.done( function ( data ) {
console.log( 'done', data );
} )
.fail( function ( error ) {
console.log( 'fail', error );
} );
>> fail http
* Switch browser to online mode
* Enter
api.getToken( 'foo' )
.done( function ( data ) {
console.log( 'done', data );
} )
.fail( function ( error ) {
console.log( 'fail', error );
} );
>> fail fail
expected result
>> fail token-missing
--
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