mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 06:45:42 +00:00
Bug 590554 - Part 2: Disable the end offset assertion for password fields; r=roc
--HG-- extra : rebase_source : 0e3dce695eafc269f1efdacd57d56d5383be6bd9
This commit is contained in:
parent
074274faef
commit
6b504676d7
@ -634,7 +634,8 @@ nsPlaintextEditor::GetTextSelectionOffsets(nsISelection *aSelection,
|
||||
|
||||
if (endOffset == -1) {
|
||||
NS_ASSERTION(endNode == rootNode, "failed to find the end node");
|
||||
NS_ASSERTION(endNodeOffset == nodeCount-1 || endNodeOffset == 0,
|
||||
NS_ASSERTION(IsPasswordEditor() ||
|
||||
(endNodeOffset == nodeCount-1 || endNodeOffset == 0),
|
||||
"invalid end node offset");
|
||||
endOffset = endNodeOffset == 0 ? 0 : totalLength;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user