rem: var hrefURL = Components.classes["@mozilla.org/network/standard-url;1"]. createInstance(Components.interfaces.nsIURI);  hrefURL.spec = href; 
add:  var ioService = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService); hrefURL  = ioService.newURI(href, null, null); 
context: function isPhishingURL(aLinkNode, aSilentMode){  if (!gPrefBranch.getBoolPref("mail.phishing.detection.enabled"))    return false;  var phishingType = kPhishingNotSuspicious;  var href = aLinkNode.href;  var linkTextURL = {};  var hrefURL = Components.classes["@mozilla.org/network/standard-url;1"].                createInstance(Components.interfaces.nsIURI);     hrefURL.spec = href;    // (1) if the host name is an IP address then block the url...  // TODO: add support for IPv6  var ipv4HostRegExp = new RegExp(/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/);  // IPv4  if (ipv4HostRegExp.test(hrefURL.host))    phishingType = kPhishingWithIPAddress;  else if (misMatchedHostWithLinkText(aLinkNode, hrefURL, linkTextURL))    phishingType = kPhishingWithMismatchedHosts;  var isPhishingURL = phishingType != kPhishingNotSuspicious;  if (!aSilentMode) // allow the user to over ride the decision    isPhishingURL = confirmSuspiciousURL(phishingType, hrefURL, linkTextURL.value);  return isPhishingURL;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/0ab93cf3a09be1fda64dd990a4df9b3cebfd8053/phishingDetector.js/buggy/mail/base/content/phishingDetector.js