rem: previewImage = editorShell.CreateElementWithDefaults("img"); if (!previewImage) return; dialog.ImageHolder.appendChild(previewImage); 
add: gPreviewImage = editorShell.CreateElementWithDefaults("img");  if (!gPreviewImage) return; dialog.ImageHolder.appendChild(gPreviewImage);  gPreviewImage.onload = "PreviewImageLoaded();"; gPreviewImage.src = imageSrc; 
context: function GetImageFromURL(){  dialog.PreviewSize.setAttribute("collapsed", "true");  // Remove existing preview image  // (other attempts to just change "src" fail;  //  once we fail to load, further setting of src fail)  if (dialog.ImageHolder.firstChild)  {    //previewImage.setAttribute("width", 0);    //previewImage.setAttribute("height", 0);    dialog.ImageHolder.removeChild(dialog.ImageHolder.firstChild);  }  var imageSrc = dialog.srcInput.value;  if (imageSrc) imageSrc = imageSrc.trimString();  if (!imageSrc) return;  if (IsValidImage(imageSrc))  {    if (!dialog.ImageHolder.firstChild)    {      // Append an image to the dialog to trigger image loading      //   and also serves as a preview      previewImage = editorShell.CreateElementWithDefaults("img");      if (!previewImage) return;      dialog.ImageHolder.appendChild(previewImage);    }    previewImage.src = imageSrc;    // Get the origin width from the image or setup timer to get later    if (previewImage.complete)      GetActualSize();    else    {      // Start timer to poll until image is loaded      //dump("*** Starting timer to get natural image size...\n");      timeoutId = window.setInterval("GetActualSize()", interval);      intervalSum = 0;    }  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/6f169fbb60610b5cb36fe3631feae43e45cc3c1b/EdImageProps.js/buggy/editor/ui/dialogs/content/EdImageProps.js