rem: prefWindow.pref.ClearUserPref("browser.startup.homepage."+i); 
add: prefWindow.pref.clearUserPref("browser.startup.homepage."+i); 
context: function doOnOk(){  var prefWindow = parent.hPrefWindow;  // OK could have been hit from another panel, so we need to  // get at navigatorData the long but safer way  var navigatorData = prefWindow.wsm.dataManager                                .pageData["chrome://communicator/content/pref/pref-navigator.xul"]                                .navigatorData;  var URIs = navigatorData.homePages;  prefWindow.setPref("string", "browser.startup.homepage", URIs[0]);  var i = 1;  for (; i < URIs.length; ++i)    prefWindow.setPref("string", "browser.startup.homepage."+i, URIs[i]);                   const countPref = "browser.startup.homepage.count";  // remove the old user prefs values that we didn't overwrite  var oldCount = prefWindow.getPref("int", countPref);  for (; i < oldCount; ++i)    prefWindow.pref.ClearUserPref("browser.startup.homepage."+i);  prefWindow.setPref("int", countPref, URIs.length);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/8ddfc7301d74f3725f0f2f6d2322fd5695fb2a1a/pref-navigator.js/buggy/suite/common/pref/pref-navigator.js