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
Родитель 55fee37f7b
Коммит 8110509627
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -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.