Bug 28743

Summary: XMLHttpRequest.withCredentials=false shouldn't save cookies.
Product: WebKit Reporter: David Levin <levin>
Component: XMLAssignee: David Levin <levin>
Status: RESOLVED FIXED    
Severity: Normal CC: ap
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Proposed fix.
levin: commit-queue-
Proposed fix. ap: review+, levin: commit-queue-

Description David Levin 2009-08-26 10:21:36 PDT
WebKit does this correctly but there is no test for this.
Comment 1 David Levin 2009-08-26 10:45:38 PDT
Created attachment 38622 [details]
Proposed fix.
Comment 2 David Levin 2009-08-26 10:47:14 PDT
Comment on attachment 38622 [details]
Proposed fix.

I'd like to commit this myself so I can do the changes needed for the Chromium LayoutTestController before committing.
Comment 3 Alexey Proskuryakov 2009-08-26 11:47:40 PDT
Comment on attachment 38622 [details]
Proposed fix.

The WK-cross-origin cookie is already set by existing tests - what ensures that the tests won't conflict?

Does anything reset the cookie accept policy back after the test finishes?
Comment 4 David Levin 2009-08-26 11:52:22 PDT
(In reply to comment #3)
> (From update of attachment 38622 [details])
> The WK-cross-origin cookie is already set by existing tests - what ensures that
> the tests won't conflict?

It works due to the different value but having a different name would be best.

> Does anything reset the cookie accept policy back after the test finishes?

Right now that is done in resetDefaultsToConsistentValues() which is where a lot of these things seem to get set back to default values.  (I had done this in the destructor at one point.)
Comment 5 David Levin 2009-08-26 12:07:54 PDT
Comment on attachment 38622 [details]
Proposed fix.

new patch in progress.
Comment 6 David Levin 2009-08-26 12:25:36 PDT
Created attachment 38630 [details]
Proposed fix.
Comment 7 Alexey Proskuryakov 2009-08-26 12:36:35 PDT
Comment on attachment 38630 [details]
Proposed fix.

r=me
Comment 8 David Levin 2009-08-26 13:48:51 PDT
Committed as http://trac.webkit.org/changeset/47792