[Webkit-unassigned] [Bug 188691] New: WkWebView cookies are empty in responseHeaders

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 16 21:23:15 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=188691

            Bug ID: 188691
           Summary: WkWebView cookies  are empty in responseHeaders
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit2
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: raghavendra.l at gmail.com

in IOS11 cookies can be read in decidePolicyForNavigationResponse as specified below.

- (void)webView:(WKWebView *)webView decidePolicyForNavigationResponse:(WKNavigationResponse *)navigationResponse decisionHandler:(void (^)(WKNavigationResponsePolicy))decisionHandler
{

NSDictionary *allFields = [(NSHTTPURLResponse*)response allHeaderFields];
NSArray *cookies = [NSHTTPCookie cookiesWithResponseHeaderFields:allFields forURL:[NSURL URLWithString:@""]];
//in iOS11 all cookies array contain all cookies
//in IOS12 beta, cookies are empty.

}

Since WkWebView default cookie APIs are still not providing correct cookie information, it is very important to rely cookie information from WkWebView Delegate Callbacks.
In iOS 12 Beta 8, we are seeing the Cookies are empty. 
To confirm again, Cookie information can be read in iOS11.2.x+ WkWebView.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180817/4293b630/attachment-0001.html>


More information about the webkit-unassigned mailing list