[Webkit-unassigned] [Bug 149078] New: WKWebsiteDataStore does not clear cookies when there is no WKWebView present

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Sep 11 16:05:12 PDT 2015


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

            Bug ID: 149078
           Summary: WKWebsiteDataStore does not clear cookies when there
                    is no WKWebView present
    Classification: Unclassified
           Product: WebKit
           Version: Other
          Hardware: iOS
                OS: iOS 9.0
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit2
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: shreyasv at chromium.org

Created attachment 261022
  --> https://bugs.webkit.org/attachment.cgi?id=261022&action=review
Sample app that repros this bug

The -[WKWebsiteDataStore removeDataOfTypes:] API only clear cookies when there is a WKWebView alive.

This is problematic because WKWebViews can be deallocated at any time during the app's lifecycle and this API should not be dependent on that.

Steps to Reproduce:
1) Run the attached code
2) Click on wv1 that create a WKWebView and loads a page
3) Click on sc1 that sets a persistent cookie with name, value someCookie1=someValue1
4) Click on rc that prints all the cookies, to make sure that this cookie has been set
5) Deallocate this WKWebView by clicking on "deallocate web view"
6) Clear cookies by clicking on "clear cookies"
7) Click on wv1 that recreates the WKWebView and loads a page
6) Wait for the page to load
7) Click on rc to print out all the cookies from the site

Expected Results:
The cookie set earlier (someCookie1) has been removed.

Actual Results:
The cookie set earlier (someCookie1) has not been removed.

Version:
iOS9.0

Configuration:
Any iOS devices.

-- 
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/20150911/c1875d3d/attachment.html>


More information about the webkit-unassigned mailing list