Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ae9baa4b0135d0c8e4c549793240905223f69d3e
      
https://github.com/WebKit/WebKit/commit/ae9baa4b0135d0c8e4c549793240905223f69d3e
  Author: Chris Dumez <[email protected]>
  Date:   2026-06-29 (Mon, 29 Jun 2026)

  Changed paths:
    A LayoutTests/fast/dom/CloseWatcher-watcher-crash-expected.txt
    A LayoutTests/fast/dom/CloseWatcher-watcher-crash.html
    M Source/WebCore/html/closewatcher/CloseWatcher.cpp

  Log Message:
  -----------
  use-after-free in CloseWatcher::destroy(): abort-signal algorithm calls 
destroy() via WeakPtr while CloseWatcherManager holds the last Ref
https://bugs.webkit.org/show_bug.cgi?id=313626
rdar://175672431

Reviewed by Ryosuke Niwa.

Protect the watcher before calling destroy() on it.

Test: fast/dom/CloseWatcher-watcher-crash.html

* LayoutTests/fast/dom/CloseWatcher-watcher-crash-expected.txt: Added.
* LayoutTests/fast/dom/CloseWatcher-watcher-crash.html: Added.
* Source/WebCore/html/closewatcher/CloseWatcher.cpp:
(WebCore::CloseWatcher::create):

Originally-landed-as: 305413.770@safari-7624-branch (a2cb3a724645). 
rdar://180428565
Canonical link: https://commits.webkit.org/316040@main



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

Reply via email to