{ "id": "78734", "key": "TIMOB-4885", "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": "12077", "description": "", "name": "Sprint 2011-37", "archived": true, "released": true, "releaseDate": "2011-09-19" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-09-27T09:55:53.000+0000", "created": "2011-08-03T14:51:11.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_webview", "qe-testadded" ], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" } ], "issuelinks": [], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2014-06-19T12:46:21.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Evaluating a javascript function inside an html results in a crash. works fine on iOS\r\nStep1: copy the below code to app.js\r\n{code}\r\nvar win = Ti.UI.createWindow({ backgroundColor: '#cccccc' });\r\n\t \r\nvar webView = Ti.UI.createWebView({ width: 300, height: 200, top: 0, left: 0,backgroundColor: 'white', \r\nurl:'test.html'\r\n}); \t\r\nwin.add(webView);\r\n\r\nwebView.addEventListener('load', function(){\r\n\t\r\n\tTi.API.debug('webivew loaded');\r\n//\t var title = webView.evalJS(\"document.title\"); // this works fine!\r\n//\tTi.API.debug(title);\r\n\tvar foo_return = webView.evalJS(\"foo('Hi')\"); \r\n\tTi.API.debug(foo_return);\r\n\r\n\r\n});\r\n\r\nwin.open();\r\n{code}\r\n\r\nStep2: Copy the below code to 'test.html' under the resources.\r\n{code}\r\n\r\n\r\n\t
\r\n\t\t