Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-pick 252432.689@safari-7614-branch (706a069). rdar://103520049 Correctly teardown children for elements with NULL renderer which have display contents changed. rdar://problem/99616850 Reviewed by Antti Koivisto. - When an element has display-contents:true, we don't created a renderer for it, but its children may still have rendenders which point to nodes in the DOM. When certain nodes in the DOM are torn down, these renderers were holding stale references, which caused use-after-free issues. The patch fixes the issue by correcting the teardown logic for such nodes. * Source/WebCore/dom/ContainerNode.cpp: (WebCore::destroyRenderTreeIfNeeded): Canonical link: https://commits.webkit.org/252432.689@safari-7614-branch Canonical link: https://commits.webkit.org/258098@main
- Loading branch information