rem: if(doc && doc.domain) torbutton_hookdoc(aProgress.DOMWindow, doc); else torbutton_log(2, "No DOM yet at location event"); 
add: try { if(doc && doc.domain) torbutton_hookdoc(aProgress.DOMWindow, doc); else torbutton_log(2, "No DOM yet at location event"); } catch(e) { torbutton_log(3, "Hit about:plugins? "+doc.location); } 
context:   onLocationChange: function(aProgress, aRequest, aURI)  {    torbutton_log(1, 'onLocationChange');    // This fires when the location bar changes i.e load event is confirmed    // or when the user switches tabs    if(aProgress) {        torbutton_log(1, "location progress");        var doc = aProgress.DOMWindow.document;        if(doc && doc.domain) torbutton_hookdoc(aProgress.DOMWindow, doc);        else torbutton_log(2, "No DOM yet at location event");    } else {        torbutton_log(3, "No aProgress for location!");    }    return 0;  },
meta: 3444	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3444/32e8d868cfb89b2f27c004efb49238a9a9dbe5d2/torbutton.js/clean/src/chrome/content/torbutton.js