{ "id": "88686", "key": "TIMOB-8267", "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": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13170", "name": "Sprint 2012-06", "archived": true, "released": true, "releaseDate": "2012-03-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-04-04T12:42:10.000+0000", "created": "2012-03-24T02:41:20.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-and031912", "qe-testadded", "regression" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [], "assignee": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-04-04T12:42:10.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": "Application crashes on reopening a web view button (Titanium.UI.WebView Acceptance TIMOB-4357)\r\n\r\nSteps To Reproduce:\r\n\r\n1. Launch app on Android device or emulator\r\n2. Navigate to acceptance tab and run timob_4357\r\n3. Press the open WebView button\r\n4. Press the back hardware button\r\n5. Press the open WebView button again.\r\n\r\nExpected Result:\r\nAfter Step 5: App should not crash\r\n\r\nActual Result:\r\nAfter Step 5, the app crashes.\r\n\r\napp.js\r\n\r\n{code}\r\n\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : 'black'\r\n});\r\n\t\t\r\n\t\tvar button = Ti.UI.createButton({\r\n\t\t\ttitle : 'Open WebView'\r\n\t\t});\r\n\t\t\r\n\t\tvar browser = Ti.UI.createWebView();\r\n\t\tvar html = '';\r\n\t\tbutton.addEventListener('click', function() {\r\n\t\t\tvar w = Ti.UI.createWindow({\r\n\t\t\t\tfullscreen : true\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\tw.add(browser);\r\n\t\t\tw.open();\r\n\t\t\tbrowser.html = html;\r\n\t\t});\r\n\t\r\n\t\r\n\twin.add(button);\r\nwin.open();\r\n{code}", "attachment": [ { "id": "26555", "filename": "Crash_log.txt", "author": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2012-03-24T02:41:20.000+0000", "size": 5480, "mimeType": "text/plain" }, { "id": "26557", "filename": "error.png", "author": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2012-03-24T02:41:20.000+0000", "size": 16584, "mimeType": "image/png" }, { "id": "26556", "filename": "motorola.png", "author": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2012-03-24T02:41:20.000+0000", "size": 36708, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: App crashes when reusing a WebView instance on an Activity window", "creator": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Titanium SDK version: 2.0.0.v20120323170356\r\nJavascript Engine: V8 and Rhino \r\nPlatform & version: Android 2.2.1\r\nDevice Details: Android emulator and Android Motorola Milestone.\r\nHost Operating System: OSX 10.7.3\r\nTitanium Studio version: 2.0.0.201203221554", "comment": { "comments": [ { "id": "188446", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "What version of the Android emulator does this occur on?", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-24T06:50:56.000+0000", "updated": "2012-03-24T06:50:56.000+0000" }, { "id": "188447", "author": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Google API's Android 2.2", "updateAuthor": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2012-03-24T08:25:21.000+0000", "updated": "2012-03-24T08:25:21.000+0000" }, { "id": "188540", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR #1833 available for review.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-25T18:52:14.000+0000", "updated": "2012-03-25T18:52:14.000+0000" }, { "id": "188676", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing the bug. Verified the bug and no crash happens on reloading a webview instance and it opens correctly. Verified on:\r\nTitanium SDK: 2.0.0.v20120325213306\r\nTitanium Studio: 2.0.0.201203262445\r\nDevice: Nexus One (V2.2.2)", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-26T14:26:04.000+0000", "updated": "2012-03-26T14:26:04.000+0000" }, { "id": "189855", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Opening to edit labels.", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-04T12:41:53.000+0000", "updated": "2012-04-04T12:41:53.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }