Bug 931911 - crash in mozilla::a11y::SelectionManager::ProcessSelectionChanged(nsISelection*), r=tbsaunde

This commit is contained in:
Alexander Surkov 2013-10-29 23:19:04 -04:00
parent bfedaf9174
commit ced762ed5c

View File

@ -169,6 +169,9 @@ void
SelectionManager::ProcessSelectionChanged(nsISelection* aSelection)
{
Selection* selection = static_cast<Selection*>(aSelection);
if (!selection->GetPresShell())
return;
const nsRange* range = selection->GetAnchorFocusRange();
nsINode* cntrNode = nullptr;
if (range)