[Webkit-unassigned] [Bug 223378] New: assignedNode->parentElement() can be nullptr in ComposedTreeIterator::traverseNextInShadowTree()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 17 06:52:18 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=223378

            Bug ID: 223378
           Summary: assignedNode->parentElement() can be nullptr in
                    ComposedTreeIterator::traverseNextInShadowTree()
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: cgarcia at igalia.com
                CC: bfulgham at webkit.org, simon.fraser at apple.com,
                    zalan at apple.com

It's not a problem right now because the value is only used to compare its address in ElementAndTextDescendantIterator constructor, so it's always comparing nullpr. But ComposedTreeIterator::Context constructor expects a reference, so we need to handle the case of being nullptr. This can be reproduced with test fast/html/details-set-inner-text-crash.html.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210317/da2562b0/attachment-0001.htm>


More information about the webkit-unassigned mailing list