Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 87fedd82a16530e11847ba929c480693992c8443
      
https://github.com/WebKit/WebKit/commit/87fedd82a16530e11847ba929c480693992c8443
  Author: Ryosuke Niwa <[email protected]>
  Date:   2026-07-02 (Thu, 02 Jul 2026)

  Changed paths:
    A 
LayoutTests/fast/events/new-focused-document-removal-during-blur-event-handler-crash-expected.txt
    A 
LayoutTests/fast/events/new-focused-document-removal-during-blur-event-handler-crash.html

  Log Message:
  -----------
  Use-after-free in FocusController::findAndFocusElementInDocumentOrder
https://bugs.webkit.org/show_bug.cgi?id=313702
rdar://175673194

Reviewed by Aditya Keerthi.

Fixed the bug by deploying a smart pointer.

Test: 
fast/events/new-focused-document-removal-during-blur-event-handler-crash.html

* 
LayoutTests/fast/events/new-focused-document-removal-during-blur-event-handler-crash-expected.txt:
 Added.
* 
LayoutTests/fast/events/new-focused-document-removal-during-blur-event-handler-crash.html:
 Added.
* Source/WebCore/page/FocusController.cpp:
(WebCore::FocusController::findAndFocusElementInDocumentOrderStartingWithFrame):

Originally-landed-as: 305413.804@safari-7624-branch (f9763c9248db). 
rdar://180428014
Canonical link: https://commits.webkit.org/316373@main



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

Reply via email to