Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Web Inspector: Elements Tab DOM Tree does not update when a top-level…
… item in the DOM tree is added/removed https://bugs.webkit.org/show_bug.cgi?id=227774 rdar://31137058 Reviewed by Devin Rousso. While unlikely to affect a majority of users, it is possible to call `document.write("")` followed by `document.close()` to rewrite the entire documents contents, which means top-level items in the DOM tree outline view will need to be removed and inserted. Previously, updates were only performed for node insertion/deletion when that node had a parent node represented in the DOM tree. However, this means for the above example where one or more nodes will never be represented by a parent node in the DOM tree no update will be performed to reflect those insertions/deletions. In those cases, we should forgo the per-item updating and instead update the entire tree, similar to how we handle all other insertions/deletions where we will update all children of the updated node's parent. * Source/WebInspectorUI/UserInterface/Views/DOMTreeUpdater.js: (WI.DOMTreeUpdater.prototype._updateModifiedNodes): Canonical link: https://commits.webkit.org/254062@main
- Loading branch information