rem: torbutton_log(2, "Got browser "+browser.contentDocument.location+" for: " + win.location); 
add: torbutton_log(2, "Got browser "+browser.contentWindow.location+" for: " + win.location + ", under: "+win.top.location); 
context: function torbutton_update_tags(win) {    torbutton_eclog(2, "Updating tags.");    if(typeof(win.wrappedJSObject) == 'undefined') {        torbutton_eclog(3, "No JSObject: "+win.location);        return;    }    var wm = Components.classes["@torproject.org/content-window-mapper;1"]        .getService(Components.interfaces.nsISupports)        .wrappedJSObject;    // Expire the cache on page loads. FIXME: Do a timer instead..     if(win == win.top) wm.expireOldCache();    var browser = wm.getBrowserForContentWindow(win.top);    if(!browser) {        torbutton_log(5, "No window found!1");        return;        //win.alert("No window found!");    }    torbutton_log(2, "Got browser "+browser.contentDocument.location+" for: "             + win.location);    var tor_tag = !m_tb_prefs.getBoolPref("extensions.torbutton.tor_enabled");    var js_enabled = m_tb_prefs.getBoolPref("javascript.enabled");    var kill_plugins = m_tb_prefs.getBoolPref("extensions.torbutton.no_tor_plugins");    if (!torbutton_check_flag(win.top, "__tb_did_tag")) {        torbutton_log(2, "Tagging browser for: " + win.location);        torbutton_set_flag(win.top, "__tb_did_tag");        browser.__tb_tor_fetched = !tor_tag;        browser.docShell.allowPlugins = tor_tag || !kill_plugins;        browser.docShell.allowJavascript = js_enabled;    }    torbutton_log(2, "Tags updated.");}
meta: 3444	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3444/075ae96be6f07cf1e4bf5bced6ef7911350096f3/torbutton.js/buggy/src/chrome/content/torbutton.js