Skip to content

Commit

Permalink
follow-up rev 2457243, targetInKnownToBeHandledScope can be null
Browse files Browse the repository at this point in the history
  • Loading branch information
roytam1 committed Mar 19, 2023
1 parent 85f6a49 commit af28af9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dom/base/FragmentOrElement.cpp
Expand Up @@ -1022,7 +1022,7 @@ nsIContent::GetEventTargetParent(EventChainPreVisitor& aVisitor)
nsContentUtils::Retarget(relatedTargetAsNode, this);
nsCOMPtr<nsINode> targetInKnownToBeHandledScope =
FindChromeAccessOnlySubtreeOwner(aVisitor.mTargetInKnownToBeHandledScope);
if (nsContentUtils::ContentIsShadowIncludingDescendantOf(
if (targetInKnownToBeHandledScope && nsContentUtils::ContentIsShadowIncludingDescendantOf(
this, targetInKnownToBeHandledScope->SubtreeRoot())) {
// Part of step 11.4.
// "If target's root is a shadow-including inclusive ancestor of
Expand Down

0 comments on commit af28af9

Please sign in to comment.