{ "id": "153944", "key": "AC-1114", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "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": "2015-12-22T08:54:23.000+0000", "created": "2015-12-18T07:36:49.000+0000", "labels": [ "android" ], "versions": [], "issuelinks": [], "assignee": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "updated": "2016-03-08T07:37:28.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "for some url, the webView doesn't work. \r\n\r\ne.g. : \r\n{code:javascript}\r\nurl = http://www.aoyou.com/domesticpackage/p31372i2 \r\n\r\n# this doesn't work, the page is not shown. \r\nTi.UI.createWebView({ \r\n\t\t url: url\r\n\t});\r\n{code}\r\nexpected result: the web page shown \r\nactual result: the web page is not shown. with no error message.\r\n\r\nHowever, if we did the following coding way, it works ( added borderWidth and borderColor attributes) \r\n\r\n{code:javascript}\r\n\r\nTi.UI.createWebView({ \r\n\t\t url: url,\r\n\t\t borderWidth: 0,\r\n borderColor: 'white'\r\n\t});\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "Ti.UI.webview is not correctly displayed for some url", "creator": { "name": "sg552", "key": "sg552", "displayName": "Siwei Shen", "active": true, "timeZone": "Asia/Hong_Kong" }, "subtasks": [], "reporter": { "name": "sg552", "key": "sg552", "displayName": "Siwei Shen", "active": true, "timeZone": "Asia/Hong_Kong" }, "environment": "Titanium SDK: 5.1.1\r\nAndroid version: 19\r\nJDK: 1.8.0_65\r\nnode: 0.12.7\r\n", "comment": { "comments": [ { "id": "373318", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello [~sg552], This is not a bug. It described in our [documentation|http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.WebView]. Starting with Android 4.4 (API Level 19), the WebView component is based off of Chromium, introducing a number of changes to its rendering engine. \r\n\r\nBy default, the Chromium WebView uses hardware acceleration, which may cause content to fail to render. If the WebView fails to render the content, the web view will clear itself, displaying only the default background color. The following log messages will be displayed in the console:\r\n{code}\r\n[WARN] : AwContents: nativeOnDraw failed; clearing to background color.\r\n[INFO] : chromium: [INFO:async_pixel_transfer_manager_android.cc(56)]\r\n{code}\r\nWhich i observed in my test. To workaround this issue, you can enable software rendering by setting the webview's \"borderRadius\" property to a value greater than zero. This is platform default behavior. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2015-12-20T04:59:44.000+0000", "updated": "2015-12-20T05:01:17.000+0000" }, { "id": "373323", "author": { "name": "sg552", "key": "sg552", "displayName": "Siwei Shen", "active": true, "timeZone": "Asia/Hong_Kong" }, "body": "hi Sharif AbuDarda, thanks for your detailed explanation! I am very clear! ", "updateAuthor": { "name": "sg552", "key": "sg552", "displayName": "Siwei Shen", "active": true, "timeZone": "Asia/Hong_Kong" }, "created": "2015-12-20T14:39:15.000+0000", "updated": "2015-12-20T14:39:15.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }