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.
rdar://22120241
I can't reproduce this, can you please attach a test app that shows the problem?
Reproducibility on simulator 0/5 Reproducibility on device 5/5 Or in other words this bug only affects device builds.
I can't repro this bug anymore. Please note that this is different from bug 147333. This bug also states that the completionHandler is not called.