rem: for (i = 0; i < historyCount; i++) 
add: for (i = 0; i < urlArray.length; i++) 
context: function SaveRecentFilesPrefs(){  // Can't do anything if no prefs  if (!gPrefs) return;  var curUrl = StripPassword(GetDocumentUrl());  // Nothing will change, so don't bother doing the work  if(IsUrlAboutBlank(curUrl))    return;  var curTitle = GetCurrentEditor().document.title;  var historyCount = 10;  try {    historyCount = gPrefs.getIntPref("editor.history.url_maximum");   } catch(e) {}  var titleArray = new Array(historyCount);  var urlArray   = new Array(historyCount);  var arrayIndex = 0;  var i;  // Always put latest-opened URL at start of array  titleArray[arrayIndex] = curTitle;  urlArray[arrayIndex] = curUrl;  arrayIndex++;  for (i = 0; i < historyCount; i++)  {    var title = GetUnicharPref("editor.history_title_"+i);    var url = GetUnicharPref("editor.history_url_"+i);    // Continue if URL pref is missing because     //  a URL not found during loading may have been removed    // Also skip "about:blank" or "data:" URL    if (!url || IsUrlAboutBlank(url) || GetScheme(url) == "data")      continue;    // Skip over current URL    if (url != curUrl)    {      // Save in array for prefs      if (arrayIndex < historyCount)      {        titleArray[arrayIndex] = title;        urlArray[arrayIndex] = url;        arrayIndex++;      }    }  }  // Resave the list back to prefs in the new order  for (i = 0; i < historyCount; i++)  {    if (!urlArray[i])      break;    SetUnicharPref("editor.history_title_"+i, titleArray[i]);    SetUnicharPref("editor.history_url_"+i, urlArray[i]);  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/f30b72dd5b905d3050c769cbdfa7f3d132c0afc5/editor.js/buggy/editor/ui/composer/content/editor.js