Bug 368760, r=mats, sr=roc, a=blocking1.9+

This commit is contained in:
2007-11-22 12:47:33 -08:00
parent 6d0d2e9ee9
commit 750ad2685e
14 changed files with 247 additions and 139 deletions

View File

@@ -2716,9 +2716,10 @@ nsTextControlFrame::SetValue(const nsAString& aValue)
selPriv->StartBatchChanges();
}
nsCOMPtr<nsISelectionController> kungFuDeathGrip = mSelCon;
mSelCon->SelectAll();
nsCOMPtr<nsIPlaintextEditor> plaintextEditor = do_QueryInterface(editor);
if (!plaintextEditor) {
if (!plaintextEditor || !weakFrame.IsAlive()) {
NS_WARNING("Somehow not a plaintext editor?");
if (pushed) {
JSContext* cx;