Bug 1169996 - Don't lose eEditorMailMask; r=ehsan

This commit is contained in:
Jorg K 2015-06-01 17:42:49 +02:00
parent 653e06c529
commit 8dcf312ceb

View File

@ -1298,6 +1298,13 @@ nsTextEditorState::PrepareEditor(const nsAString *aValue)
}
newEditor = mEditor; // just pretend that we have a new editor!
// Don't lose application flags in the process.
uint32_t originalFlags = 0;
newEditor->GetFlags(&originalFlags);
if (originalFlags & nsIPlaintextEditor::eEditorMailMask) {
editorFlags |= nsIPlaintextEditor::eEditorMailMask;
}
}
// Get the current value of the textfield from the content.