{ "id": "173070", "key": "TIMOB-26866", "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": "19882", "name": "Release 8.0.0", "archived": false, "released": true, "releaseDate": "2019-03-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-03-06T19:12:45.000+0000", "created": "2019-02-27T16:25:37.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "qe-testadded", "regression" ], "versions": [ { "id": "19882", "name": "Release 8.0.0", "archived": false, "released": true, "releaseDate": "2019-03-14" } ], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-04-02T18:21:45.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": "I'm trying to delete an event created within a webview, via an app event.\r\nThis produces an error : {code} [ERROR] Error firing event 'app:deleteWebviewEvents': A JavaScript exception occurred {code}\r\n\r\n- The problem *is present* with the Titanium SDK *8.0.0.v20190219113758*.\r\n- The problem *is not present* with the Titanium SDK *7.5.1GA*.\r\n\r\nthe error does not allow the removal of the event \"clickFromApp\", in fact, by pressing the \"app --> webview\" button again, the event is called again.\r\n\r\n*Steps to reproduce:*\r\n- Create a Classic \"Default Project\" app\r\n- Replace the \"app.js\" code with the attached \"app.js\", and insert into the project also the file webview.html attached.\r\n- Build with Titanium *8.0.0.v20190219113758* and run on iOS.\r\n- Test the logic: press \"app --> webview\" button, press \"webview -> app\" button, clear the event of the webview with the button \"clear events\". \r\n- This produces the error \"[ERROR] Error firing event 'app:deleteWebviewEvents': A JavaScript exception occurred \"\r\n- Retry with SDK 7.5.1GA, in this case there are no problems. The event is deleted, and the button \"app --> webview\" it doesn't call anything anymore.\r\n\r\n\r\n", "attachment": [ { "id": "66197", "filename": "app.js", "author": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "created": "2019-02-27T16:21:56.000+0000", "size": 805, "mimeType": "text/javascript" }, { "id": "66198", "filename": "Schermata 2019-02-27 alle 17.19.35.png", "author": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "created": "2019-02-27T16:19:47.000+0000", "size": 27545, "mimeType": "image/png" }, { "id": "66196", "filename": "webview.html", "author": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "created": "2019-02-27T16:22:00.000+0000", "size": 1109, "mimeType": "text/html" } ], "flagged": false, "summary": "iOS: removeEventListener on local webview produces an error", "creator": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "subtasks": [], "reporter": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "environment": "iOS SDK 12\r\nTitanium SDK 8.0.0.v20190219113758", "comment": { "comments": [ { "id": "446364", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello [~nicolomonili], I was able to reproduce the issue with SDK 8.0.0.v20190219113758 in iOS. The same code works without error in SDK 7.5.1.GA. Moving to TIMOB. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2019-02-27T18:28:00.000+0000", "updated": "2019-02-27T18:28:00.000+0000" }, { "id": "446476", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR(8_0_X): https://github.com/appcelerator/titanium_mobile/pull/10746\r\nPR(master): https://github.com/appcelerator/titanium_mobile/pull/10747", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-03-04T09:40:10.000+0000", "updated": "2019-03-04T09:40:10.000+0000" }, { "id": "446593", "author": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix on SDK 8.1.0.v20190306084706 and 8.0.0.v20190306054146. Works fine. closing.\r\n{code}\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.13.6\r\n Architecture = 64bit\r\n # CPUs = 8\r\n Memory = 17179869184\r\nNode.js\r\n Node.js Version = 8.12.0\r\n npm Version = 6.4.1\r\nTitanium CLI\r\n CLI Version = 5.1.1\r\nTitanium SDK\r\n SDK Version = 8.1.0.v20190306084706 and 8.0.0.v20190306054146\r\nCLI =7.0.10 MASTER 17\r\n Device =iPhone 6s iOS 12\r\nSimulator =iPhone 6 iOS 11\r\n{code}\r\n", "updateAuthor": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-03-06T19:12:37.000+0000", "updated": "2019-03-06T19:12:37.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }