rem: document.getElementById("sourcetext").value = sourceText; document.getElementById("expirestext").value = expirationText; document.getElementById("sizetext").value = sizeText; 
add:  if (cacheEntryDescriptor) { pageSize = cacheEntryDescriptor.dataSize; kbSize = pageSize / 1024; sizeText = theBundle.getFormattedString("generalSize", [formatNumber(Math.round(kbSize*100)/100), formatNumber(pageSize)]);  expirationText = formatDate(cacheEntryDescriptor.expirationTime*kmsPerSec, gStrings.notSet); }  setItemValue("sourcetext", sourceText, theBundle.getString("generalNotCached")); setItemValue("expirestext", expirationText, gStrings.noExpiration); setItemValue("sizetext", sizeText, gStrings.unknown); 
context: function makeGeneralTab(){  var title = (theDocument.title) ? theBundle.getFormattedString("pageTitle", [theDocument.title]) : theBundle.getString("noPageTitle");  document.getElementById("titletext").value = title;  var url = theDocument.location;  document.getElementById("urltext").value = url;  var mode = ("compatMode" in theDocument && theDocument.compatMode == "BackCompat") ? theBundle.getString("generalQuirksMode") : theBundle.getString("generalStrictMode");  document.getElementById("modetext").value = mode;  var referrer = ("referrer" in theDocument && theDocument.referrer) || theBundle.getString("generalNoReferrer");  document.getElementById('refertext').value = referrer;  // find out the mime type  var mimeType = theDocument.contentType || gStrings.unknown;  document.getElementById("typetext").value = mimeType;    // get the meta tags  var metaNodes = theDocument.getElementsByTagName("meta");  var metaTree = document.getElementById("metatree");  metaTree.treeBoxObject.view = metaView;  var length = metaNodes.length;  for (var i = 0; i < length; i++)    metaView.addRow([metaNodes[i].name || metaNodes[i].httpEquiv, metaNodes[i].content]);  // get the document characterset  var encoding = theDocument.characterSet;  document.getElementById("encodingtext").value = encoding;  // get the date of last modification  var modifiedText = formatDate(theDocument.lastModified, gStrings.notSet);  document.getElementById("modifiedtext").value = modifiedText;    // get cache info  var sourceText = theBundle.getString("generalNotCached");  var expirationText = theBundle.getString("generalNoExpiration");  var sizeText = gStrings.unknown;  var pageSize = 0;   var kbSize = 0;  var expirationTime = 0;  try  {    var cacheEntryDescriptor = httpCacheSession.openCacheEntry(url, Components.interfaces.nsICache.ACCESS_READ, false);    if (cacheEntryDescriptor)    {       switch(cacheEntryDescriptor.deviceID)      {        case "disk":          sourceText = theBundle.getString("generalDiskCache");          break;        case "memory":          sourceText = theBundle.getString("generalMemoryCache");          break;        default:          sourceText = cacheEntryDescriptor.deviceID;          break;      }      pageSize = cacheEntryDescriptor.dataSize;      kbSize = pageSize / 1024;      sizeText = theBundle.getFormattedString("generalSize", [Math.round(kbSize*100)/100, pageSize]);      expirationText = formatDate(cacheEntryDescriptor.expirationTime*1000, gStrings.notSet);    }  }  catch(ex)  {    try    {      cacheEntryDescriptor = ftpCacheSession.openCacheEntry(url, Components.interfaces.nsICache.ACCESS_READ, false);      if (cacheEntryDescriptor)      {        switch(cacheEntryDescriptor.deviceID)        {          case "disk":            sourceText = theBundle.getString("generalDiskCache");            break;          case "memory":            sourceText = theBundle.getString("generalMemoryCache");            break;          default:            sourceText = cacheEntryDescriptor.deviceID;            break;        }        pageSize = cacheEntryDescriptor.dataSize;        kbSize = pageSize / 1024;        sizeText = theBundle.getFormattedString("generalSize", [Math.round(kbSize*100)/100, pageSize]);        expirationText = formatDate(cacheEntryDescriptor.expirationTime*1000, gStrings.notSet);      }    }    catch(ex2)    {      sourceText = theBundle.getString("generalNotCached");    }  }  document.getElementById("sourcetext").value = sourceText;  document.getElementById("expirestext").value = expirationText;  document.getElementById("sizetext").value = sizeText;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/1b4c9c32872321490762b0cb9bb09a9955770f65/pageInfo.js/buggy/suite/browser/pageInfo.js