[Webkit-unassigned] [Bug 49018] [GTK] response.isNull() assert when using directory file URI

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 11 05:46:05 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=49018





--- Comment #24 from Nicolas Dufresne <nicolas.dufresne at collabora.co.uk>  2010-11-11 05:46:05 PST ---
(In reply to comment #23)
> (In reply to comment #22)
> > Created an attachment (id=73535)
 --> (https://bugs.webkit.org/attachment.cgi?id=73535&action=review) [details] [details]
> > Fix assert using directory file URI
> > 
> > Updated patch.
> 
> The patch looks good to me, don't know if we need such amount of new asserts tough :). Being a bit picky I wouldn't say "Ensure a response for protocol using GIO.", we're ensuring it for any protocol not directly handled by WebKitGtk+, it could be gio, libsoup or whatever.

All the asserts have been triggered once by at least one test. The numerous assert is just an indicator of how spaghetti is that code ;)

I was doing generic stuff and you guys complained, so I've did it for what exist, and in this case soup and data was working, so I only fixed GIO (nothing else exist atm).

> 
> And regarding the comment in the ChangeLog I suggest something more descriptive like:
> "Do ensure that didReceiveResponse happens before any call to didReceiveData. That was not true for file: URIs pointing to directories and thus was triggering an assertion." I think that's a bit better because your patch is really fixing that instead of only the directory issue mentioned in the bug. Just my 2 cents.

No, it was working for normal files, only directories where affected. FTP and FTPs always do errors (not mounted error), so they are not affected.

> 
> Thx!
> 

Just want to leave a note that it gets really frustrating when reviews are being done 1 line at the time. Please, consider doing full review next time, you'll save time and I'll save time too.

Thanks for the review, I don't see anymore issues now.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list