rem: TabWatcher.watchLoadedTopWindow(win); 
add: try { TabWatcher.watchLoadedTopWindow(win); } catch(exc) { ERROR(exc); }  
context: function onLoadWindowContent(event){    if (FBTrace.DBG_WINDOWS)                                                                                           /*@explore*/        FBTrace.sysout("tabWatcher.onLoadWindowContent event.type="+event.type+"\n");                                  /*@explore*/                                                                                                                       /*@explore*/    var win = event.currentTarget;    try    {        win.removeEventListener("pageshow", onLoadWindowContent, true);        if (FBTrace.DBG_INITIALIZE) FBTrace.sysout("tabWatcher.onLoadWindowContent  pageshow removeEventListener\n");  /*@explore*/    }    catch (exc) {}    try    {        win.removeEventListener("DOMContentLoaded", onLoadWindowContent, true);         if (FBTrace.DBG_INITIALIZE) FBTrace.sysout("tabWatcher.onLoadWindowContent  DOMContentLoaded removeEventListener\n"); /*@explore*/    }    catch (exc) {}    // Signal that we got the onLoadWindowContent event. This prevents the FrameProgressListener from sending it.    var context = TabWatcher.getContextByWindow(win);    if (context)        context.onLoadWindowContent = true;    // Calling this after a timeout because I'm finding some cases where calling    // it here causes freezeup when this results in loading a script file. This fixes that.    setTimeout(function()    {        TabWatcher.watchLoadedTopWindow(win);    });}
meta: 7450	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/7450/fd3fa7073b03b34b49adc8add0f84b5b4e33907f/tabWatcher.js/buggy/extension/content/firebug/tabWatcher.js