Bug 76915

Summary: [WK2] [GTK] TestDownloads hitting an assertion in Debug builds
Product: WebKit Reporter: Sergio Villar Senin <svillar>
Component: WebKitGTKAssignee: Sergio Villar Senin <svillar>
Status: RESOLVED FIXED    
Severity: Normal CC: cgarcia, svillar
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch mrobinson: review+, mrobinson: commit-queue-

Description Sergio Villar Senin 2012-01-24 07:58:54 PST
This is the assertion

ASSERTION FAILED: m_downloadClient (DownloadSoup.cpp:135)
Comment 1 Sergio Villar Senin 2012-01-24 08:02:03 PST
Created attachment 123735 [details]
Patch
Comment 2 Carlos Garcia Campos 2012-01-24 08:11:12 PST
Comment on attachment 123735 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=123735&action=review

Yeah, my fault, sorry, Patch is correct, except the m_resourceHandle in Download::startWithHandle

> Source/WebKit2/WebProcess/Downloads/soup/DownloadSoup.cpp:145
> -    ASSERT(m_downloadClient);
> +    ASSERT(!m_downloadClient);
>      ASSERT(m_resourceHandle);

This should be !m_resourceHandle, since it's assigned to resourceHandle below
Comment 3 Sergio Villar Senin 2012-01-24 08:13:23 PST
(In reply to comment #2)
> (From update of attachment 123735 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=123735&action=review
> 
> Yeah, my fault, sorry, Patch is correct, except the m_resourceHandle in Download::startWithHandle
> 
> > Source/WebKit2/WebProcess/Downloads/soup/DownloadSoup.cpp:145
> > -    ASSERT(m_downloadClient);
> > +    ASSERT(!m_downloadClient);
> >      ASSERT(m_resourceHandle);
> 
> This should be !m_resourceHandle, since it's assigned to resourceHandle below

Yeah I overlooked it, I thought the ASSERT was checking the function argument
Comment 4 Martin Robinson 2012-01-24 08:48:20 PST
Comment on attachment 123735 [details]
Patch

Please land with cgarcia's suggested fix.
Comment 5 Sergio Villar Senin 2012-01-24 10:03:39 PST
Committed r105746: <http://trac.webkit.org/changeset/105746>