Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2e6b74ec37593d122422021b61106e8d4c4968b2
      
https://github.com/WebKit/WebKit/commit/2e6b74ec37593d122422021b61106e8d4c4968b2
  Author: Yusuke Suzuki <[email protected]>
  Date:   2026-03-20 (Fri, 20 Mar 2026)

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

  Log Message:
  -----------
  WebCore should not post a microtask while in GC
https://bugs.webkit.org/show_bug.cgi?id=310372
rdar://172656576

Reviewed by Keith Miller and Ryosuke Niwa.

Queuing microtask from the GC destructor is not allowed as microtask is
JS concept which strongly assumes that it is posted from the normal
execution (not in GC). This patch adds a workaround to
EventLoopTaskGroup::queueMicrotask and switching to macrotask when we
are in GC.

* Source/WebCore/dom/EventLoop.cpp:
(WebCore::EventLoopTaskGroup::queueMicrotask):

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



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

Reply via email to