add:  homePageField.value = newVal; 
context: function setHomePageToCurrentPage(){  var windowManager = Components.classes[WINDOWMEDIATOR_CONTRACTID]                                .getService(nsIWindowMediator);  var browserWindow = windowManager.getMostRecentWindow("navigator:browser");  if (browserWindow) {    var browser = browserWindow.document.getElementById("content");    var url = browser.webNavigation.currentURI.spec;    if (url) {      var homePageField = document.getElementById("browserStartupHomepage");      homePageField.value = url;    }  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/b703a680af1d3650d75e6299dc72687209924f3d/pref-navigator.js/buggy/browser/components/prefwindow/content/pref-navigator.js