Bug 590554 - Part 2: Disable the end offset assertion for password fields; r=roc

--HG--
extra : rebase_source : 0e3dce695eafc269f1efdacd57d56d5383be6bd9
This commit is contained in:
Ehsan Akhgari 2010-08-30 16:38:43 -04:00
parent 074274faef
commit 6b504676d7

View File

@ -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;
}