Bug 457777 - bookmark items in distribution.ini are not added if the item number has more than one digit, r=mak
authorKev Needham <kev@mozilla.com>
Thu, 04 Feb 2010 15:56:12 +0100
changeset 37944 2f0b9d7d8c567425288e468617a102a2b218040e
parent 37943 b439b81118a6aa58d25d4da75f1b300acc98e496
child 37945 bc6f2b598ff9863098528839d54bf8fb78629d41
push id11514
push usermak77@bonardo.net
push dateSat, 06 Feb 2010 11:31:17 +0000
treeherdermozilla-central@2f0b9d7d8c56 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmak
bugs457777
milestone1.9.3a2pre
Bug 457777 - bookmark items in distribution.ini are not added if the item number has more than one digit, r=mak
browser/components/distribution.js
--- a/browser/components/distribution.js
+++ b/browser/components/distribution.js
@@ -133,16 +133,17 @@ DistributionCustomizer.prototype = {
     let items = {};
     let defaultItemId = -1;
     let maxItemId = -1;
 
     for (let i = 0; i < keys.length; i++) {
       let m = /^item\.(\d+)\.(\w+)\.?(\w*)/.exec(keys[i]);
       if (m) {
         let [foo, iid, iprop, ilocale] = m;
+        iid = parseInt(iid);
 
         if (ilocale)
           continue;
 
         if (!items[iid])
           items[iid] = {};
         if (keys.indexOf(keys[i] + "." + this._locale) >= 0) {
           items[iid][iprop] = this._ini.getString(section, keys[i] + "." +