Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
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
Showing
with
19 additions
and 1 deletion.
- +18 −0 Source/WebCore/ChangeLog
- +1 −1 Source/WebCore/dom/EventPath.cpp
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters