rem: URL.spec = doc.location.href; 
add: var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); var URL = ioService.newURI(doc.location.href, null); 
context: function getAbsoluteURL(url, node){    if (!url || !node)        return "";    var URL = Components.classes["@mozilla.org/network/standard-url;1"].createInstance(Components.interfaces["nsIURL"]);    var urlArr = new Array(url);    var doc = node.ownerDocument;    if (node.nodeType == Node.ATTRIBUTE_NODE)        node = node.ownerElement;    while (node && node.nodeType == Node.ELEMENT_NODE) {        if (node.getAttributeNS(XMLNS, "base") != "")            urlArr.unshift(node.getAttributeNS(XMLNS, "base"));        node = node.parentNode;    }    // Look for a <base>.    var baseTags = getHTMLElements(doc,"base");    if (baseTags && baseTags.length) {        urlArr.unshift(baseTags[baseTags.length - 1].getAttribute("href"));    }    // resolve everything from bottom up, starting with document location    URL.spec = doc.location.href;    for (var i=0; i<urlArr.length; i++) {        URL.spec = URL.resolve(urlArr[i]);    }    return URL.spec;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/cfb670ac48ca5b1339e574036e5c1a6973e77a1c/metadata.js/clean/suite/browser/metadata.js