mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1169996 - Don't lose eEditorMailMask; r=ehsan
This commit is contained in:
parent
653e06c529
commit
8dcf312ceb
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user