Title: [295063] trunk/Source/WebCore/dom/Element.cpp
- Revision
- 295063
- Author
- [email protected]
- Date
- 2022-05-31 13:53:59 -0700 (Tue, 31 May 2022)
Log Message
REGRESSION (251042@main):[ iOS Debug ] ASSERTION FAILED: m_ptr in Ref.h(115) : T *WTF::Ref<WTF::WeakPtrImpl<>>::operator->() const [T = WTF::WeakPtrImpl<>, Traits = WTF::RawPtrTraits<WTF::WeakPtrImpl<>>]
https://bugs.webkit.org/show_bug.cgi?id=241141
<rdar://94168551>
Unreviewed, remove null references in the WeakHashMap before calling
WeakHashMap::ensure() to address assertion hits on iOS Debug bots.
This seems to indicate a potential WeakHashMap bug where
WeakHashMap::ensure() can get confused if the WeakMapHash contains
null references but I'll investigate separately.
* Source/WebCore/dom/Element.cpp:
(WebCore::Element::identifier const):
Canonical link: https://commits.webkit.org/251158@main
Modified Paths
Diff
Modified: trunk/Source/WebCore/dom/Element.cpp (295062 => 295063)
--- trunk/Source/WebCore/dom/Element.cpp 2022-05-31 20:19:12 UTC (rev 295062)
+++ trunk/Source/WebCore/dom/Element.cpp 2022-05-31 20:53:59 UTC (rev 295063)
@@ -4869,6 +4869,7 @@
ElementIdentifier Element::identifier() const
{
+ elementIdentifiersMap().removeNullReferences();
return elementIdentifiersMap().ensure(*this, [] { return ElementIdentifier::generate(); }).iterator->value;
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes