<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - WKWebView loses cookies when deallocated"
   href="https://bugs.webkit.org/show_bug.cgi?id=144019">144019</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>WKWebView loses cookies when deallocated
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>528+ (Nightly build)
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>iOS 8.2
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>WebKit2
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>shreyasv&#64;chromium.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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 &quot;<a href="http://www.html-kit.com/tools/cookietester/">http://www.html-kit.com/tools/cookietester/</a>&quot;
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.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>