{ "id": "93125", "key": "TIMOB-9509", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "14064", "description": "Sprint 2012-17 Core", "name": "Sprint 2012-17 Core", "archived": true, "released": true, "releaseDate": "2012-08-27" }, { "id": "14097", "description": "Sprint 2012-18 Core", "name": "Sprint 2012-18 Core", "archived": true, "released": true, "releaseDate": "2012-09-10" } ], "resolution": { "id": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2012-09-06T16:56:08.000+0000", "created": "2012-06-12T19:45:01.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" }, { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [], "assignee": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-03-13T15:06:23.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h2. Problem description\r\nWebview local storage it's broken on iOS 5.1. Performing an App update, local storage for webview it's no longer persistant.\r\n\r\nh2. Steps to reproduce and sample code\r\n1. Run the sample code, run the app and click \"add\" a few times\r\nResult: The data is shown and being stored in local storage\r\n2. Close completely the app and restart app\r\nResult: stored data is correctly shown\r\n3. Install over the app from Xcode\r\nResult: contents it's no longer available. Also, subsequently added data (like in step 1 and 2) it's no longer kept in the local storage.\r\n\r\nAttaching also log file\r\n\r\n{code}\r\n// app.js\r\n\r\nvar win1 = Titanium.UI.createWindow({ \r\n backgroundColor:'#fff'\r\n});\r\n\r\nvar webview = Ti.UI.createWebView({\r\n url: '/localstorage.html'\r\n});\r\n\r\nwin1.add(webview);\r\nwin1.open();\t\r\n{code}\r\n\r\n\r\n{code}\r\n// localstorage.html\r\n\r\n\r\n
\r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n