rem: appCore.loadInitialPage(); } else window.setTimeout( "tryToSetContentWindow()", 100 ); } 
add: } 
context: function tryToSetContentWindow() {  var startpage = startPageDefault;  if ( window.content ) {    appCore.setContentWindow( window.content );    if ( !explicitURL ) {      // if all else fails, use trusty "about:blank" as the start page      if (pref) {        // from mozilla/modules/libpref/src/init/all.js        // 0 = blank         // 1 = home (browser.startup.homepage)        // 2 = last         var choice = 1;        try {          choice = pref.GetIntPref("browser.startup.page");        }        catch (ex) {          dump("failed to get the browser.startup.page pref\n");        }        switch (choice)         {        case 0:          startpage = "about:blank";          break;        case 1:          try {            startpage = pref.CopyCharPref("browser.startup.homepage");          }          catch (ex) {            startpage = startPageDefault;          }          break;        case 2:          var history = getService( "component://netscape/browser/global-history", "nsIGlobalHistory" );          if (history)            startpage = history.GetLastPageVisted();          break;        default:          startpage = startPageDefault;        }      }      else        dump("Failed to retrieve pref service\n");      var args = document.getElementById("args")      if (args) args.setAttribute("value", startpage);    }    appCore.loadInitialPage();  }   else    window.setTimeout( "tryToSetContentWindow()", 100 );}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/f5a8a1af2368f6bc7df2ed21b3704dabca8c6809/navigator.js/buggy/suite/browser/navigator.js