var result = Utils.getDocument().evaluate("/html/head/meta[@http-equiv]", Utils.getDocument(), null, Components.interfaces.nsIDOMXPathResult.ORDERED_NODE_ITERATOR_TYPE, null); 
var doc = Utils.getDocument(driver.location) var result = doc.evaluate("/html/head/meta[@http-equiv]", doc, null, Components.interfaces.nsIDOMXPathResult.ORDERED_NODE_ITERATOR_TYPE, null); 
    this.func = function(event) {        // Is there a meta refresh?        var result = Utils.getDocument().evaluate("/html/head/meta[@http-equiv]", Utils.getDocument(), null, Components.interfaces.nsIDOMXPathResult.ORDERED_NODE_ITERATOR_TYPE, null);        var element = result.iterateNext();        while (element) {            if ("refresh" == element.getAttribute("http-equiv").toLowerCase()) {                var content = element.getAttribute("content");                if (content) {                    var bits = content.split(';');                    if (bits[0] - 0 === 0) {                        // We have an instant refresh, so return                        return;                    }                }            }            element = result.iterateNext();        }        WebLoadingListener.removeListener(listener);        toCall(event);    }
4983	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/4983/3aa848daac3cf6b346c932bafbb7bfd763430786/webLoadingListener.js/buggy/firefox/src/extension/content/webLoadingListener.js