WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
27414
Cairo-based Windows port does not handle cookies properly
https://bugs.webkit.org/show_bug.cgi?id=27414
Summary
Cairo-based Windows port does not handle cookies properly
Kwang Yul Seo
Reported
2009-07-18 07:00:14 PDT
Cairo-based windows port uses curl as its http backend. curl handles cookies by itself and it does not share cookies with WinINet. However, CookieJarWin.cpp uses WinINet functions, InternetGetCookie and InternetSetCookie to get and set cookies respectively. Using CookieJarCurl.cpp is also wrong because it does not interact with curl's cookie manager. It a simple hash map to get and set cookies. It is inevitable because there is no such API to get and set cookies in curl. I think the right direction is to use CookieJarCurl.cpp and ask curl developers to provide a public API to manipulate cookies. Then we can implement cookie code correctly. In the meantime, replacing CookieJarWin.cpp with CookieJarCurl.cpp has no side effect unless our intention is to share cookies with Internet Explorer or other WinINet-based clients.
Attachments
Replace CookieJarWin.cpp with CookieJarCurl.cpp
(3.57 KB, patch)
2009-07-18 08:20 PDT
,
Kwang Yul Seo
eric
: commit-queue+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Kwang Yul Seo
Comment 1
2009-07-18 08:20:52 PDT
Created
attachment 33026
[details]
Replace CookieJarWin.cpp with CookieJarCurl.cpp
Brent Fulgham
Comment 2
2009-08-06 20:40:25 PDT
I am not a reviewer, but I think that this patch is correct. I threw together the existing Windows Cookie logic in an effort to get things building and running, without much concern about correctness or proper utility. I am in the process of trying to flesh out more of the cURL support, and think this is a good step in that direction. I support this patch being approved and landed.
Brent Fulgham
Comment 3
2009-08-06 22:54:58 PDT
I can confirm that this patch lands cleanly and runs properly on my WinCairo build.
Kwang Yul Seo
Comment 4
2009-08-07 04:29:52 PDT
I think the maintainer of Windows Cairo port should review this. Who's in chare of?
Eric Seidel (no email)
Comment 5
2009-08-07 12:46:24 PDT
Comment on
attachment 33026
[details]
Replace CookieJarWin.cpp with CookieJarCurl.cpp Assuming this *only* affects the Cairo build and does not break the regular Windows build, this is fine. I can't tell from this patch if it affects the Apple Win build or not.
Eric Seidel (no email)
Comment 6
2009-08-07 12:47:17 PDT
Comment on
attachment 33026
[details]
Replace CookieJarWin.cpp with CookieJarCurl.cpp Based on the above comments, I'll r+ this. We can roll it out if it breaks the Apple windows build.
Adam Barth
Comment 7
2009-08-07 15:25:13 PDT
Comment on
attachment 33026
[details]
Replace CookieJarWin.cpp with CookieJarCurl.cpp Clearing review flag on attachment: 33026 Committing to
http://svn.webkit.org/repository/webkit/trunk
... M WebCore/ChangeLog M WebCore/WebCore.vcproj/WebCore.vcproj Committed
r46918
M WebCore/ChangeLog M WebCore/WebCore.vcproj/WebCore.vcproj
r46918
= c4b233180d13184eb3bdafeae92b4f8bb02b022c (trunk) No changes between current HEAD and refs/remotes/trunk Resetting to the latest refs/remotes/trunk
http://trac.webkit.org/changeset/46918
Adam Barth
Comment 8
2009-08-07 15:25:16 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug