rem: var matches = curr.match(/^(\d+)\.name$/); 
add: var matchesName = curr.match(/^(\d+)\.name$/); var matchesPolicy = curr.match(/^(\d+)\.privacy\.url$/); 
context:   readOnloadPhishProvider: function ()  {    const Cc = Components.classes, Ci = Components.interfaces;    const onloadPopupId = "onloadPhishPopup";    var popup = document.getElementById(onloadPopupId);    if (!popup) {      var providers = Cc["@mozilla.org/preferences-service;1"]                        .getService(Ci.nsIPrefService)                        .getBranch("browser.safebrowsing.provider.");      // fill in onload phishing list data      var kids = providers.getChildList("", {});      for (var i = 0; i < kids.length; i++) {        var curr = kids[i];        var matches = curr.match(/^(\d+)\.name$/);        // skip preferences not of form "##.name"        if (!matches)          continue;        if (!popup) {          popup = document.createElement("menupopup");          popup.id = onloadPopupId;        }        var providerNum = matches[1];        var providerName = providers.getCharPref(curr);        var item = document.createElement("menuitem");        item.setAttribute("value", providerNum);        item.setAttribute("label", providerName);        popup.appendChild(item);      }      var onloadProviders = document.getElementById("onloadProvider");      onloadProviders.appendChild(popup);    }    // don't override the preference value in determining the right menuitem    return undefined;  },
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/1a83e25ed9e2ba6d9a6a13c931d5fd821ddfb7f9/security.js/buggy/browser/components/preferences/security.js