Bug 1343037 part 4. Fix type changes on an input to properly grab the selection offsets from the old editor before we ask the editor state for them. r=ehsan
MozReview-Commit-ID: IDdt0qedJpT
This commit is contained in:
@@ -5136,6 +5136,7 @@ HTMLInputElement::HandleTypeChange(uint8_t aNewType)
|
||||
nsTextEditorState::SelectionProperties sp;
|
||||
|
||||
if (GetEditorState()) {
|
||||
mInputData.mState->SyncUpSelectionPropertiesBeforeDestruction();
|
||||
sp = mInputData.mState->GetSelectionProperties();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user