context: function LoadPreviewImage(){  gDialog.PreviewSize.collapsed = true;  var imageSrc = TrimString(gDialog.srcInput.value);  if (!imageSrc)    return;  try {    // Remove the image URL from image cache so it loads fresh    //  (if we don't do this, loads after the first will always use image cache    //   and we won't see image edit changes or be able to get actual width and height)        var IOService = GetIOService();    if (IOService)    {      // We must have an absolute URL to preview it or remove it from the cache      imageSrc = MakeAbsoluteUrl(imageSrc);      if (GetScheme(imageSrc))      {        var uri = IOService.newURI(imageSrc, null, null);        if (uri)        {          var imgCacheService = Components.classes["@mozilla.org/image/cache;1"].getService();          var imgCache = imgCacheService.QueryInterface(Components.interfaces.imgICache);          // This returns error if image wasn't in the cache; ignore that          imgCache.removeEntry(uri);        }      }    }  } catch(e) {}  if (gDialog.PreviewImage)    removeEventListener("load", PreviewImageLoaded, true);  if (gDialog.ImageHolder.firstChild)    gDialog.ImageHolder.removeChild(gDialog.ImageHolder.firstChild);      gDialog.PreviewImage = document.createElementNS("http://www.w3.org/1999/xhtml", "html:img");  if (gDialog.PreviewImage)  {    // set the src before appending to the document -- see bug 198435 for why    // this is needed.    gDialog.PreviewImage.addEventListener("load", PreviewImageLoaded, true);    gDialog.PreviewImage.src = imageSrc;    gDialog.ImageHolder.appendChild(gDialog.PreviewImage);  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/396fd33ea10040b9b1fe166d36fab2774b773266/EdImageOverlay.js/buggy/editor/ui/dialogs/content/EdImageOverlay.js