rem: if(aRequest instanceof Components.interfaces.nsIChannel && aRequest.isPending() && m_tb_prefs.getBoolPref("extensions.torbutton.tor_enabled") && m_tb_prefs.getBoolPref("extensions.torbutton.no_tor_plugins")) { try { 
add: try { if(aRequest instanceof Components.interfaces.nsIChannel && aRequest.isPending() && m_tb_prefs.getBoolPref("extensions.torbutton.tor_enabled") && m_tb_prefs.getBoolPref("extensions.torbutton.no_tor_plugins")) { 
context: function torbutton_check_progress(aProgress, aRequest) {    // This noise is a workaround for the fact that docShell.allowPlugins    // is ignored when you directly click on a link    if(aRequest instanceof Components.interfaces.nsIChannel            && aRequest.isPending()             && m_tb_prefs.getBoolPref("extensions.torbutton.tor_enabled")            && m_tb_prefs.getBoolPref("extensions.torbutton.no_tor_plugins")) {        try {            torbutton_eclog(2, 'LocChange: '+aRequest.contentType);            if (aRequest.contentType in m_tb_plugin_mimetypes) {                aRequest.cancel(0x804b0002);                window.alert("Torbutton blocked direct Tor load of plugin content.\n\nUse Save-As instead.\n\n");                return 0;            }        } catch(e) {            torbutton_eclog(3, 'Exception on request cancel');        }    }    if(aProgress) {        var doc = aProgress.DOMWindow.document;        try {            if(doc && doc.domain)                torbutton_hookdoc(aProgress.DOMWindow.window, doc);        } catch(e) {            torbutton_log(3, "Hit about:plugins? "+doc.location);        }            } else {        torbutton_log(3, "No aProgress for location!");    }    return 0;}
meta: 3444	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3444/6aa47a65ce089c0ee095e573f4f68765aa941125/torbutton.js/clean/src/chrome/content/torbutton.js