<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 does not persist IndexedDB data after app close"
href="https://bugs.webkit.org/show_bug.cgi?id=144875">144875</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>WKWebView does not persist IndexedDB data after app close
</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>Unspecified
</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>JavaScriptCore
</td>
</tr>
<tr>
<th>Assignee</th>
<td>webkit-unassigned@lists.webkit.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>nolan@nolanlawson.com
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=252869" name="attach_252869" title="Video demonstration">attachment 252869</a> <a href="attachment.cgi?id=252869&action=edit" title="Video demonstration">[details]</a></span>
Video demonstration
Data saved in IndexedDB in a WKWebView does not appear to survive an app relaunch.
Video demonstration: <a href="https://nolanlawson.s3.amazonaws.com/www/apache/iphone_recording.webm">https://nolanlawson.s3.amazonaws.com/www/apache/iphone_recording.webm</a>
Steps to reproduce:
1. Install my "database filler" Cordova app: <a href="https://github.com/nolanlawson/database-filler">https://github.com/nolanlawson/database-filler</a>
2. Follow the instructions to run the app using the WKWebView branch of Cordova
3. Open up the XCode project in platforms/ios
4. Run on a real device
5. Open up the app, add some data, count it to make sure items were added.
6. Double-press the home button to dismiss the app
7. Reopen it, count items
Expected: items that were saved in IndexedDB before are still there.
Actual: 0 items are found.
I'm not sure if this is a bug in WKWebView or in Cordova, but I suspect it's a WKWebView bug because I don't see any option to enable persistence or anything: <a href="https://developer.apple.com/library/ios/documentation/WebKit/Reference/WKPreferences_Ref/index.html">https://developer.apple.com/library/ios/documentation/WebKit/Reference/WKPreferences_Ref/index.html</a>
Note this is unrelated to issue 137760, which describes how WebSQL is completely disallowed in WKWebView.</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>