зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
67ce89ca20
Коммит
d7895294f4
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче