[webkit-changes] [WebKit/WebKit] 952a0b: Nullptr crash in WebCore::HTMLAnchorElement::isKey...

pratiksha-99 noreply at github.com
Mon Oct 14 14:41:22 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 952a0bb866457207750ab33fe8e35aa6bd101007
      https://github.com/WebKit/WebKit/commit/952a0bb866457207750ab33fe8e35aa6bd101007
  Author: Pratiksha Choudhury <p_choudhury at apple.com>
  Date:   2024-10-14 (Mon, 14 Oct 2024)

  Changed paths:
    M Source/WebCore/html/HTMLAnchorElement.cpp
    M Source/WebCore/svg/SVGAElement.cpp

  Log Message:
  -----------
  Nullptr crash in WebCore::HTMLAnchorElement::isKeyboardFocusable
https://bugs.webkit.org/show_bug.cgi?id=281282
rdar://137177639

Reviewed by Ryosuke Niwa.

Added nullptr check for the LocalFrame before focused keyboard events.
This does not have a reliable test case but have tested locally on Mac
that WebKit does not have this crash.

* Source/WebCore/html/HTMLAnchorElement.cpp:
(WebCore::HTMLAnchorElement::isKeyboardFocusable const):
* Source/WebCore/svg/SVGAElement.cpp:
(WebCore::SVGAElement::isKeyboardFocusable const):

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



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list