rem: var bookmarkName = document.getElementById("bookmarkName"); var bsp = document.getElementById("browserStartPage"); 
add: var homePage = document.getElementById("browser.startup.homepage"); 
context:   setHomePageToBookmark: function ()  {    var rv = { urls: null, names: null };#ifdef MOZ_PLACES    document.documentElement.openSubDialog("chrome://browser/content/preferences/selectBookmark.xul",#else    document.documentElement.openSubDialog("chrome://browser/content/bookmarks/selectBookmark.xul",#endif                                           "resizable", rv);      if (rv.urls && rv.names) {      var bookmarkName = document.getElementById("bookmarkName");      var bsp = document.getElementById("browserStartPage");      // XXX still using dangerous "|" joiner!      bookmarkName.setAttribute("uri", rv.urls.join("|"));      // make at least an attempt to display multiple bookmarks correctly in UI      if (rv.names.length == 1) {        bookmarkName.value = rv.names[0];      } else {        var bundle = document.getElementById("bundlePreferences");        bookmarkName.value = rv.names.join(bundle.getString("bookmarkjoiner"));      }      // select the "bookmark" radio      bsp.value = "bookmark";      this._pane.userChangedValue(bookmarkName);    }  },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/aac4ed2044d52f80cf9e597f86f7c37c747720c8/main.js/buggy/browser/components/preferences/main.js