{ "id": "169426", "key": "TIMOB-25163", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2019-07-01T17:17:20.000+0000", "created": "2017-08-09T00:41:55.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android", "webview" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2019-07-01T17:17:20.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": "When loading a local html file using webview. Html attribute always return null even the content is populated successfully on the screen.\r\n\r\nSample: (tested with SDK 6.1.1.GA, 6.1.2.GA)\r\n*\r\nindex.xml*\r\n{code:java}\r\n\r\n\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n*\r\nindex.js*\r\n{code:java}\r\n$.win.open();\r\n$.webview.addEventListener('load', function(e) {\r\n \r\n\tsetTimeout(function() {\r\n\t\tTi.API.info($.webview.html);\r\n\t}, 100);\r\n \r\n});\r\n{code}\r\n\r\nIt's linked to AC-5118 ticket as i didn't describe clearly in previous ticket therefore it was closed.", "attachment": [ { "id": "63011", "filename": "Untitled.png", "author": { "name": "rdiep", "key": "rdiep", "displayName": "Rio Diep", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-08-09T23:06:17.000+0000", "size": 124929, "mimeType": "image/png" }, { "id": "63007", "filename": "Untitled.png", "author": { "name": "rdiep", "key": "rdiep", "displayName": "Rio Diep", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-08-09T04:25:36.000+0000", "size": 63358, "mimeType": "image/png" } ], "flagged": false, "summary": "WebView html property always return null on Android", "creator": { "name": "rdiep", "key": "rdiep", "displayName": "Rio Diep", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rdiep", "key": "rdiep", "displayName": "Rio Diep", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Windows 10, JDK v1.8.0_131, Ti CLI 5.0.12, Ti SDK 6.1.2.GA, android-23", "comment": { "comments": [ { "id": "426304", "author": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello [~rdiep],\r\n\r\nI tested your test code with my test.html file and I could not reproduce this issue. It does not return the null value. Actually getHtml( ) method returns the value of the html property.\r\n- http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.WebView-method-getHtml\r\n\r\nTesting Environment\r\n1. Ti SDK 6.1.1.GA, 6.1.2.GA\r\n2. Android Emulator v6, 7\r\n\r\nOutput\r\n\r\n{code:java}\r\n[INFO] : HTML TEXT=