Last modified: 2012-09-27 01:10:44 UTC
(See also: http://meta.wikimedia.org/w/index.php?title=2010_Wikimedia_design_and_feature_change/Bug_reports#"undefinedundefinedundefined" are shown in edit page "Special characters" on zh.wiki) "undefinedundefinedundefined" are shown in edit toolbar "Special characters" list (at the end), please fix it.
Adam: I've heard about this bug before but could never reproduce it in FF 3.6. Maybe it's a Chrome thing?
In case Adam gets to this before I finish dinner: I think the cause is in the for loop on jquery.wikiEditor.toolbar.js:500 . It's an object-style for .. in loop but the var it iterates over is an array, so it should use for(var i = 0; i < ...
No problem when I test in Chrome 6 dev / Linux... or Chrome 5.0.375.70 or 5.0.375.86 on Win7. There may be a particular combination of settings, possibly involving skin, language, and variant preferences, which ends up triggering it. Might also involve other particular options. Are you getting this bug both when logged in and logged out? Any particular settings we should test?
(In reply to comment #3) > No problem when I test in Chrome 6 dev / Linux... or Chrome 5.0.375.70 or > 5.0.375.86 on Win7. > > There may be a particular combination of settings, possibly involving skin, > language, and variant preferences, which ends up triggering it. Might also > involve other particular options. > > Are you getting this bug both when logged in and logged out? Any particular > settings we should test? It's probably some user script or, more likely, a library, that's messing with Array.prototype .
Roan, I tried but can't replicate it. I'm out the rest of today, but can look again late tonight or tomorrow if you can't figure it out.
Fixed in r68841. My suspicion from comment #4 was right: morebits.js (used by Friendly and Twinkle, two fairly popular user scripts) adds functions to Array.prototype and we had the wrong kind of for loop iterating over the special character arrays.
*** Bug 24220 has been marked as a duplicate of this bug. ***