[Webkit-unassigned] [Bug 147635] New: WKWebsiteDataStore does not always clear cookies
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Aug 4 11:08:59 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=147635
Bug ID: 147635
Summary: WKWebsiteDataStore does not always clear cookies
Classification: Unclassified
Product: WebKit
Version: 528+ (Nightly build)
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebKit2
Assignee: webkit-unassigned at lists.webkit.org
Reporter: shreyasv at chromium.org
WKWebsiteDataStore does not clear cookies in the following scenarios:
1) WKWebView has been just created
2) There is no WKWebView attached to the WKWebViewConfiguration
(there maybe more scenarios, these are the known ones)
Sample code to run:
WKWebViewConfiguration* config = [[WKWebViewConfiguration alloc] init];
self.webView =
[[WKWebView alloc] initWithFrame:CGRectZero configuration:config];
[self.view addSubview:self.webView];
NSString* url = @"http://google.com";
[self.webView loadRequest:
[NSURLRequest requestWithURL:[NSURL URLWithString:url]]];
// Trigger clearing of cookies.
[self.webView.configuration.websiteDataStore removeDataOfTypes:[NSSet setWithObject:WKWebsiteDataTypeCookies]
modifiedSince:[NSDate distantPast] completionHandler:^{
// Notice that this is not called.
NSLog(@"Cleared cookies");
}];
Expected Results:
The completion handler is called and cookies are cleared.
Actual Results:
The completion handler is not called and cookies are not cleared.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150804/44122b20/attachment.html>
More information about the webkit-unassigned
mailing list