{ "id": "171069", "key": "TIMOB-25762", "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": "19957", "description": "", "name": "Release 7.1.0", "archived": false, "released": true, "releaseDate": "2018-03-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-02-26T23:05:47.000+0000", "created": "2018-02-08T19:51:48.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "applebug", "injection", "webview" ], "versions": [ { "id": "18322", "name": "Release 5.5.1", "archived": false, "released": true, "releaseDate": "2016-09-28" }, { "id": "19906", "description": "", "name": "Release 6.3.0", "archived": false, "released": true, "releaseDate": "2017-11-01" }, { "id": "20060", "description": "", "name": "Release 7.0.2", "archived": false, "released": true, "releaseDate": "2018-02-09" } ], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-04-23T11:15:24.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": "*Issue*\r\nIn the app they have a signature drawing controller, which loads signature.html in webview. The html has Ti.App.addEventListener & Ti.App.fireEvent to communicate between webview and controller. HTML gives error on Ti accessing in html. This is happening in iOS 11.3 beta 1 & beta 2. \r\n\r\nCode works fine on iOS 11.2 and earlier\r\n\r\n*Steps to recreate:*\r\ndownload TestiOSBeta\r\nrun project on simulator for iOS 11.3 \r\n\r\n*Expected results:*\r\nDrawable canvas and text turn green.\r\n", "attachment": [ { "id": "64835", "filename": "Error.rtf", "author": { "name": "vvazquezmontero", "key": "vvazquezmontero", "displayName": "Victor Vazquez Montero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-02-08T19:50:41.000+0000", "size": 5979, "mimeType": "text/rtf" }, { "id": "64833", "filename": "iOS11.2.png", "author": { "name": "vvazquezmontero", "key": "vvazquezmontero", "displayName": "Victor Vazquez Montero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-02-08T19:50:54.000+0000", "size": 42881, "mimeType": "image/png" }, { "id": "64834", "filename": "iOS11.3.png", "author": { "name": "vvazquezmontero", "key": "vvazquezmontero", "displayName": "Victor Vazquez Montero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-02-08T19:50:54.000+0000", "size": 64162, "mimeType": "image/png" }, { "id": "64889", "filename": "test_webview_native.zip", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-02-23T10:08:41.000+0000", "size": 42814, "mimeType": "application/zip" }, { "id": "64836", "filename": "TestIOSBeta.zip", "author": { "name": "vvazquezmontero", "key": "vvazquezmontero", "displayName": "Victor Vazquez Montero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-02-08T19:50:38.000+0000", "size": 10009955, "mimeType": "application/zip" } ], "flagged": false, "summary": "iOS 11.3 beta: Loading HTML in Webview errors when accessing EventListener", "creator": { "name": "vvazquezmontero", "key": "vvazquezmontero", "displayName": "Victor Vazquez Montero", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "vvazquezmontero", "key": "vvazquezmontero", "displayName": "Victor Vazquez Montero", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "434296", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "We need to\r\n* file a bug at Apple as this is a breaking change in a non-major version (nogo). Maybe the fix it before releasing the 11.3 GA\r\n* Find out what's going on there. I suspect the evaluation may have changed\r\n* Fix it. Maybe do a 7.0.3 for this in case Apple does not fix it\r\n\r\nTest-Case:\r\n\r\n*app.js*\r\n{code:js}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar webView = Ti.UI.createWebView({\r\n\turl: 'test.html'\r\n});\r\n\r\nTi.App.addEventListener('test', function(event) {\r\n\talert(event);\r\n});\r\n\r\nwin.add(webView);\r\nwin.open();\r\n \r\n{code}\r\n\r\n*test.html*\r\n{code:html}\r\n\r\n\r\n\t\r\n\r\n\r\n\t\r\n\r\n\r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-02-09T16:14:45.000+0000", "updated": "2018-02-09T16:15:59.000+0000" }, { "id": "434328", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "I've files radar #37423632 at Apple to be hopefully followed up soon.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-02-10T17:50:16.000+0000", "updated": "2018-02-10T17:50:16.000+0000" }, { "id": "434670", "author": { "name": "killroyboy", "key": "killroyboy", "displayName": "Dan Wilson", "active": true, "timeZone": "America/Denver" }, "body": "No fix in the 11.3 beta 3 released today. I'm getting worried that they GA 11.3 and it will break all my existing installs out there with no remedy.\r\n\r\nAny movement/acknowledgment on Apple's end?", "updateAuthor": { "name": "killroyboy", "key": "killroyboy", "displayName": "Dan Wilson", "active": true, "timeZone": "America/Denver" }, "created": "2018-02-20T21:20:21.000+0000", "updated": "2018-02-20T21:20:21.000+0000" }, { "id": "434691", "author": { "name": "threethirds", "key": "threethirds", "displayName": "Anthony Chung", "active": true, "timeZone": "Australia/Sydney" }, "body": "This is going to break our apps as well.\r\nDo you know if this is with webview and wkwebview? \r\n\r\n", "updateAuthor": { "name": "threethirds", "key": "threethirds", "displayName": "Anthony Chung", "active": true, "timeZone": "Australia/Sydney" }, "created": "2018-02-21T05:05:48.000+0000", "updated": "2018-02-21T05:05:48.000+0000" }, { "id": "434734", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "We are in dialog with Apple to resolve this. It looks like they did not know about the issue before. I will update this issue once we have an update.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-02-21T21:33:34.000+0000", "updated": "2018-02-21T21:33:34.000+0000" }, { "id": "434805", "author": { "name": "toru", "key": "toru", "displayName": "Toru", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Our app also has the same problem.\r\nIt seems the script can not access Ti object at all.\r\nI am waiting for the update.", "updateAuthor": { "name": "toru", "key": "toru", "displayName": "Toru", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-02-23T09:38:52.000+0000", "updated": "2018-02-23T09:38:52.000+0000" }, { "id": "434807", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/9877\r\nPR (7_1_X): https://github.com/appcelerator/titanium_mobile/pull/9878\r\n\r\nNote - We should follow to apple to get it fixed from their side also.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-02-23T09:48:30.000+0000", "updated": "2018-02-23T10:24:59.000+0000" }, { "id": "434809", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Apple is investigating our native test case (also attached as \"test_webview_native.zip\" to this ticket) right now. If they are really not able to fix this in iOS 11.3, we have a workaround ready to be put in the next release. \r\n\r\nYou can also apply the above pull request to your current SDK by modifying the \"TiUIWebView.m\" with the one of the ticket. Please let us know if that works for all of you guys! In addition, I will provide a custom 7.0.2 SDK that is the current GA + this fix. Thanks everyone!\r\n\r\n*EDIT*: Custom 7.0.3 build that is basically 7.0.2.GA + the above pull request ~ [Download|https://www.dropbox.com/s/yqgo91mkpuemc3y/mobilesdk-7.0.3-osx.zip?dl=1]", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-02-23T10:11:02.000+0000", "updated": "2018-02-23T14:49:16.000+0000" }, { "id": "434841", "author": { "name": "killroyboy", "key": "killroyboy", "displayName": "Dan Wilson", "active": true, "timeZone": "America/Denver" }, "body": "Hans, I was able to install your modified 7.0.3 build. It actually broke some things on iOS 11.2. I use socket.io within a hidden webview within my application (don't ask -- it's legacy code). 7.0.3 breaks when I call the socket.io connect method. No error message. Just appears to stop processing. \r\n\r\nHowever, 7.0.3 on 11.3.beta3 gets further than it did before. Previously, it didn't even appear to be loading the local html file. Now, it gets to the same point as 11.2 with the same behavior.", "updateAuthor": { "name": "killroyboy", "key": "killroyboy", "displayName": "Dan Wilson", "active": true, "timeZone": "America/Denver" }, "created": "2018-02-23T21:00:32.000+0000", "updated": "2018-02-23T21:00:32.000+0000" }, { "id": "434845", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~killroyboy] Some follow up questions then:\r\n* Did the socket.io implementation work on iOS 11.2 before? If so, can you give an example?\r\n* What's the exact error message with socket.io now?\r\n* You said \"some things\", but only stated the socket.io one, what else?\r\n\r\nWe could eventually only apply the fix for iOS 11.3 (although the Ti.App.fireEvent tests also passed on 11.2), but if you say that it even breaks 11.2, it's looks like a weird behavior, because iOS 11.2 should be unaffected by this. ", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-02-23T21:45:27.000+0000", "updated": "2018-02-23T21:45:27.000+0000" }, { "id": "434852", "author": { "name": "killroyboy", "key": "killroyboy", "displayName": "Dan Wilson", "active": true, "timeZone": "America/Denver" }, "body": "@hknochel Thanks for the response.\r\n\r\n1) Yes. The app works fine with 11.2 and 7.0.1.GA. Once I switch to 7.0.3, it fails to connect. I'll try to put together an example.\r\n2) There is no error message. It just doesn't connect and stops processing the javascript in the html file.\r\n3) Sorry to be imprecise. The socket.io problem was the only problem I experienced because my entire app is dependent on that socket.io connection.", "updateAuthor": { "name": "killroyboy", "key": "killroyboy", "displayName": "Dan Wilson", "active": true, "timeZone": "America/Denver" }, "created": "2018-02-23T23:29:23.000+0000", "updated": "2018-02-23T23:29:23.000+0000" }, { "id": "434855", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~killroyboy] Interesting, interesting. Would you mind trying [this build|https://www.dropbox.com/s/mx0d4naj7rcdw50/mobilesdk-7.0.3-r2-osx.zip?dl=0] to see if it makes a difference? And we definitely need your test case.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-02-24T11:03:30.000+0000", "updated": "2018-02-24T11:03:30.000+0000" }, { "id": "434861", "author": { "name": "toru", "key": "toru", "displayName": "Toru", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hans, I have tried your builds.\r\n\r\n- 7.0.3 r1 with 11.3: Ti object is available, but an error occurs because html does not read external scripts.\r\n- 7.0.3 r2 with 11.3: It worked fine!\r\n\r\nI confirmed that it works well at least in my environment. Great!\r\n", "updateAuthor": { "name": "toru", "key": "toru", "displayName": "Toru", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-02-24T15:55:56.000+0000", "updated": "2018-02-24T15:56:15.000+0000" }, { "id": "434862", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~toru] That are great news! r2 uses a different approach. [~vijaysingh] Can you update your PR to match my changes or should I file an own one? In any way, this is going into 7.1.0 which is planned for the next weeks. In addition, developers who don't trust Apple to fix the actual issue can use the 7.0.3 build right now. Thanks everyone! ", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-02-24T15:58:42.000+0000", "updated": "2018-02-24T15:58:42.000+0000" }, { "id": "434863", "author": { "name": "killroyboy", "key": "killroyboy", "displayName": "Dan Wilson", "active": true, "timeZone": "America/Denver" }, "body": "Hans, I can also confirm that r2 fixed both 11.2 and 11.3 issues for me.\r\n\r\nThanks so much!", "updateAuthor": { "name": "killroyboy", "key": "killroyboy", "displayName": "Dan Wilson", "active": true, "timeZone": "America/Denver" }, "created": "2018-02-24T17:19:41.000+0000", "updated": "2018-02-24T17:19:41.000+0000" }, { "id": "434869", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~hknoechel] I have updated master PR. Can you please update 7_1_X PR. Thanks!", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-02-25T03:27:25.000+0000", "updated": "2018-02-25T03:27:25.000+0000" }, { "id": "434874", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "All updated!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-02-25T09:41:00.000+0000", "updated": "2018-02-25T09:41:00.000+0000" }, { "id": "434940", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "FR Passed. HTML does not error in webview when accessing eventListener. Tested using provided sample code, webview suite, and confirming customer responses", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-02-26T23:05:47.000+0000", "updated": "2018-02-26T23:05:47.000+0000" }, { "id": "435010", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified changes are included in SDK builds: 7.1.0.v20180227113527 & 7.2.0.v20180228075644", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-02-28T17:01:34.000+0000", "updated": "2018-02-28T17:01:34.000+0000" }, { "id": "435047", "author": { "name": "threethirds", "key": "threethirds", "displayName": "Anthony Chung", "active": true, "timeZone": "Australia/Sydney" }, "body": "[~hknoechel]\r\n\r\nHow can I install 7.0.3 r2?\r\n\r\nI tried appc ti sdk install --branch 7_1_X -d\r\nbut too bleeding edge for me.\r\n\r\nI have tried\r\nappc ti sdk install --branch 7_0_X -d\r\n\r\nbut is 7.0.3 r2 a specific one?\r\n\r\n", "updateAuthor": { "name": "threethirds", "key": "threethirds", "displayName": "Anthony Chung", "active": true, "timeZone": "Australia/Sydney" }, "created": "2018-03-01T07:39:20.000+0000", "updated": "2018-03-01T07:39:20.000+0000" }, { "id": "435048", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~threethirds] This change will go in 7.1.0. But you can download it from [here|https://www.dropbox.com/s/mx0d4naj7rcdw50/mobilesdk-7.0.3-r2-osx.zip?dl=0]. Thanks!", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-03-01T07:47:36.000+0000", "updated": "2018-03-01T07:47:36.000+0000" }, { "id": "435049", "author": { "name": "threethirds", "key": "threethirds", "displayName": "Anthony Chung", "active": true, "timeZone": "Australia/Sydney" }, "body": "thanks [~vijaysingh]. appreciate it.", "updateAuthor": { "name": "threethirds", "key": "threethirds", "displayName": "Anthony Chung", "active": true, "timeZone": "Australia/Sydney" }, "created": "2018-03-01T07:59:09.000+0000", "updated": "2018-03-01T07:59:09.000+0000" }, { "id": "437070", "author": { "name": "jignesh.igp", "key": "jignesh.igp", "displayName": "Jignesh Kasundra", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hans Knöchel added a comment - 10/Feb/18 9:50 AM\r\nI've files radar #37423632 at Apple to be hopefully followed up soon.\r\n\r\n\r\n<<< where can I check the status of ticket? I've checked at https://openradar.appspot.com but couldn't find the radar no (#37423632).", "updateAuthor": { "name": "jignesh.igp", "key": "jignesh.igp", "displayName": "Jignesh Kasundra", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-04-23T09:58:02.000+0000", "updated": "2018-04-23T09:58:02.000+0000" }, { "id": "437072", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~jignesh.igp] {{37423632}} is the Apple bug reporter ID. I've just added it to my list of radars on AppSpot: https://openradar.appspot.com/radar?id=5035922554880000", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-04-23T11:09:03.000+0000", "updated": "2018-04-23T11:09:03.000+0000" }, { "id": "437073", "author": { "name": "jignesh.igp", "key": "jignesh.igp", "displayName": "Jignesh Kasundra", "active": true, "timeZone": "America/Los_Angeles" }, "body": "okay. thanks Hans Knöchel", "updateAuthor": { "name": "jignesh.igp", "key": "jignesh.igp", "displayName": "Jignesh Kasundra", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-04-23T11:15:24.000+0000", "updated": "2018-04-23T11:15:24.000+0000" } ], "maxResults": 26, "total": 26, "startAt": 0 } } }