Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Crash under eventTargetRespectingTargetRules()
https://bugs.webkit.org/show_bug.cgi?id=158273 <rdar://problem/26343998> Reviewed by Alex Christensen. The code would call nodeOrHostIfPseudoElement(), which can return null and then dereference it in eventTargetRespectingTargetRules() without null check. This patch adds a null check. When the node is null, the while loop after will do nothing and thus the target will not be used. No new tests, we do not have a good reproduction case. * dom/EventPath.cpp: (WebCore::EventPath::EventPath): Canonical link: https://commits.webkit.org/176363@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@201571 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information