[Webkit-unassigned] [Bug 240644] New: Web Inspector: Computed Panel: Assertion Failed: Cannot remove view which isn't a subview. ComputedStyleSection

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 19 05:55:27 PDT 2022


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

            Bug ID: 240644
           Summary: Web Inspector: Computed Panel: Assertion Failed:
                    Cannot remove view which isn't a subview.
                    ComputedStyleSection
           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: rcaliman at apple.com
                CC: inspector-bugzilla-changes at group.apple.com

```
[Error] Assertion Failed: Cannot remove view which isn't a subview.
ComputedStyleSection {_listeners: Multimap, _element: <div class="computed-style-section">, _parentView: null, _subviews: [], _dirty: false, …}
        removeSubview (View.js:127)
        layout (ComputedStyleDetailsPanel.js:216)
        _layoutSubtree (View.js:308)
        _layoutSubtree (View.js:319)
        _layoutSubtree (View.js:319)
        _visitViewTreeForLayout (View.js:378)
```

The root cause of this failed assertion is an accumulation of orphaned `WI.ComputedStyleSection` instances in `this._detailsSectionByStyleSectionMap` from `WI.ComputedStyleDetailsPanel`. 

When `WI.ComputedStyleDetailsPanel.layout()` is called to reflect the latest selected node's variables, the previous `WI.ComputedStyleSection` view instance for ungrouped variables is accidentally kept around even though its host DOM node was removed. When attempting to remove this view on the next `layout()` run, this orphaned instance has no host node that belongs to the parent view so the assertion is hit. The issue gets progressively worse on each `layout()` run by accumulating more orphans.

-- 
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/20220519/9153b595/attachment-0001.htm>


More information about the webkit-unassigned mailing list