зеркало из https://github.com/mozilla/gecko-dev.git
added a special case to the output text rules for an empty document
(one that contains the bogus node)
This commit is contained in:
Родитель
a488cd15db
Коммит
796446129f
|
@ -835,6 +835,11 @@ nsTextEditRules::WillOutputText(nsIDOMSelection *aSelection,
|
|||
*aOutString = mPasswordText;
|
||||
*aCancel = PR_TRUE;
|
||||
}
|
||||
else if (mBogusNode)
|
||||
{ // this means there's no content, so output null string
|
||||
*aOutString = "";
|
||||
*aCancel = PR_TRUE;
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -835,6 +835,11 @@ nsTextEditRules::WillOutputText(nsIDOMSelection *aSelection,
|
|||
*aOutString = mPasswordText;
|
||||
*aCancel = PR_TRUE;
|
||||
}
|
||||
else if (mBogusNode)
|
||||
{ // this means there's no content, so output null string
|
||||
*aOutString = "";
|
||||
*aCancel = PR_TRUE;
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче