Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d96baae2fc0eace2d90af8fb65693ec776b03058
      
https://github.com/WebKit/WebKit/commit/d96baae2fc0eace2d90af8fb65693ec776b03058
  Author: Anne van Kesteren <[email protected]>
  Date:   2026-03-08 (Sun, 08 Mar 2026)

  Changed paths:
    M Source/WebCore/dom/Document.cpp
    M Source/WebCore/dom/Element.cpp
    M Source/WebCore/dom/NodeInlines.h

  Log Message:
  -----------
  Adopt queueTaskKeepingNodeAlive() in Document & Element for obvious cases
https://bugs.webkit.org/show_bug.cgi?id=309445

Reviewed by Ryosuke Niwa.

Either we were already using GCReachableRef in which case it's
equivalent or an event is being dispatched in which case it's clear we
are supposed to prevent JS wrapper collection.

Document still has a number of other cases that are more involved that
are left for future cleanup.

We also add a static assert to queueTaskKeepingNodeAlive() to redirect
ActiveDOMObject objects to use queueTaskKeepingObjectAlive() instead.
(Relevant for HTMLScriptElement for instance.)

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



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

Reply via email to