rem: bodyElement.setAttribute("bgcolor", bgColor); gDefaultBackgroundColor = bgColor; document.getElementById("cmd_backgroundColor").setAttribute("state", bgColor); onBackgroundColorChange(); 
add: if (!bodyElement.hasAttribute("bgcolor")) { bodyElement.setAttribute("bgcolor", bgColor); gDefaultBackgroundColor = bgColor; document.getElementById("cmd_backgroundColor").setAttribute("state", bgColor); onBackgroundColorChange(); } 
context: function loadHTMLMsgPrefs(){  var pref = GetPrefs();  var fontFace;  var fontSize;  var textColor;  var bgColor;    try {     fontFace = pref.getCharPref("msgcompose.font_face");    doStatefulCommand('cmd_fontFace', fontFace);  } catch (e) {}  try {     fontSize = pref.getCharPref("msgcompose.font_size");    EditorSetFontSize(fontSize);  } catch (e) {}  var bodyElement = GetBodyElement();  try {     textColor = pref.getCharPref("msgcompose.text_color");    bodyElement.setAttribute("text", textColor);    gDefaultTextColor = textColor;    document.getElementById("cmd_fontColor").setAttribute("state", textColor);        onFontColorChange();  } catch (e) {}  try {     bgColor = pref.getCharPref("msgcompose.background_color");    bodyElement.setAttribute("bgcolor", bgColor);    gDefaultBackgroundColor = bgColor;    document.getElementById("cmd_backgroundColor").setAttribute("state", bgColor);    onBackgroundColorChange();  } catch (e) {}}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/63b915f250615d20f26734e0b9024d6efb32a602/MsgComposeCommands.js/buggy/mailnews/compose/resources/content/MsgComposeCommands.js