{ "id": "97460", "key": "TIMOB-9991", "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": "15597", "description": "2013 Sprint 17", "name": "2013 Sprint 17", "archived": true, "released": true, "releaseDate": "2013-08-23" }, { "id": "15599", "description": "2013 Sprint 17 API", "name": "2013 Sprint 17 API", "archived": true, "released": true, "releaseDate": "2013-08-23" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-08-13T22:58:16.000+0000", "created": "2012-07-17T05:37:20.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "exalture", "module_webview", "qe-manualtest" ], "versions": [ { "id": "13273", "description": "Release 2.0.2", "name": "Release 2.0.2", "archived": false, "released": true, "releaseDate": "2012-05-31" }, { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [ { "id": "31259", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "118891", "key": "TIMOB-14934", "fields": { "summary": "Android: WebView: the pause button does not work when playing a youtube video on 4.0 devices", "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" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "26192", "type": { "id": "10011", "name": "Includes", "inward": "is included by", "outward": "includes" }, "inwardIssue": { "id": "105162", "key": "TIMOB-11810", "fields": { "summary": "Ti API: Address common WebView deficiencies", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "6", "description": "gh.issue.epic.desc", "name": "Epic", "subtask": false } } } }, { "id": "56991", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "172604", "key": "TIMOB-26552", "fields": { "summary": "Windows: Application fails to open HTML files and links don't return anything ", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2018-11-13T14:40:35.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": "h2. Problem description\r\nSome links inside a WebView with Android 4.0.4 are not working. The problem seems to be related to the length of the text inside the link.\r\n\r\nh2. Steps to reproduce\r\n- Create an app with the files below\r\n- Run the app on Android 4.0.4\r\n- Click the links\r\n\r\napp.js\r\n{code}\r\n\r\nvar win1 = Ti.UI.createWindow({\r\n title: 'string',\r\n backgroundColor: '#fff',\r\n layout: 'vertical'\r\n});\r\n\r\n\r\nvar file = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, 'test2.html');\r\nvar markup = file.read ().toString ();\r\n\r\nvar wv1 = Ti.UI.createWebView ({\r\n top: 0,\r\n left: 0,\r\n right: 0,\r\n bottom: 0,\r\n scalesPagesToFit: true, \r\n //lightTouchEnabled: false, \r\n enableZoomControls: false,\r\n html: markup\r\n});\r\n\r\nwin1.add (wv1);\r\n\r\nwin1.open ();\r\n{code}\r\n\r\ntest2.html\r\n{code}\r\n\r\n\r\n\r\nTest\r\n\r\n\r\n\r\n
\r\n\r\n\r\n\r\n

Test 1:

\r\nXXXX XXXXX XXXXX XX
\r\nXXX XXX
\r\nXXXXXXX, XX XXXXX
\r\n\r\n

Test 2:

\r\n2109 Avent Ferry Rd
\r\nSte 110
\r\nRaleigh, NC 27606
\r\n\r\n

Test 3:

\r\n2109 Avent Ferry Rd, Ste 110
\r\nRaleigh, NC 27606
\r\n\r\n

Test 4:

\r\nline 1 line 1 line 1 line 1
\r\nline 2 line 2 line 2 line 2
\r\nline 3 line 3 line 3 line 3
\r\n\r\n
\r\n{code}\r\n\r\nh2. Expected behavior\r\nAll the links work well\r\n\r\nh2. Current behavior\r\nThe first two links are not working; the user just gets a visual feedback, but the javascript function is not called.\r\n\r\nh2. Additional links\r\nI've found a problem that looks similar: http://code.google.com/p/android/issues/detail?id=33651\r\n\r\nh2. Customer ticket\r\nhttp://support.appcelerator.com/tickets/APP-618179", "attachment": [], "flagged": false, "summary": "Android: links inside a WebView don't work with some particular text length", "creator": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Android 4.0.4 (aka Android 4.0.3 rev 3)\r\nTested on SDK 2.0.1, 2.0.2 and 2.1.0", "comment": { "comments": [ { "id": "208051", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "no mention if this is a regression, Eric please add the required information to the bug", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-17T08:46:48.000+0000", "updated": "2012-07-17T08:46:48.000+0000" }, { "id": "208107", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This appears to NOT be a regression based on affected versions.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-17T11:23:22.000+0000", "updated": "2012-07-17T11:23:22.000+0000" }, { "id": "208260", "author": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "body": "The bug doesn't seem a regression; I tested using SDK 2.0.1, 2.0.2 and 2.1.0, and the problem is the same.", "updateAuthor": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-07-18T03:38:39.000+0000", "updated": "2012-07-18T03:38:39.000+0000" }, { "id": "209508", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Yes we do appear to enable the \"setLightTouchEnabled\" setting when we create the web view.\r\nI would agree this is an Android bug and probably is the same as 33651.\r\n\r\nWebSettings.setLightTouchEnabled() documentation:\r\n \"Enables using light touches to make a selection and activate mouseovers.\"\r\n\r\nFrom that description we probably added this to enable text selection.\r\nThe solution might be to expose this setting to our developers.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-25T21:13:17.000+0000", "updated": "2012-07-25T21:13:17.000+0000" }, { "id": "242400", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The problem reproduces with release 3.0.2 and master release 3.1.0\nIf we continuously clicking on the link then it works fine but its not consistant. \ntested on\n\nTitanium Studio, build: 3.0.2.201302191606\nTitanium SDK version: 3.1.0 \nTitanium SDK version: 3.0.2 \nDevice: Samsung galaxy s duos Android version: 4.0.4\nAndroid Emulator: Android SDK version: 2.2\niOS iPhone Simulator: iOS SDK version: 6.0\n\nIt works fine on IOS iphone simulator", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-15T04:38:42.000+0000", "updated": "2013-03-15T04:38:42.000+0000" }, { "id": "264415", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Added a new Android only property to reset 'lightTouchEnabled'\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/pull/4520\r\n", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-08-01T15:01:54.000+0000", "updated": "2013-08-01T15:01:54.000+0000" }, { "id": "266139", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Testing steps:\n1. Run code in description to reproduce the fail case. \n2. Uncomment 'lightTouchEnabled: false' line\n3. Run code again. Should work as expected.\n", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-13T00:14:35.000+0000", "updated": "2013-08-13T00:14:35.000+0000" }, { "id": "266160", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Pull request updated with changes to take care of the review comments regarding docs", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-08-13T03:27:09.000+0000", "updated": "2013-08-13T03:27:09.000+0000" }, { "id": "276112", "author": { "name": "djha", "key": "djha", "displayName": "Dhirendra Jha", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Test Environment - \nAppc Studio - 3.2.0.201310181700\nSDK - 3.2.0.v20131021142445\nacs - 1.0.7\nalloy - 1.2.2\ntitanium - 3.2.0\ntitanium-code-processor - 1.0.3\nXcode - 5.0\nOS - Mountain Lion (10.8.5)\nDevices - Nexus 4(v4.0.4), Nexus7(v4.2.1)\nResult - Now all the links are working fine. Hence closing this issue.", "updateAuthor": { "name": "djha", "key": "djha", "displayName": "Dhirendra Jha", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-22T10:21:29.000+0000", "updated": "2013-10-22T10:21:29.000+0000" } ], "maxResults": 13, "total": 13, "startAt": 0 } } }