{ "id": "128870", "key": "TIMOB-16840", "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": "15939", "description": "2014 Sprint 07", "name": "2014 Sprint 07", "archived": true, "released": true, "releaseDate": "2014-04-11" }, { "id": "15971", "description": "Release 3.2.3", "name": "Release 3.2.3", "archived": false, "released": true, "releaseDate": "2014-04-30" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-04-11T22:37:05.000+0000", "created": "2014-04-10T00:23:00.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_android", "qe-3.2.3", "qe-testadded", "regression" ], "versions": [ { "id": "15971", "description": "Release 3.2.3", "name": "Release 3.2.3", "archived": false, "released": true, "releaseDate": "2014-04-30" } ], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-04-21T18:44:56.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. Problem description\r\nIn the Dynamic Styling Alloy sample https://github.com/appcelerator/alloy/tree/master/test/apps/advanced/dynamic_styling , in the 'rawStyle' window, there is a webView whose html content is rendered using the Underscore.js '_.template' utility:\r\n\r\n{code}\r\n$.styleArray.html = _.template(Alloy.Globals.htmlTemplate, {\r\n\tCODE: JSON.stringify(require('alloy/styles/features/rawStyle'), null, ' '),\r\n\tBRUSH: 'js'\r\n});\r\n{code}\r\n\r\nAlloy.Globals.htmlTemplate (in app/alloy.js):\r\n{code}\r\nAlloy.Globals.htmlTemplate = '
; gutter: false;\"><%= CODE %>
';\r\n{code}\r\n\r\nIf no targetSdkVersion is specified or if a targetSdkVersion specified is greater than 13, running the sample on Android using the latest SDK (3.2.3.v20140403105720), the Webview is not visible.\r\nIs correctly visible using 3.2.2.GA on both iOS and Android.\r\n\r\nh5. Steps to reproduce\r\n1. Create a new Alloy project and import the Alloy sample code https://github.com/appcelerator/alloy/tree/master/test/apps/advanced/dynamic_styling (or get the attached project)\r\n2. Run on Android and click on 'Raw Style Modules'\r\nResult: second webView () is not visible. \r\n\r\n3. Edit tiapp.xml, add the following and run on Android:\r\n{code}\r\n\r\n \r\n \r\n \r\n\r\n{code}\r\n\r\nResult: the webView is now correctly displayed\r\n\r\n4. Edit tiapp.xml, add the following and run on Android:\r\n{code}\r\n\r\n \r\n \r\n \r\n\r\n{code}\r\n\r\nResult: Webview is no longer displayed.\r\n\r\n\r\n5. Edit tiapp.xml, switch to SDK 3.2.2.GA, use any targetSdkVersion (from 11 to 19) and run on device:\r\nResult: webview is always correctly displayed. It seems to be a regression on the SDK (also no changes made on Alloy).\r\n\r\n\r\nAttached screenshots for comparison between a displayed and not-displayed webview.\r\n\r\n\r\nh5. Note\r\nIf using Jake to import the Alloy sample project, it works fine as in this case an Harness template with targetSdkVersion='11' is being used.\r\nIf using the default new app tiapp.xml file (with no targetSdkVersion being specified in the manifest), the sample webview is not visible.", "attachment": [ { "id": "47227", "filename": "3.2.2_windows.png", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-10T00:23:00.000+0000", "size": 130762, "mimeType": "image/png" }, { "id": "47228", "filename": "3.2.X_windows.png", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-10T00:23:00.000+0000", "size": 96481, "mimeType": "image/png" }, { "id": "47247", "filename": "passTestAlloy.zip", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-10T22:10:33.000+0000", "size": 5044125, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: Webview with '_.template' rendered HTML not displayed", "creator": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 3.2.3.v20140403105720\r\nAppcelerator Studio 3.2.3.201404081806\r\nCLI 3.2.3-alpha2\r\nAlloy 1.3.1", "comment": { "comments": [ { "id": "300584", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "I don't believe this to be an Alloy bug. It is related to the Android SDK version used to build the app. Anything newer than API version 13 exhibits the problem; older Android API levels don't have this issue.\n\nMy test:\n\n1. Create a new project with the CLI\n2. Edit tiapp.xml to set Ti SDK to 3.2.3.Alpha\n3. Build via command line to Genymotion emulator (Galaxy Nexus, Android 4.2.2). App exhibits the behavior as described (second webview isn't visible)\n4. Modify tiapp.xml, adding the code below. Rinse and repeat using targetSdkVersions from 11 (which is what is set by the Harness Template) through 19. Android SDK versions 11, 12, and 13 -- the app works properly. Any SDK version higher than 13 exhibits the behavior described in the ticket.\n5. Modify tiapp.xml setting TiSDK to 3.2.2.GA and targetSdkVersion to 19. The app runs properly.\n\n{code}\n\n \n \n \n\n\n{code}", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-04-10T20:34:43.000+0000", "updated": "2014-04-10T20:34:43.000+0000" }, { "id": "300719", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master PR: https://github.com/appcelerator/titanium_mobile/pull/5592\r\n3.2.x PR: https://github.com/appcelerator/titanium_mobile/pull/5593", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-11T21:18:33.000+0000", "updated": "2014-04-11T21:20:12.000+0000" }, { "id": "300869", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified as fixed.\n\nTiSDK 3.2.3.v20140411160129 \nAlloy 1.3.1\nAppcelerator Studio 3.2.3.201404111117\n\nMac OS X and Windows 7 x64\nGoogle Nexus Galaxy 4.3\n\nClosing.", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-14T20:15:01.000+0000", "updated": "2014-04-14T20:15:01.000+0000" }, { "id": "300934", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as per Federico's comment.", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-04-15T01:56:58.000+0000", "updated": "2014-04-15T01:56:58.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }