rem: /* XXX: Hrmm.. keep an eye on this * if (browser.contentDocument == doc) { torbutton_log(1, "Browser states "+tor_tag+" == "+ browser.__tb_js_state + " -> " + (browser.__tb_js_state == tor_tag)); return browser.__tb_js_state == tor_tag; }*/ 
context: function torbutton_check_load_state(doc, tor_tag) {    var browser = getBrowser();    /* XXX: Hrmm.. keep an eye on this     * if (browser.contentDocument == doc) {        torbutton_log(1, "Browser states "+tor_tag+" == "+                browser.__tb_js_state + " -> " +                 (browser.__tb_js_state == tor_tag));         return browser.__tb_js_state == tor_tag;    }*/    // Find proper browser for this document.. ugh.    for (var i = 0; i < browser.browsers.length; ++i) {        var b = browser.browsers[i];        if (b && b.contentDocument == doc) {            torbutton_log(1, "Tab states "+tor_tag+" == "+                    b.__tb_js_state + " -> " +                     (b.__tb_js_state == tor_tag));             return b.__tb_js_state == tor_tag;        }    }}
meta: 3444	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3444/40dcb9049bb6b7aafbc03e59afa063688fdd530e/torbutton.js/buggy/src/chrome/content/torbutton.js