mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 06:45:42 +00:00
Bug 416005 - Sort feed readers by pref number, rather than mistakenly count on them coming out of the prefs system in order, r=mano, a=schrep+blocker
This commit is contained in:
parent
d81ee21276
commit
2988831fbb
@ -834,6 +834,9 @@ WebContentConverterRegistrar.prototype = {
|
||||
nums.push(match[1]);
|
||||
}
|
||||
|
||||
// sort them, to get them back in order
|
||||
nums.sort(function(a, b) {return a - b;});
|
||||
|
||||
// now register them
|
||||
for (var i = 0; i < nums.length; i++) {
|
||||
var branch = ps.getBranch(PREF_CONTENTHANDLERS_BRANCH + nums[i] + ".");
|
||||
|
Loading…
Reference in New Issue
Block a user