Last modified: 2011-09-08 18:29:55 UTC
On FF4, some users get 'cat.replace is not a function' when trying to upload Seems to be related to the lack of an autoCategory in the config; it is defaulting to false which causes some problem
Changing the check in mw.UploadWizardDetails.js should fix it: var hiddenCats = []; if ( mw.isDefined( mw.UploadWizard.config.autoCategory ) ) { hiddenCats.push( mw.UploadWizard.config.autoCategory ); } mw.isDefined checks for the JS 'undefined' type, so returns true for false, null, empty string, etc.
Unassigning default assignments. http://article.gmane.org/gmane.science.linguistics.wikipedia.technical/54734
Seems to be fixed, since the category suggest stuff was rewritten substantially. Tested with FF 4.x and also verified that no "replace" call occurs without the object already existing and known to be a string. Some $input.val() calls may return non-string, so added test in r96591 to throw error if this ever occurs (would only happen if we accidentally selected a non-textual input).