rem: var newPrefValue = document.getElementById("startupPage").value; 
add: var newPrefValue;     try { newPrefValue = gData.navigatorData["startupPage"].value; } catch(ex) { gData = parent.hPrefWindow.wsm.dataManager .pageData["chrome: newPrefValue = gData.navigatorData["startupPage"].value; }  
context: function doOnOk(){  var newPrefValue = document.getElementById("startupPage").value;  if (gData.navigatorData["startupPage"].changed) {    // if our home page isn't the last page visited anymore,    // set the last_page_visited to "" for privacy reasons.    if (gData.navigatorData["startupPage"].originalValue == 2) {      parent.hPrefWindow.setPref("string", "browser.history.last_page_visited", "");    }    else if (newPrefValue == 2) {      parent.hPrefWindow.setPref("string", "browser.history.last_page_visited", getCurrentPage());    }  }}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/a338d5efd554ed3e4abe4d1fedc7263e1bbadf68/pref-navigator.js/buggy/xpfe/components/prefwindow/resources/content/pref-navigator.js