{ "id": "170202", "key": "TIMOB-25468", "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": "19988", "description": "", "name": "Release 7.0.1", "archived": false, "released": true, "releaseDate": "2017-12-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-12-15T19:37:00.000+0000", "created": "2017-11-01T17:47:12.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "merge-7.0.1", "webview" ], "versions": [ { "id": "19542", "description": "", "name": "Release 6.2.2", "archived": false, "released": true, "releaseDate": "2017-09-19" } ], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-12-19T18:58:41.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": "h5. Issue Description \r\n\r\nHi team, i have found an issue after upgrading the appcelerator SDK from 6.0.4 to 6.2.2. \r\nHTML Key is missing under the source object. i used that key to find out whether the response(url response data) is success/error based on it. \r\n\r\nAdded the Info method to capture the response in the code. For example added google.com in the web view url. \r\n\r\nPlease let me know if there is any change to the source object or if i need to use any other method/object. \r\n{code}\r\n{\"type\":\"load\",\"source\":{\"lightTouchEnabled\":true,\"overScrollMode\":0,\"url\":\"https://www.google.com/\",\"disableContextMenu\":false,\"pluginState\":0,\"userAgent\":\"Mozilla/5.0 (Linux; Android 6.0.1; SM-G930V Build/MMB29M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36\",\"enableZoomControls\":true,\"hiddenBehavior\":4,\"enabled\":true,\"visible\":true,\"touchEnabled\":true,\"borderRadius\":0,\"backgroundRepeat\":false,\"height\":\"fill\",\"width\":\"fill\",\"keepScreenOn\":false,\"children\":[],\"size\":{\"height\":560,\"width\":360,\"y\":0,\"x\":0},\"rect\":{\"height\":560,\"width\":360,\"y\":80,\"x\":0},\"apiName\":\"Ti.UI.WebView\",\"bubbleParent\":true,\"id\":\"termsWebView\",\"soundEffectsEnabled\":true,\"horizontalWrap\":true,\"enableJavascriptInterface\":true,\"_events\":{\"error\":{},\"load\":{}}},\"url\":\"https://www.google.com/\",\"bubbles\":true,\"cancelBubble\":false} \r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android: HTML Key is missing under the source object for web view", "creator": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Appc SDK 6.2.2", "closedSprints": [ { "id": 978, "state": "closed", "name": "2017 Sprint 25 SDK", "startDate": "2017-12-03T23:22:15.144Z", "endDate": "2017-12-17T23:22:00.000Z", "completeDate": "2017-12-18T22:32:02.770Z", "originBoardId": 114 }, { "id": 975, "state": "closed", "name": "2017 Sprint 24 SDK", "startDate": "2017-11-19T18:59:24.352Z", "endDate": "2017-12-03T18:59:00.000Z", "completeDate": "2017-12-04T23:20:14.151Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "430238", "author": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "body": "In IOS, For the error we are getting the below fields. \r\n{code}\r\n\"success\": false, \r\n\"code\": -1005, \r\n\"error\": \"error\", \r\n{code}\r\n\r\nlogs below for success and error \r\n{code}\r\nsuccess Response: \r\n{ \r\n\"url\": \"https://www.google.com/\", \r\n\"bubbles\": true, \r\n\"type\": \"load\", \r\n\"source\": { \r\n\"autoDetect\": [ \r\n1 \r\n], \r\n\"willHandleTouches\": true, \r\n\"horizontalWrap\": true, \r\n\"visible\": true, \r\n\"touchEnabled\": true, \r\n\"id\": \"termsWebView\", \r\n\"width\": \"FILL\", \r\n\"height\": \"FILL\", \r\n\"url\": \"https://www.google.com/\" \r\n}, \r\n\"cancelBubble\": false \r\n} \r\n\r\nError response: \r\n{ \r\n\"message\": \"The network connection was lost.\", \r\n\"url\": \"https://www.gle.com/\", \r\n\"errorCode\": -1005, \r\n\"bubbles\": true, \r\n\"type\": \"error\", \r\n\"source\": { \r\n\"autoDetect\": [ \r\n1 \r\n], \r\n\"willHandleTouches\": true, \r\n\"horizontalWrap\": true, \r\n\"visible\": true, \r\n\"touchEnabled\": true, \r\n\"id\": \"termsWebView\", \r\n\"width\": \"FILL\", \r\n\"height\": \"FILL\", \r\n\"url\": \"https://www.gle.com\" \r\n}, \r\n\"success\": false, \r\n\"code\": -1005, \r\n\"error\": \"error\", \r\n\"cancelBubble\": false \r\n} \r\n{code}\r\nLet me know if you need more details.", "updateAuthor": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-07T19:05:26.000+0000", "updated": "2017-11-07T19:05:26.000+0000" }, { "id": "430735", "author": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi guys ! I have created the testcase: \r\n\r\napp.js file \r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nvar webview = Ti.UI.createWebView({\r\n\turl: 'http://www.google.com'\r\n});\r\nwin.add(webview);\r\nwin.open();\r\nconsole.log(JSON.stringify(webview));\r\n{code}\r\n\r\nIf you see the console output, the object doesn't include the html attribute", "updateAuthor": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-15T21:13:30.000+0000", "updated": "2017-11-15T21:13:30.000+0000" }, { "id": "431151", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "I validated all commits back to 6.0.x and we did not remove / change any \"html\" keys in the \"load\" event. In fact, the \"html\" key was never documented as part of the event, so maybe you received it through the \"source.html\" property? Let's fix it!\r\n\r\n*EDIT*:\r\nActually it works fine. Tested with kroll- and main-thread. Also with appcelerator.com and google.com:\r\n{code:js}\r\n\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#fff'\r\n});\r\n\r\nvar btn = Ti.UI.createButton({\r\n title: 'Trigger'\r\n});\r\n\r\nvar webview = Ti.UI.createWebView({\r\n url: 'https://appcelerator.com'\r\n})\r\n\r\nwebview.addEventListener('load', function(e) {\r\n Ti.API.warn(e.source.html);\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-11-22T07:11:46.000+0000", "updated": "2017-11-22T11:42:10.000+0000" }, { "id": "431384", "author": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hello [~hknoechel] This is also happening on Android please see here: \r\nhttps://gist.github.com/aminulaust/65c2a1ed20a035aaad71a2149174de1d\r\n\r\nShould I file a new Jira or we can keep working on this one ? ", "updateAuthor": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-28T16:29:36.000+0000", "updated": "2017-11-28T16:29:36.000+0000" }, { "id": "431565", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/9643", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-30T22:38:29.000+0000", "updated": "2017-11-30T22:38:29.000+0000" }, { "id": "432062", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~gmathews], Can you please provide a backport for this.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-12-12T23:12:32.000+0000", "updated": "2017-12-12T23:12:32.000+0000" }, { "id": "432064", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Found issues, left comment in the PR.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-12-13T00:18:11.000+0000", "updated": "2017-12-13T00:18:11.000+0000" }, { "id": "432106", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "7_0_X: https://github.com/appcelerator/titanium_mobile/pull/9686", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-12-13T18:43:26.000+0000", "updated": "2017-12-13T18:43:26.000+0000" }, { "id": "432215", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR passed for master & backport. \r\nConfirmed with [~gmathews], the errors seen (commented in the PR) are not related to this ticket & a separate PR will be made for it.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-12-15T17:27:46.000+0000", "updated": "2017-12-15T17:27:46.000+0000" }, { "id": "432413", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix with SDK 7.0.1.v20171218104141 & 7.1.0.v20171218101353.\r\n\r\nClosing.\r\n\r\nStudio Ver: 5.0.0.201712081732\r\nSDK Ver: 7.0.1.v20171218104141, 7.1.0.v20171218101353\r\nOS Ver: 10.12.3\r\nXcode Ver: Xcode 8.3.3\r\nAppc NPM: 4.2.11\r\nAppc CLI: 7.0.1-master.5\r\nDaemon Ver: 1.0.1\r\nTi CLI Ver: 5.0.14\r\nAlloy Ver: 1.10.10\r\nNode Ver: 8.9.1\r\nJava Ver: 1.8.0_101\r\nDevices: ⇨ google Pixel --- Android 7.1.1\r\n ⇨ google Nexus 5 --- Android 6.0.1\r\n", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-12-19T18:58:30.000+0000", "updated": "2017-12-19T18:58:30.000+0000" } ], "maxResults": 17, "total": 17, "startAt": 0 } } }