Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ASSERT in Document::unregisterCollection reloading apple.com
https://bugs.webkit.org/show_bug.cgi?id=135168 Reviewed by Andreas Kling. * dom/Document.cpp: (WebCore::Document::unregisterCollection): This assertion was failing because the passed-in HTMLCollection was not invalidated for a non-related attribute, but was instead unregistered during destruction, at which point the m_collectionsInvalidatedAtDocument HashSet was empty. The assertion could be trivially reduced into checking that the HashSet is empty when it was moved out of in Document::invalidateNodeListAndCollectionCaches(), but that just checks that the move semantics on HashSet work properly. Removing a non-existent element from a HashSet is harmless, so the assertion can be removed completely. Canonical link: https://commits.webkit.org/153571@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@172210 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information