rem: try { colors.TextColor = prefs.CopyCharPref("browser.display.foreground_color"); } catch (e) {} 
add: try { colors.TextColor = prefs.getCharPref("browser.display.foreground_color"); } catch (e) {} 
context: function GetDefaultBrowserColors(){  var prefs = GetPrefs();  var colors = new Object();  var useSysColors = false;  colors.TextColor = 0;  colors.BackgroundColor = 0;  try { useSysColors = prefs.GetBoolPref("browser.display.use_system_colors"); } catch (e) {}  if (!useSysColors)  {    try { colors.TextColor = prefs.CopyCharPref("browser.display.foreground_color"); } catch (e) {}    try { colors.BackgroundColor = prefs.CopyCharPref("browser.display.background_color"); } catch (e) {}  }  // Use OS colors for text and background if explicitly asked or pref is not set  if (!colors.TextColor)    colors.TextColor = "windowtext";  if (!colors.BackgroundColor)    colors.BackgroundColor = "window";  colors.LinkColor = prefs.CopyCharPref("browser.anchor_color");  colors.VisitedLinkColor = prefs.CopyCharPref("browser.visited_color");  return colors;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/faf03ce445712b372523f881cc3144cfadc7a611/EdDialogCommon.js/buggy/editor/ui/dialogs/content/EdDialogCommon.js