Bug 427163 - "Crash [@ nsContentUtils::ContentIsDescendantOf] with contenteditable, right-clicking and document.write" (add null check) [p=chris@pearce.org.nz (Chris Pearce [cpearce]) r+sr=roc a1.9=damons]

This commit is contained in:
reed@reedloden.com 2008-04-08 23:16:09 -07:00
parent e20c3514d6
commit 9eb7749c18

View File

@ -1005,6 +1005,8 @@ PRBool nsCaret::IsMenuPopupHidingCaret()
if (!node)
return PR_TRUE; // No selection/caret to draw.
nsCOMPtr<nsIContent> caretContent = do_QueryInterface(node);
if (!caretContent)
return PR_TRUE; // No selection/caret to draw.
// If there's a menu popup open before the popup with
// the caret, don't show the caret.