Bug 186643 del key at the end of the urlbar asserts
r=jfrancis sr=bz git-svn-id: svn://10.0.0.236/trunk@136612 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
7cdf82e614
commit
ce888ded2b
@ -932,7 +932,7 @@ nsTextEditRules::WillDeleteSelection(nsISelection *aSelection,
|
||||
}
|
||||
// fix for bugzilla #125161: if we are about to forward delete a <BR>,
|
||||
// make sure it is not last node in editfield. If it is, cancel deletion.
|
||||
if ((aCollapsedAction == nsIEditor::eNext) && nsTextEditUtils::IsBreak(nextNode))
|
||||
if (nextNode && (aCollapsedAction == nsIEditor::eNext) && nsTextEditUtils::IsBreak(nextNode))
|
||||
{
|
||||
nsCOMPtr<nsIDOMNode> lastChild;
|
||||
if (!mBody) return NS_ERROR_NULL_POINTER;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user