{ "id": "87374", "key": "TIMOB-7887", "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": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2012-03-14T16:55:20.000+0000", "created": "2012-03-05T15:35:57.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_webview", "qe-testadded" ], "versions": [ { "id": "12570", "name": "Release 1.7.5", "archived": true, "released": true, "releaseDate": "2011-11-02" }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" }, { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "issuelinks": [ { "id": "32159", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "118974", "key": "TIMOB-14947", "fields": { "summary": "Android: WebView crashes on Android 2.3.3 Emulator", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "15770", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "63314", "key": "TIMOB-2682", "fields": { "summary": "Android: 2.3, Crash on load of test case \"logging and unicode\" ", "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": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-09-26T17:04:56.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": "When the evalJS method of a WebView is called, the app will crash. Log attached.\r\n\r\nSteps to Reproduce:\r\n\r\n1. Run code on 2.3.3 Emulator (WebViewTest project attached).\r\n\r\nNote: This is a minimal fail case. TIMOB-4885 provides a similar example.\r\n\r\n{code:title=app.js}\r\nvar win = Ti.UI.createWindow();\r\nvar webView = Ti.UI.createWebView({ url:'test.html' });\r\n\r\nwin.add(webView);\r\nwin.open();\r\n\r\nwebView.addEventListener('load', function() {\r\n\twebView.evalJS(\"run()\");\r\n});\r\n{code}\r\n\r\n{code:title=test.html}\r\n\r\n\r\n\t\r\n\t\tWebView Test Page\r\n\r\n\t

WebView Test Page

\r\n\t\r\n\t\r\n\r\n{code}\r\n\r\nExpected Result:\r\n\r\nAn alert should appear indicating evalJS was successful.\r\n\r\nActual Result:\r\n\r\nCrash.", "attachment": [ { "id": "26037", "filename": "2.0 Android V8 Emulator 2.3.3 WebView JSEval Crash.txt", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-05T15:35:57.000+0000", "size": 15644, "mimeType": "text/plain" }, { "id": "26038", "filename": "WebViewTest.zip", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-05T15:35:57.000+0000", "size": 3653158, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: Gingerbread 2.3.X: Emulator: WebView evalJS crashes app", "creator": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK: 1.7.5, 1.8.0.1, 1.8.1, 1.8.2 githash=59b3a90s, 2.0.0.v20120305093201\r\nAndroid: V8, Rhino\r\nStudio: 2.0.0.201202291457\r\nOS: Snow Leopard\r\nDevices Tested: Nexus One 2.2.2, Droid3 2.3.4, Xoom 3.2.1, Emulator [2.2, 2.3.3, 3.2, 4.0.3]\r\nDevices Affected: Emulator 2.3.3", "comment": { "comments": [ { "id": "185103", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This behavior is not limited to the evalJS method.\r\n\r\nMany Titanium API calls from the HTML cause the same crash, such as:\r\n\r\n{code:title=test.html}\r\n\r\n\r\n\t\r\n\t\tWebView Test Page\r\n\t\r\n\t

WebView Test Page

\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\nor\r\n\r\n{code:title=test.html}\r\n\r\n\r\n\t\r\n\t\tWebView Test Page\r\n\t\r\n\t

WebView Test Page

\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\nHowever, some API calls do not crash the app, such as:\r\n\r\n{code:title=test.html}\r\n\r\n\r\n\t\r\n\t\tWebView Test Page\r\n\t\r\n\t

WebView Test Page

\r\n\t\t\r\n\t\r\n\r\n{code}", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-05T17:23:24.000+0000", "updated": "2012-03-05T17:23:24.000+0000" }, { "id": "186550", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-14T16:53:21.000+0000", "updated": "2012-03-14T16:54:19.000+0000" }, { "id": "249779", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing.", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-01T20:08:54.000+0000", "updated": "2013-05-01T20:08:54.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }