[Webkit-unassigned] [Bug 121123] Web Inspector: Do not try to parse incomplete HTTP requests

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Sep 16 07:07:45 PDT 2013


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


Andre Moreira Magalhaes <andrunko at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #211555|0                           |1
        is obsolete|                            |
 Attachment #211778|                            |review?, commit-queue?
               Flag|                            |




--- Comment #9 from Andre Moreira Magalhaes <andrunko at gmail.com>  2013-09-16 07:06:52 PST ---
Created an attachment (id=211778)
 --> (https://bugs.webkit.org/attachment.cgi?id=211778&action=review)
Patch addressing Carlos review (new round)

(In reply to comment #8)
> (From update of attachment 211555 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=211555&action=review
> 
> > Source/WebKit2/UIProcess/API/gtk/tests/TestInspectorServer.cpp:249
> > +    GRefPtr<GSocketClient> client = g_socket_client_new();
> > +    GRefPtr<GSocketConnection> connection = g_socket_client_connect_to_host(client.get(), "127.0.0.1", 2999, 0, &error.outPtr());
> 
> This is still wrong, you have to adopt the reference with adoptGRef().
> 
Done.

> > Source/WebKit2/UIProcess/API/gtk/tests/TestInspectorServer.cpp:264
> > +    g_input_stream_read_async(istream, response, sizeof(response) - 1, G_PRIORITY_DEFAULT, 0, 0, 0);
> 
> Since the operation might never finish, I think it would be better to pass a cancellable, and cancel the operation before the test finish so that the thread used to implement the async operation exits.
> 
Done

> > Source/WebKit2/UIProcess/API/gtk/tests/TestInspectorServer.cpp:268
> >      g_assert(String(response).isEmpty());
> 
> You don't need to convert the buffer to a String just to check if it's empty, you can simply check response[0] == '\0'
Of course, don't ask me why I did that :D. Done

-- 
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