add: if (timeout > 0) { timeoutEvent = setTimeout('loadFail()', timeout); } 
context: function plLoadPage() {  var pageName = pages[pageIndex].url.spec;  if (removeLastAddedListener)    removeLastAddedListener();  if (plPageFlags() & TEST_DOES_OWN_TIMING) {    // if the page does its own timing, use a capturing handler    // to make sure that we can set up the function for content to call    content.addEventListener('load', plLoadHandlerCapturing, true);    removeLastAddedListener = function() {      content.removeEventListener('load', plLoadHandlerCapturing, true);    };  } else {    // if the page doesn't do its own timing, use a bubbling handler    // to make sure that we're called after the page's own onload() handling    // XXX we use a capturing event here too -- load events don't bubble up    // to the <browser> element.  See bug 390263.    content.addEventListener('load', plLoadHandler, true);    removeLastAddedListener = function() {      content.removeEventListener('load', plLoadHandler, true);    };  }  start_time = Date.now();  content.loadURI(pageName);}
meta: 10520	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10520/e681d14e56c2814afe17bad618a876b7c23eba41/pageloader.js/buggy/layout/tools/pageloader/pageloader.js