rem: window.title = title; 
add: document.title = title; 
context: function onUpdateProgress(){  var numActiveDownloads = gActiveDownloads.length;  if (numActiveDownloads == 0) {    window.title = document.documentElement.getAttribute("statictitle");    gLastComputedMean = 0;    return;  }      var mean = 0;  for (var i = 0; i < numActiveDownloads; ++i) {    var dl = gActiveDownloads[i];    var progress = dl.percentComplete;    if (progress < 100)      mean += progress;  }  mean = Math.round(mean / numActiveDownloads);    // At the end of a download, progress is set from 100% to 0% for   // some reason. We can identify this case because at this point the  // mean progress will be zero but the last computed mean will be  // greater than zero.   if (mean == 0 && gLastComputedMean > 0) {    window.title = document.documentElement.getAttribute("statictitle");    return;  }  if (mean != gLastComputedMean) {    gLastComputedMean = mean;    var strings = document.getElementById("downloadStrings");        var title;    if (numActiveDownloads > 1)      title = strings.getFormattedString("downloadsTitleMultiple", [mean, numActiveDownloads]);    else      title = strings.getFormattedString("downloadsTitle", [mean]);    window.title = title;  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/ab3c13419e7e03c262389135ee9d68c1be6c3d86/downloads.js/clean/toolkit/mozapps/downloads/content/downloads.js