After writing more tests in bug 74802 I found an issue with cleanup for timeouts in ResourceHandleSoup.
If a request was already sent out, then the timeout timer expires we start clearing the ResourceHandle - which leads to a RefPtr !m_deletionHasBegun failure when the sendRequestCallback is called. As a solution, I propose to reuse the d->m_cancelled flag for that purpose, and only destroy the handle when one of the progress callbacks is called - as before.
Created attachment 166732 [details]
See also: https://bugs.webkit.org/show_bug.cgi?id=98055
Is this bug a duplicate?
(In reply to comment #2)
> See also: https://bugs.webkit.org/show_bug.cgi?id=98055
> Is this bug a duplicate?
Good catch, thanks.
*** This bug has been marked as a duplicate of bug 98055 ***