{ "id": "168061", "key": "TIMOB-24763", "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": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2017-06-05T10:46:20.000+0000", "created": "2017-06-02T10:42:53.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "fireevent", "ios", "merge-6.1.1", "regression", "webview" ], "versions": [ { "id": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "issuelinks": [ { "id": "55019", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "inwardIssue": { "id": "152916", "key": "TIMOB-19924", "fields": { "summary": "iOS: \"onclick\" event is not triggered in the WebView if you are listening to multiple \"click\" events", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-05T23:09:00.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": "Please test Ti.App.fireEvent not working for webviews in scrollviews.\r\nwith sdk 6.1.1.v20170531135549\r\n\r\nScenario:\r\nMultiple webviews in a parent scrollview.\r\nSet with willHandleTouches:false\r\n\r\ncontains html with a hrefs with: \r\nonclick=\"Ti.App.fireEvent...\r\n\r\nThe parent controller has \r\nTi.App.addEventListener(eventname,webCallback);\r\n\r\nSDK:\r\n 6.1.1.v20170531135549\r\n\r\n*EDIT by [~hansknoechel]*: Changing the {{Affected Version}} to 6.1.0, since 6.1.1 is from the same branch and therefore it's easier to group it with other 6.1.0 related tickets.", "attachment": [], "flagged": false, "summary": "iOS: Ti.App.fireEvent not working for webviews in scrollviews", "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, "closedSprints": [ { "id": 903, "state": "closed", "name": "2017 Sprint 12 SDK", "startDate": "2017-06-05T00:15:46.290Z", "endDate": "2017-06-19T00:15:00.000Z", "completeDate": "2017-06-19T16:09:22.870Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "420817", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Please provide a full test-case before, so our support team can validate it, thx!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-06-02T11:51:51.000+0000", "updated": "2017-06-02T11:51:51.000+0000" }, { "id": "420893", "author": { "name": "threethirds", "key": "threethirds", "displayName": "Anthony Chung", "active": true, "timeZone": "Australia/Sydney" }, "body": "I've ran tests locally and it looks like it has to do with the __ti_injection not happening on my production app. But on the test app, __ti_injection works. So the fireEvents are working. Do you have any idea why __ti_injection would not be working in a production app?", "updateAuthor": { "name": "threethirds", "key": "threethirds", "displayName": "Anthony Chung", "active": true, "timeZone": "Australia/Sydney" }, "created": "2017-06-05T03:34:44.000+0000", "updated": "2017-06-05T03:34:44.000+0000" }, { "id": "420894", "author": { "name": "threethirds", "key": "threethirds", "displayName": "Anthony Chung", "active": true, "timeZone": "Australia/Sydney" }, "body": "Hi Hans, \r\n\r\nClose this issue! Found the problem - local production code and not appc issue.\r\n\r\nExplanation...\r\n__ti_injection was not created, therefore Ti.App.fireEvent would work because the webview html was a html snippet and not a fully formed html with wrapping html and body tags. It looks like the injection only happens for full html and not just snippets.\r\n\r\nAfter wrapping the html snippet with tags, the ti_injection is now showing up in Safari:Develop: web inspector in the production app.\r\n\r\n{code:html}\r\n