add:  setHomePageToDefaultPage: function () { var prefService = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefService); var pref = prefService.getDefaultBranch(null); var url = pref.getComplexValue("browser.startup.homepage", Components.interfaces.nsIPrefLocalizedString).data; var homePageField = document.getElementById("browserStartupHomepage"); homePageField.value = url;  this._pane.userChangedValue(homePageField); },  setHomePageToBlankPage: function () { var homePageField = document.getElementById("browserStartupHomepage"); homePageField.value = "about:blank";  this._pane.userChangedValue(homePageField); },   homepageChanged: function (aEvent) { var homepage = aEvent.target.value;  homepage = homepage.replace(/\|/g,', ');  var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator); var e = wm.getEnumerator("navigator:browser"); while (e.hasMoreElements()) { var win = e.getNext(); if (!(win instanceof Components.interfaces.nsIDOMWindow)) break; var homeButton = win.document.getElementById("home-button"); if (homeButton) homeButton.setAttribute("tooltiptext", homepage); } },  init: function () { this._pane = document.getElementById("paneGeneral");  this._updateUseCurrentButton(); if (document.documentElement.instantApply) window.addEventListener("focus", this._updateUseCurrentButton, false); },  _updateUseCurrentButton: function () { var useButton = document.getElementById("browserUseCurrent");  var win; if (document.documentElement.instantApply) {  var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator); win = wm.getMostRecentWindow("navigator:browser"); } else win = window.opener;  if (win && win.document.documentElement .getAttribute("windowtype") == "navigator:browser") { useButton.disabled = false;  var tabbrowser = win.document.getElementById("content"); if (tabbrowser.browsers.length > 1) useButton.label = useButton.getAttribute("label2"); } else { useButton.disabled = true; } }, 
context:   setHomePageToBookmark: function ()  {    var rv = { url: null };    document.documentElement.openSubDialog("chrome://browser/content/preferences/selectBookmark.xul",                                           "resizable", rv);      if (rv.url) {      var homePageField = document.getElementById("browserStartupHomepage");      homePageField.value = rv.url;      this._pane.userChangedValue(homePageField);    }  },
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/c6957e9c897a1af1d387da5b771ab7a5f78ef57c/general.js/clean/browser/components/preferences/general.js