This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Web Inspector: Computed Panel: Assertion Failed: Cannot remove view w…
…hich isn't a subview. ComputedStyleSection https://bugs.webkit.org/show_bug.cgi?id=240644 Reviewed by Patrick Angle. The root cause for this failed assertion is an accumulation of orphaned `WI.ComputedStyleSection` view instances in `WI.ComputedStyleDetailsPanel._detailsSectionByStyleSectionMap`. 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. 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 fails. The issue gets progressively worse on each `layout()` run by accumulating more orphans. * Source/WebInspectorUI/UserInterface/Views/ComputedStyleDetailsPanel.js: (WI.ComputedStyleDetailsPanel.prototype.layout): Canonical link: https://commits.webkit.org/250763@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@294506 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing 1 changed file with 3 additions and 5 deletions.