Bug 1168881 - Enabling AccessibleCarets crashes Firefox when trying to input text, r=tylin

This commit is contained in:
Mark Capella 2015-05-28 02:20:15 -04:00
parent 950d3dea12
commit 50610030b0

View File

@ -2559,7 +2559,8 @@ PresShell::CheckVisibilityContent(nsIContent* aNode, int16_t aStartOffset,
NS_IMETHODIMP
PresShell::GetSelectionCaretsVisibility(bool* aOutVisibility)
{
*aOutVisibility = (SelectionCaretPrefEnabled() && mSelectionCarets->GetVisibility());
*aOutVisibility = (SelectionCaretPrefEnabled() &&
mSelectionCarets && mSelectionCarets->GetVisibility());
return NS_OK;
}