Bug 12783 - curl networking improvements for gdk build
Summary: curl networking improvements for gdk build
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 420+
Hardware: PC OS X 10.4
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-15 17:48 PST by Krzysztof Kowalczyk
Modified: 2007-02-17 00:24 PST (History)
0 users

See Also:


Attachments
curl networking improvements (19.35 KB, patch)
2007-02-15 17:50 PST, Krzysztof Kowalczyk
oliver: review-
Details | Formatted Diff | Diff
updated per review comments (20.46 KB, patch)
2007-02-17 00:12 PST, Krzysztof Kowalczyk
aroben: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Krzysztof Kowalczyk 2007-02-15 17:48:31 PST
curl networking improvements for gdk build
Comment 1 Krzysztof Kowalczyk 2007-02-15 17:50:20 PST
Created attachment 13195 [details]
curl networking improvements

Curl networking improvements, enable entering text into text field on gdk, comment-out chatty messages that clutter output.
Comment 2 Adam Roben (:aroben) 2007-02-16 23:01:22 PST
Comment on attachment 13195 [details]
curl networking improvements

+    free((void*)m_url);

   Is this cast to void* really necessary?

+    for (;;) {

   I believe while (true) is a bit more inline with our coding style.

+    void setupPOST(ResourceHandle* job);
+    void setupPUT(ResourceHandle* job);

   You should remove the parameter names here.

   I don't know much about curl, but this code looks sane. r=me.
Comment 3 Oliver Hunt 2007-02-16 23:06:55 PST
Comment on attachment 13195 [details]
curl networking improvements


+        struct curl_slist *m_customHeaders;   
WebKit style guide is Type* ident
so "struct curl_slist* m_customHeaders"

*  in the wrong place again:
+        ResourceHandle *job;
+        ResourceHandleInternal *d = job->getInternal();
+            char *url = 0;
+        struct curl_slist *headers = 0;
+            const char *header = headerString.latin1().data();
+    char * m_cookieJarFileName; // FIXME: never freed

Otherwise looks reasonable -- but i cannot vouch for correctness, i don't know gdk at all.
Comment 4 Krzysztof Kowalczyk 2007-02-17 00:12:34 PST
Created attachment 13209 [details]
updated per review comments

Fixed all style issues pointed out in the review. Also added fixes for FrameLoaderClientGdk.

free((void*)) and for (;;) were because there is a compiler that complains about free() without case and while (true) loop, but I just checked and this compiler isn't gcc event with -Wall -pedantic so I changed those.
Comment 5 Adam Roben (:aroben) 2007-02-17 00:16:24 PST
Comment on attachment 13209 [details]
updated per review comments

r=me. Thanks for fixing those few issues!
Comment 6 Krzysztof Kowalczyk 2007-02-17 00:24:58 PST
commited as r19676 and r19677