add: } 
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    try {        var chanreq = aRequest.QueryInterface(Components.interfaces.nsIChannel);        // XXX: do we need to QI this bastard?        if(chanreq                && chanreq instanceof Components.interfaces.nsIChannel                && aRequest.isPending()                 && m_tb_prefs.getBoolPref("extensions.torbutton.tor_enabled")                && m_tb_prefs.getBoolPref("extensions.torbutton.no_tor_plugins")) {            torbutton_eclog(2, 'LocChange: '+aRequest.contentType);            // XXX: This still does not work for pdfs :(            // NoScript manages to make it work though...            if (aRequest.contentType in m_tb_plugin_mimetypes) {                aRequest.cancel(0x804b0002);                if(aProgress) {                    // ZOMG DIE DIE DXIE!!!!!@                    try {                        aProgress.DOMWindow.stop();                        torbutton_eclog(2, 'Stopped document');                        aProgress.DOMWindow.document.clear();                        torbutton_eclog(2, 'Cleared document');                                                if(typeof(aProgress.DOMWindow.__tb_kill_flag) == 'undefined') {                            window.alert("Torbutton blocked direct Tor load of plugin content.\n\nUse Save-As instead.\n\n");                            aProgress.DOMWindow.__tb_kill_flag = true;                        }                        aProgress.DOMWindow.document.removeChild(                                aProgress.DOMWindow.document.firstChild);                    } catch(e) {                        torbutton_eclog(3, 'Exception on stop/clear');                    }                } else {                    torbutton_eclog(4, 'No progress for document cancel!');                    window.alert("Torbutton blocked direct Tor load of plugin content.\n\nUse Save-As instead.\n\n");                }                torbutton_eclog(3, 'Killed plugin document');                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_eclog(3, "Hit about:plugins? "+doc.location);        }            } else {        torbutton_eclog(3, "No aProgress for location!");    }    return 0;}
meta: 3444	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3444/c2513fa317a4be7f1fd1a468d779ff7ce73806d2/torbutton.js/clean/src/chrome/content/torbutton.js