Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7e8fd0583ea42ebe4f12659daec84a3513b731e7
      
https://github.com/WebKit/WebKit/commit/7e8fd0583ea42ebe4f12659daec84a3513b731e7
  Author: Ryosuke Niwa <[email protected]>
  Date:   2026-04-23 (Thu, 23 Apr 2026)

  Changed paths:
    A LayoutTests/fast/dom/tree-walker-disconnected-currentNode-expected.txt
    A LayoutTests/fast/dom/tree-walker-disconnected-currentNode.html
    M Source/WebCore/bindings/js/JSTreeWalkerCustom.cpp
    M Source/WebCore/dom/TreeWalker.cpp
    M Source/WebCore/dom/TreeWalker.h

  Log Message:
  -----------
  GC correctness for TreeWalker.currentNode
https://bugs.webkit.org/show_bug.cgi?id=313107

Reviewed by Anne van Kesteren.

Keep JS wrappers for ancestors of TreeWalker.currentNode alive.

Test: fast/dom/tree-walker-disconnected-currentNode.html

* LayoutTests/fast/dom/tree-walker-disconnected-currentNode-expected.txt: Added.
* LayoutTests/fast/dom/tree-walker-disconnected-currentNode.html: Added.
* Source/WebCore/bindings/js/JSTreeWalkerCustom.cpp:
(WebCore::JSTreeWalker::visitAdditionalChildrenInGCThread):
* Source/WebCore/dom/TreeWalker.cpp:
(WebCore::TreeWalker::opaqueRootForCurrentNodeInGCThread const):
(WebCore::TreeWalker::setCurrentNode):
* Source/WebCore/dom/TreeWalker.h:

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



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

Reply via email to