Bug 99950 - [BlackBerry] Missing some cookies in HTTP response header when set several cookies in one "Set-Cookie" header.
Summary: [BlackBerry] Missing some cookies in HTTP response header when set several co...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit BlackBerry (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-21 19:54 PDT by Peter Wang
Modified: 2012-10-22 21:33 PDT (History)
8 users (show)

See Also:


Attachments
test case (705 bytes, application/zip)
2012-10-21 19:54 PDT, Peter Wang
no flags Details
Patch (2.53 KB, patch)
2012-10-21 20:48 PDT, Peter Wang
no flags Details | Formatted Diff | Diff
Patch (2.60 KB, patch)
2012-10-22 02:21 PDT, Peter Wang
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Wang 2012-10-21 19:54:21 PDT
Created attachment 169823 [details]
test case

Visit the attached test case, from Inspector we can see we've missed several cookies in response.
I've checked this problem. The code of Inspector is ok, we really missed them when we made response headers.
Comment 1 WebKit Review Bot 2012-10-21 19:56:52 PDT
Attachment 169823 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files']" exit_code: 1
Total errors found: 0 in 0 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 2 Peter Wang 2012-10-21 20:48:24 PDT
Created attachment 169825 [details]
Patch
Comment 3 Charles Wei 2012-10-21 23:27:00 PDT
Comment on attachment 169825 [details]
Patch

This looks good to me.
Comment 4 George Staikos 2012-10-21 23:28:55 PDT
Comment on attachment 169825 [details]
Patch

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

Please make the comment clearer first.

> Source/WebCore/platform/network/blackberry/NetworkJob.cpp:338
> +            // If there are several "Set-Cookie" headers, we should combine the followed with headed.

"following ones with this header" is what is meant here?
Comment 5 Peter Wang 2012-10-22 02:10:28 PDT
(In reply to comment #4)
> (From update of attachment 169825 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=169825&action=review
> 
> Please make the comment clearer first.
> 
> > Source/WebCore/platform/network/blackberry/NetworkJob.cpp:338
> > +            // If there are several "Set-Cookie" headers, we should combine the followed with headed.
> 
> "following ones with this header" is what is meant here?

ok. sorry.
Comment 6 Peter Wang 2012-10-22 02:21:26 PDT
Created attachment 169857 [details]
Patch
Comment 7 George Staikos 2012-10-22 21:28:25 PDT
Comment on attachment 169857 [details]
Patch

I would have liked to see a test with this.  Not sure how though.
Comment 8 WebKit Review Bot 2012-10-22 21:33:18 PDT
Comment on attachment 169857 [details]
Patch

Clearing flags on attachment: 169857

Committed r132177: <http://trac.webkit.org/changeset/132177>
Comment 9 WebKit Review Bot 2012-10-22 21:33:22 PDT
All reviewed patches have been landed.  Closing bug.