зеркало из https://github.com/mozilla/pjs.git
bug 202561 - html mail dialog comes up when it isn't supposed to - r/sr=sspitzer
This commit is contained in:
Родитель
0363aa3019
Коммит
9ddfc77e01
|
@ -2852,8 +2852,6 @@ function loadHTMLMsgPrefs() {
|
|||
try {
|
||||
fontFace = pref.getCharPref("msgcompose.font_face");
|
||||
doStatefulCommand('cmd_fontFace', fontFace);
|
||||
EditorRemoveTextProperty("font","face");
|
||||
EditorSetTextProperty("font", "face", fontFace);
|
||||
} catch (e) {}
|
||||
|
||||
try {
|
||||
|
|
|
@ -4137,15 +4137,22 @@ nsresult nsMsgCompose::TagConvertible(nsIDOMNode *node, PRInt32 *_retval)
|
|||
if (domElement)
|
||||
{
|
||||
PRBool hasAttribute;
|
||||
nsAutoString color;
|
||||
if (NS_SUCCEEDED(domElement->HasAttribute(NS_LITERAL_STRING("background"), &hasAttribute))
|
||||
&& hasAttribute) // There is a background image
|
||||
*_retval = nsIMsgCompConvertible::No;
|
||||
else if (NS_SUCCEEDED(domElement->HasAttribute(NS_LITERAL_STRING("text"), &hasAttribute))
|
||||
&& hasAttribute) // There is a text color
|
||||
else if (NS_SUCCEEDED(domElement->HasAttribute(NS_LITERAL_STRING("text"), &hasAttribute)) &&
|
||||
hasAttribute &&
|
||||
NS_SUCCEEDED(domElement->GetAttribute(NS_LITERAL_STRING("text"), color)) &&
|
||||
!color.Equals(NS_LITERAL_STRING("#000000"))) {
|
||||
*_retval = nsIMsgCompConvertible::Altering;
|
||||
else if (NS_SUCCEEDED(domElement->HasAttribute(NS_LITERAL_STRING("bgcolor"), &hasAttribute))
|
||||
&& hasAttribute) // There is a background color
|
||||
}
|
||||
else if (NS_SUCCEEDED(domElement->HasAttribute(NS_LITERAL_STRING("bgcolor"), &hasAttribute)) &&
|
||||
hasAttribute &&
|
||||
NS_SUCCEEDED(domElement->GetAttribute(NS_LITERAL_STRING("bgcolor"), color)) &&
|
||||
!color.Equals(NS_LITERAL_STRING("#FFFFFF"), nsCaseInsensitiveStringComparator())) {
|
||||
*_retval = nsIMsgCompConvertible::Altering;
|
||||
}
|
||||
|
||||
//ignore special color setting for link, vlink and alink at this point.
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче