[Webkit-unassigned] [Bug 224652] New: Web Inspector: Tree Outlines: `ondetach` can be called without `onattach` ever being called

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 15 23:45:49 PDT 2021


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

            Bug ID: 224652
           Summary: Web Inspector: Tree Outlines: `ondetach` can be called
                    without `onattach` ever being called
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Inspector
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: drousso at apple.com
                CC: inspector-bugzilla-changes at group.apple.com

`onattach` is only called if the `WI.TreeElement` has a `_listItemNode` and its parent `_shouldRefreshChildren`, meaning that if `removeChild`/`removeChildren` is called before those conditions are met then `ondetach` will get called, which could result in bad consistency/state

-- 
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/20210416/9718a789/attachment-0001.htm>


More information about the webkit-unassigned mailing list