| Summary: | Web Inspector: Assertion Failed removing subview in ContentViewContainer.prototype._disassociateFromContentView | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Patrick Angle <pangle> | ||||||
| Component: | Web Inspector | Assignee: | Patrick Angle <pangle> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | ews-watchlist, hi, inspector-bugzilla-changes, pangle, webkit-bug-importer | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Attachments: |
|
||||||||
|
Description
Patrick Angle
2021-12-21 11:40:40 PST
Created attachment 447741 [details]
Patch v1.0
Comment on attachment 447741 [details] Patch v1.0 View in context: https://bugs.webkit.org/attachment.cgi?id=447741&action=review r=me > Source/WebInspectorUI/UserInterface/Views/ContentViewContainer.js:429 > + this.removeSubview(contentView); So this call was added in r283728 and was originally guarded by `contentView.constructor.shouldNotRemoveFromDOMWhenHidden()`. I'm not really sure if we want this to be something that _always_ happens outside of that check (especially since almost all callers of this will call `_hideEntry` right before, which also does `removeSubview`). Maybe we should restructure this so that it's all underneath `contentView.constructor.shouldNotRemoveFromDOMWhenHidden()`? ``` // Hidden/non-visible extension tabs must remain attached to the DOM to avoid reloading. if (contentView.constructor.shouldNotRemoveFromDOMWhenHidden()) { if (!contentView.visible) return; if (contentView.attached) this.removeSubview(contentView); } ``` Created attachment 447743 [details]
Patch v1.1
Committed r287346 (245488@main): <https://commits.webkit.org/245488@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 447743 [details]. |