rem: const kURLContractID = "@mozilla.org/network/standard-url;1"; const kFileURLIID = Components.interfaces.nsIFileURL; var fileURL = Components.classes[kURLContractID].createInstance(kFileURLIID); fileURL.file = aData; return fileURL.spec; 
add: return aData.URL; 
context: function retrieveURLFromData (aData, flavour){  switch (flavour) {  case "text/unicode":    // this might not be a url, but we'll return it anyway    return aData;  case "text/x-moz-url":    var data = aData.toString();    var separator = data.indexOf("\n");    if (separator != -1)      data = data.substr(0, separator);    return data;  case "application/x-moz-file":    const kURLContractID = "@mozilla.org/network/standard-url;1";    const kFileURLIID = Components.interfaces.nsIFileURL;    var fileURL = Components.classes[kURLContractID].createInstance(kFileURLIID);    fileURL.file = aData;    return fileURL.spec;  }               return null;                                                         }
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/118f66b12c357104cd5759e02504a077db2af6b1/contentAreaDD.js/buggy/suite/common/contentAreaDD.js