{ "id": "110351", "key": "TIMOB-13145", "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": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "15277", "description": "2013 Sprint 06 Core", "name": "2013 Sprint 06 Core", "archived": true, "released": true, "releaseDate": "2013-03-25" }, { "id": "14816", "description": "2013 Sprint 06", "name": "2013 Sprint 06", "archived": true, "released": true, "releaseDate": "2013-03-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-03-21T18:56:05.000+0000", "created": "2013-02-28T01:15:12.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "device", "iOS", "javascript", "local", "triage", "webview" ], "versions": [], "issuelinks": [ { "id": "26687", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "109656", "key": "TIMOB-13059", "fields": { "summary": "Android: WebView: remove requirement to set baseURL", "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" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "26746", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "87800", "key": "TIMOB-7965", "fields": { "summary": "iOS: canGoBack/canGoForward does not work for local files", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "26343", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "93365", "key": "TIMOB-9593", "fields": { "summary": "Android: Webview: Webview with HTML property having HTML content does not reload", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-04-06T08:58:32.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": [], "description": "When I have a simple webview where I set the HTML via the {{Webview.html}} property (or alternatively by later calling {{Webview.setHtml()}} method), and the HTML string contains a reference to a local javascript file which is included under my {{Resources}} project directory, the application fails to load the local javascript file. But this only happens when installed on the target device. When run in the simulator it works as expected.\r\n\r\nIf instead of creating the HTML dynamically and setting it via the {{html}} property or the {{setHtml}} method, I save the HTML to a local HTML file and load it via the {{Webview.url}} property, it then works as expected on both the simulator and the device, so the issue seems to be specifically related to the {{Webview.html}} property.\r\n\r\nAlso, in Titanium SDK 3.0.0 this worked fine, but it stopped working in 3.0.2.\r\n\r\nTo reproduce, create the following simple {{app.js}} file:\r\n{code:title=app.js}\r\nvar html=\"\" + \r\n \"
\" +\r\n \" \" +\r\n \" \" +\r\n \" \" +\r\n \"Click Me!