rem: if(doc) hookDoc(doc); 
add: if(doc) torbutton_hookdoc(doc); 
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) hookDoc(doc);                else torbutton_log(3, "No DOM 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/6d16d2398792e6b4fdd065aeb02351a0b494ec98/torbutton.js/buggy/src/chrome/content/torbutton.js