Bug 261762

Summary: Regression(267850@main) Flaky crash under the MediaStream destructor
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: WebCore Misc.Assignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: a_protyasha, rreno, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Chris Dumez 2023-09-19 11:43:26 PDT
Flaky crash under the MediaStream destructor since 267850@main:
```
ASSERTION FAILED: !m_inRemovedLastRefFunction
/Volumes/Data/worker/macOS-AppleSilicon-Ventura-Debug-Build-EWS/build/Source/WebCore/dom/Node.h(785) : void WebCore::Node::ref() const
1   0x13a27d3d0 WTFCrash
2   0x28416b130 WebCore::NetworkResourcesData::ResourceData::hasContent() const
3   0x282ab46e8 WebCore::Node::ref() const
4   0x282ab45a4 WTF::DefaultRefDerefTraits<WebCore::Document>::refIfNotNull(WebCore::Document*)
5   0x28015b58c WTF::RefPtr<WebCore::Document, WTF::RawPtrTraits<WebCore::Document>, WTF::DefaultRefDerefTraits<WebCore::Document>>::RefPtr(WebCore::Document*)
6   0x28303b53c WTF::RefPtr<WebCore::Document, WTF::RawPtrTraits<WebCore::Document>, WTF::DefaultRefDerefTraits<WebCore::Document>>::RefPtr(WebCore::Document*)
7   0x2827f3c64 WebCore::MediaStream::~MediaStream()
8   0x2827f3de0 WebCore::MediaStream::~MediaStream() 
```
Comment 1 Chris Dumez 2023-09-19 11:46:35 PDT
Pull request: https://github.com/WebKit/WebKit/pull/17929
Comment 2 EWS 2023-09-19 13:02:04 PDT
Committed 268144@main (d00eeaf712d4): <https://commits.webkit.org/268144@main>

Reviewed commits have been landed. Closing PR #17929 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2023-09-19 13:03:22 PDT
<rdar://problem/115742083>