{ "id": "169681", "key": "TIMOB-25217", "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": "18414", "description": "", "name": "Release 6.2.0", "archived": false, "released": true, "releaseDate": "2017-09-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-09-05T21:32:36.000+0000", "created": "2017-09-01T02:52:38.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "fireevent", "ios", "regression", "webview" ], "versions": [ { "id": "18414", "description": "", "name": "Release 6.2.0", "archived": false, "released": true, "releaseDate": "2017-09-13" } ], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2017-09-06T18:19:11.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": "regression error:\r\n\r\nclick href link in webview that uses fireevent causes crash\r\n\r\ncrash occurs when using \r\n6.2.0.v20170831112315\r\n\r\nSame code works fine when using\r\n6.1.2.GA\r\n6.1.0.GA\r\n\r\nnote in test env\r\nrun-on-main-thread is not set\r\njscore framework is not used\r\n\r\nsimulator log code and safari debug inspector of the webview attached.\r\n", "attachment": [ { "id": "63160", "filename": "errorlog.txt", "author": { "name": "threethirds", "key": "threethirds", "displayName": "Anthony Chung", "active": true, "timeZone": "Australia/Sydney" }, "created": "2017-09-01T02:52:05.000+0000", "size": 2671, "mimeType": "text/plain" }, { "id": "63159", "filename": "test.html", "author": { "name": "threethirds", "key": "threethirds", "displayName": "Anthony Chung", "active": true, "timeZone": "Australia/Sydney" }, "created": "2017-09-01T02:52:10.000+0000", "size": 3747, "mimeType": "text/html" } ], "flagged": false, "summary": "iOS: WebView \"fireEvent\" causes app crash on 6.2.0.RC", "creator": { "name": "threethirds", "key": "threethirds", "displayName": "Anthony Chung", "active": true, "timeZone": "Australia/Sydney" }, "subtasks": [], "reporter": { "name": "threethirds", "key": "threethirds", "displayName": "Anthony Chung", "active": true, "timeZone": "Australia/Sydney" }, "environment": null, "comment": { "comments": [ { "id": "427484", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hey there, thanks for the report! It -could be- is caused by [this line-change|https://github.com/appcelerator/titanium_mobile/commit/8296a594b523996ca057cf1352e23bce6ae43af7#diff-c3b1f31b61a796bea16bd0ed1610b084R66] as part of TIMOB-24769. We will investigate ist immediately and fix it for the GA, thank you!\r\n\r\nFor QE: I also need to validate all other {{[SBJSON fragmentWithString:]}} calls to verify it did not broke other places as well.\r\n\r\nReproducible test-case:\r\n{code:js}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#fff'\r\n});\r\n\r\nvar webview = Ti.UI.createWebView({\r\n url: 'test.html'\r\n})\r\n\r\nTi.App.addEventListener('app:fromWebView:forum_discussions', function(e) {\r\n alert(e);\r\n});\r\n\r\nwin.add(webview);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-01T10:11:31.000+0000", "updated": "2017-09-01T10:31:14.000+0000" }, { "id": "427488", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/9386\r\nPR (6_2_X): https://github.com/appcelerator/titanium_mobile/pull/9387", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-01T12:15:53.000+0000", "updated": "2017-09-01T12:15:53.000+0000" }, { "id": "427589", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "More test-cases for the above SBJSON-migration:\r\n{code:js}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#fff',\r\n layout: 'vertical'\r\n});\r\n\r\nTi.App.addEventListener('customEvent', function(e) {\r\n alert('Event received successfully! Assert-value 1337 = 1337:' + (e.payload.number == 1337))\r\n})\r\n\r\naddButtonWithListener('1) Trigger Ti.App event', triggerTiAppEvent)\r\naddButtonWithListener('2) Trigger Ti.Geolocation reserve-geocoder', triggerTiGeolocationGeocoder)\r\n\r\nwin.open();\r\n\r\nfunction addButtonWithListener(title, cb) {\r\n var btn = Ti.UI.createButton({\r\n title: title,\r\n top: 40\r\n });\r\n\r\n btn.addEventListener('click', cb);\r\n\r\n win.add(btn);\r\n}\r\n\r\nfunction triggerTiAppEvent() {\r\n Ti.App.fireEvent('customEvent', { payload: { number: 1337 }});\r\n}\r\n\r\nfunction triggerTiGeolocationGeocoder() {\r\n Ti.Geolocation.reverseGeocoder(52.279911, 8.047179, function(e) {\r\n alert('Reverse geocoder success! See logs for more ...');\r\n Ti.API.info(e.places || []);\r\n });\r\n}\r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-05T14:26:23.000+0000", "updated": "2017-09-05T14:26:23.000+0000" }, { "id": "427601", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "FR Passed, using:\r\nMacOS 10.12.6 (16G24b)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.2.0.v20170901091533\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.4-master.9\r\nAlloy 1.9.13\r\nXcode 8.3.3 (8E3004b)\r\n\r\nEvents successfully fire and are caught in webviews using href links. Tested using the provided sample code, webview suite, and new webview checks", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-09-05T21:32:36.000+0000", "updated": "2017-09-05T21:32:36.000+0000" }, { "id": "427605", "author": { "name": "threethirds", "key": "threethirds", "displayName": "Anthony Chung", "active": true, "timeZone": "Australia/Sydney" }, "body": "I've tested this in production app, and the issue has been resolved. Great work. ", "updateAuthor": { "name": "threethirds", "key": "threethirds", "displayName": "Anthony Chung", "active": true, "timeZone": "Australia/Sydney" }, "created": "2017-09-05T23:42:12.000+0000", "updated": "2017-09-05T23:42:12.000+0000" }, { "id": "427645", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified in SDK builds 6.2.0.v20170906064110 & 7.0.0.v20170906103333", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-09-06T18:19:11.000+0000", "updated": "2017-09-06T18:19:11.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }