rem: if (IsValidImage(imageSrc)) 
add: if (IsValidImage(dialog.srcInput.value)) 
context: function GetImageFromURL(){  dialog.PreviewSize.setAttribute("collapsed", "true");  var imageSrc = dialog.srcInput.value;  if (imageSrc) imageSrc = imageSrc.trimString();  if (!imageSrc) return;  if (IsValidImage(imageSrc))  {    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 uri = Components.classes["@mozilla.org/network/standard-url;1"]                    .createInstance(Components.interfaces.nsIURI);      uri.spec = imageSrc;      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(dialog.PreviewImage)      removeEventListener("load", PreviewImageLoaded, true);    if (dialog.ImageHolder.firstChild)      dialog.ImageHolder.removeChild(dialog.ImageHolder.firstChild);          dialog.PreviewImage = document.createElementNS("http://www.w3.org/1999/xhtml", "html:img");    if(dialog.PreviewImage)    {      dialog.ImageHolder.appendChild(dialog.PreviewImage);      dialog.PreviewImage.addEventListener("load", PreviewImageLoaded, true);      dialog.PreviewImage.src = imageSrc;    }  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/d314ac7ae99eb0e821cb055765e547e9bb087dd0/EdImageProps.js/buggy/editor/ui/dialogs/content/EdImageProps.js