[Webkit-unassigned] [Bug 144019] New: WKWebView loses cookies when deallocated

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 21 15:46:52 PDT 2015


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

            Bug ID: 144019
           Summary: WKWebView loses cookies when deallocated
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: All
                OS: iOS 8.2
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit2
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: shreyasv at chromium.org

When a WKWebView is deallocated it loses cookies. On the next instantiation it does not retain all the cookies from the previous browsing session.

This is problematic because WKWebViews can be deallocated at any time during the app's lifecycle and this will result in a loss of cookies.
UIWebView does not suffer from this problem.

Steps to Reproduce:
1) Allocated a WKWebView using [[WKWebView alloc] init]
2) navigate to "http://www.html-kit.com/tools/cookietester/"
3) Set a test cookie by clicking on “Set Test Cookie”
4) Wait for the page to refresh and reflect that a cookie has been set
5) Deallocate the WKWebViewView
6) Allocate a new WKWebView and navigate to the same site

Expected Results:
Cookies should not be lost between different instances of a WKWebView.

Actual Results:
Cookies are lost.

Version:
iOS8.3

Notes:
GOOGLER:shreyasv

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/20150421/0cf21862/attachment.html>


More information about the webkit-unassigned mailing list