This test hits a debug assertion every second time it is run when running with more than one iteration. We should investigate and fix. ASSERTION FAILED: !m_deletionHasBegun 1 0x137ea2918 WTFCrash 2 0x137ea2938 WTFIsDebuggerAttached 3 0x282dc0710 WTF::ThreadSafeRefCountedBase::ref() const 4 0x2834def8c WTF::Ref<WebCore::LocalFrame, WTF::RawPtrTraits<WebCore::LocalFrame>>::Ref(WebCore::LocalFrame&) 5 0x2833f5e28 WTF::Ref<WebCore::LocalFrame, WTF::RawPtrTraits<WebCore::LocalFrame>>::Ref(WebCore::LocalFrame&) 6 0x284bf9530 WebCore::EventHandler::protectedFrame() const 7 0x284bf91f0 WebCore::EventHandler::clearLatchedState() 8 0x284bf8dcc WebCore::EventHandler::clear() 9 0x284c6709c WebCore::LocalFrame::setView(WTF::RefPtr<WebCore::LocalFrameView, WTF::RawPtrTraits<WebCore::LocalFrameView>, WTF::DefaultRefDerefTraits<WebCore::LocalFrameView>>&&) 10 0x284c66d68 WebCore::LocalFrame::~LocalFrame() 11 0x284c67504 WebCore::LocalFrame::~LocalFrame() 12 0x284c67534 WebCore::LocalFrame::~LocalFrame() 13 0x11e91e238 WTF::ThreadSafeRefCounted<WebCore::Frame, (WTF::DestructionThread)1>::deref() const::'lambda'()::operator()() const 14 0x11e91e1c4 WTF::Detail::CallableWrapper<WTF::ThreadSafeRefCounted<WebCore::Frame, (WTF::DestructionThread)1>::deref() const::'lambda'(), void>::call() 15 0x137eccd70 WTF::Function<void ()>::operator()() const 16 0x137f2e320 WTF::ensureOnMainThread(WTF::Function<void ()>&&) 17 0x11e91dfdc WTF::ThreadSafeRefCounted<WebCore::Frame, (WTF::DestructionThread)1>::deref() const 18 0x120e568fc WTF::DefaultRefDerefTraits<WebCore::Frame>::derefIfNotNull(WebCore::Frame*) 19 0x120b7778c WTF::RefPtr<WebCore::Frame, WTF::RawPtrTraits<WebCore::Frame>, WTF::DefaultRefDerefTraits<WebCore::Frame>>::~RefPtr() 20 0x120b6d51c WTF::RefPtr<WebCore::Frame, WTF::RawPtrTraits<WebCore::Frame>, WTF::DefaultRefDerefTraits<WebCore::Frame>>::~RefPtr() 21 0x120e84960 WebKit::WebFrame::didCommitLoadInAnotherProcess(std::__1::optional<WTF::ObjectIdentifierGeneric<WebCore::LayerHostingContextIdentifierType, WTF::ObjectIdentifierMainThreadAccessTraits>>)
<rdar://problem/118946373>