Summary: | WKWebView does not evaluate JavaScript after cookies have been cleared | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Shreyas VA <shreyasv> | ||||
Component: | WebKit2 | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | NEW --- | ||||||
Severity: | Normal | CC: | andersca, sam | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | Other | ||||||
Hardware: | iPhone / iPad | ||||||
OS: | iOS 9.0 | ||||||
Attachments: |
|
s/does evaluate/does not evaluate in the description. Sorry for the typo. |
Created attachment 261025 [details] Sample app that repros this bug WKWebView does evaluate JavaScript after cookies have been cleared. This is problematic because the completionHandler from the -[WKWebView evaluateJavaScript:completionHandler:] is never called. Steps to Reproduce: 1) Run the attached code 2) Click on "wv1", that creates a WKWebView and loads a webpage 3) Click on "clear cookies", that uses the WKWebsiteDataStore API to clear cookies 4) Click on rc, that injects JS to retrieve the cookies from a web page. Expected Results: The completionHandler (from the JS eval method) is called. Actual Results: The completionHandler (from the JS eval method) is never called. Version: iOS9.0