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]

git-svn-id: svn://10.0.0.236/trunk@249897 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
reed%reedloden.com
2008-04-09 06:16:09 +00:00
parent 5462896130
commit 43fdadd8ea

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.