[webkit-changes] [WebKit/WebKit] 6fa583: nullptr crash in EventPath::eventTargetRespectingT...

Ryosuke Niwa noreply at github.com
Mon Nov 6 15:38:35 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6fa5837d95d9f71454e6012960e03ecaf3009ed0
      https://github.com/WebKit/WebKit/commit/6fa5837d95d9f71454e6012960e03ecaf3009ed0
  Author: Ryosuke Niwa <rniwa at webkit.org>
  Date:   2023-11-06 (Mon, 06 Nov 2023)

  Changed paths:
    M Source/WebCore/dom/EventPath.cpp

  Log Message:
  -----------
  nullptr crash in EventPath::eventTargetRespectingTargetRules via EventPath::buildPath
https://bugs.webkit.org/show_bug.cgi?id=264276
<rdar://117902151>

Reviewed by Chris Dumez.

Add a nullptr check where the crash occurs. Also add a debug assert since this node
should never be nullptr in theory.

* Source/WebCore/dom/EventPath.cpp:
(WebCore::EventPath::buildPath):

Canonical link: https://commits.webkit.org/270295@main




More information about the webkit-changes mailing list