Bug 130251

Summary: [Cocoa] Expose a way to set the cookie accept policy
Product: WebKit Reporter: mitz
Component: WebKit2Assignee: mitz
Status: RESOLVED FIXED    
Severity: Normal CC: andersca, ap, m.goleb+bugzilla, mhock, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Add -[WKProcessPool _setCookieAcceptPolicy:] andersca: review+

Description mitz 2014-03-14 11:09:04 PDT
[Cocoa] Expose a way to set the cookie accept policy
Comment 1 mitz 2014-03-14 11:10:54 PDT
Created attachment 226736 [details]
Add -[WKProcessPool _setCookieAcceptPolicy:]
Comment 2 Radar WebKit Bug Importer 2014-03-19 10:41:40 PDT
<rdar://problem/16368388>
Comment 3 Alexey Proskuryakov 2014-03-20 09:46:42 PDT
Shouldn't this be a setting on a session? Process pool seems like a wrong place to change cookie settings.
Comment 4 mitz 2014-03-20 09:54:10 PDT
I forgot to say that this was committed in <http://trac.webkit.org/r165632>.

(In reply to comment #3)
> Shouldn't this be a setting on a session? Process pool seems like a wrong place to change cookie settings.

Can you explain what you mean by “session”? I agree that process pool is not right—this is just Cocoa SPI that mirrors the C SPI.
Comment 5 Alexey Proskuryakov 2014-03-20 10:40:09 PDT
> Can you explain what you mean by “session”?

WKSessionRef - which doesn't control cookies at the moment, but the idea is that it will mirror NSURLSession properties, encapsulating all storage settings.

I don't know if we began to expose WKSessionRef in Objective-C API yet.