{ "id": "62649", "key": "TIMOB-2017", "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": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" }, { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13277", "name": "Sprint 2012-08", "archived": true, "released": true, "releaseDate": "2012-04-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-04-23T12:58:38.000+0000", "created": "2011-04-15T03:08:13.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "api", "defect", "module_webview", "qe-testadded", "regression" ], "versions": [], "issuelinks": [ { "id": "20163", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "99699", "key": "TIMOB-10584", "fields": { "summary": "Android: WebView click event is not being fired", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "15755", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "61100", "key": "TIMOB-468", "fields": { "summary": "webviews do not receive click events", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "15756", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "61185", "key": "TIMOB-553", "fields": { "summary": "WebViews events are not works in android", "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 } } } } ], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-08-23T18:06:46.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": "{html}

Bill triaged the problem.

\n

In April you added this code to disallow registering for touch\non the WebView:

\n

\nhttp://github.com/appcelerator/titanium_mobile/commit/d47e4e06456d0...

\n

I'm going to mark this as a regression since I didn't comment on\nthe commit well enough to know if I disabled it on purpose. Will\nneed to check interference with clickable items in a webview and\nscrolling.

{html}", "attachment": [ { "id": "18084", "filename": "app.js", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:08:14.000+0000", "size": 1194, "mimeType": "application/x-javascript" }, { "id": "18085", "filename": "index.html", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:08:14.000+0000", "size": 774, "mimeType": "text/html" } ], "flagged": false, "summary": "Android: WebView No Longer Fires Click Event", "creator": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "127267", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

i'm working on tests for this

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:08:14.000+0000", "updated": "2011-04-15T03:08:14.000+0000" }, { "id": "127268", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

It seems fine to me with clicking enabled. Before I commit and\nset to fixed-in-qa, can you (don) please look at see if this video\nshows me testing enough stuff? (my test files are attached in case\nyou want to look at them.)

\n

Video:

\n

http://screencast.com/t/HBfiMexSS

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:08:14.000+0000", "updated": "2011-04-15T03:08:14.000+0000" }, { "id": "127269", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

(from [dcc312507064f1a53a2ff05919b85817c8f61aac])\n[#2017 state:fixed-in-qa] Re-enable touch for\nWebView. It had been deliberately disallowed but tests with it\nenabled don't show any problems, and with it enabled we can again\nhave the click event. \nhttp://github.com/appcelerator/titanium_mobile/commit/dcc312507064f...

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:08:14.000+0000", "updated": "2011-04-15T03:08:14.000+0000" }, { "id": "127270", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

(from [bad260939ab664f3777fb3239400ae266f8cc437])\n[#2017 state:fixed-in-qa] Re-enable touch for\nWebView. It had been deliberately disallowed but tests with it\nenabled don't show any problems, and with it enabled we can again\nhave the click event. \nhttp://github.com/appcelerator/titanium_mobile/commit/bad260939ab66...

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:08:15.000+0000", "updated": "2011-04-15T03:08:15.000+0000" }, { "id": "127271", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

1.5.0.02c264 g1 1.6 and 2.2 sim

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:08:15.000+0000", "updated": "2011-04-15T03:08:15.000+0000" }, { "id": "186496", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Behavior still occurs from 1.6.2 (earliest available) - 2.0.0.\r\n\r\nWebViews do not fire click events.\r\n\r\nWorks in iOS.\r\n\r\nSDK: 1.8.2 githash=59b3a90s, 2.0.0.v20120314120250\r\nAndroid: V8, Rhino\r\nStudio: 2.0.0.201203121914\r\nOS: Snow Leopard\r\nDevices Tested: GSlate 3.1, Galaxy Nexus 4.0.2\r\n\r\nSteps to Reproduce:\r\n\r\n1. Run code, click web view.\r\n\r\n{code:title=app.js}\r\nvar win = Ti.UI.createWindow();\r\nvar webView = Ti.UI.createWebView();\r\nwebView.addEventListener('click',function(){\r\n\talert('click event fired');\r\n});\r\nwin.add(webView);\r\nvar label = Ti.UI.createLabel({\r\n\ttext:'click me'\r\n});\r\nwebView.add(label);\r\nwin.open();\r\n{code}\r\n\r\nExpected Result:\r\n\r\nclick should fire an alert\r\n\r\nActual Result:\r\n\r\nno alert, no click event", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-14T14:02:30.000+0000", "updated": "2012-03-14T14:02:30.000+0000" }, { "id": "191457", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR https://github.com/appcelerator/titanium_mobile/pull/2027", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-17T15:02:53.000+0000", "updated": "2012-04-17T15:02:53.000+0000" }, { "id": "191750", "author": { "name": "level420", "key": "level420", "displayName": "Dietrich Streifert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Commit https://github.com/appcelerator/titanium_mobile/commit/5b5b8f13800ee9d8ab279342a53fb9f8686d1e06 s seems to have broken onclick handlers for tags within html content in Ti.UI.WebView.\r\n\r\nI have html content containing tags like these:\r\n{code:html}\r\nlinktext\r\n{code}\r\n\r\nThis works for SDK 2.0.1 GA (and 1.8.2) but fails for continurous build 2.1.0.v20120418184403.\r\n\r\nIn SDK 2.0.1 GA tap on a link fires the the onclick handler as expected\r\nIn SDK 2.1.0.v20120418184403 tap on a link leads to a text select action\r\n\r\nTested on emulator with android 4.0.3.\r\n\r\nThis issue should be reopened!\r\n\r\nRegards \r\nDietrich", "updateAuthor": { "name": "level420", "key": "level420", "displayName": "Dietrich Streifert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-19T00:29:08.000+0000", "updated": "2012-04-19T00:42:43.000+0000" }, { "id": "191951", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Dietrich, can you provide the whole test case? BTW, do you test it on iOS? Does iOS give you a different behavior than Android? Thanks.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-19T16:36:32.000+0000", "updated": "2012-04-19T16:36:32.000+0000" }, { "id": "191983", "author": { "name": "level420", "key": "level420", "displayName": "Dietrich Streifert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Ping Wang: In IOS this works as expected and no difference between SDK 2.0.1 GA and SDK 2.1.0.v20120418184403.\r\n\r\nHere we go with the test case:\r\n{code:javascript}\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\n// create tab group\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n\r\n//\r\n// create base UI tab and root window\r\n//\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab1 = Titanium.UI.createTab({ \r\n icon:'KS_nav_views.png',\r\n title:'Tab 1',\r\n window:win1\r\n});\r\n\r\nvar\tbutton1 = Titanium.UI.createButton({\r\n\ttitle:'open webview window',\r\n\twidth:220,\r\n\theight:40\r\n});\r\n\r\nwin1.add(button1);\r\n\r\nvar winwebview = Titanium.UI.createWindow({ \r\n title:'Window with webview',\r\n backgroundColor:'#fff'\r\n});\r\n\r\nvar webview = Titanium.UI.createWebView({\r\n});\r\n\r\nTi.App.addEventListener('openURL', function(e){\r\n\tTi.Platform.openURL(e.url);\r\n});\r\n\r\nwinwebview.add(webview);\r\n\r\nvar counter = 0;\r\nbutton1.addEventListener('click',function(e)\r\n{\r\n counter++;\r\n\r\n webview.html = '

Counter is: ' + counter + '

' +\r\n \t'www.appcelerator.com';\r\n \r\n tab1.open(winwebview,{animated:true});\r\n});\r\n\r\n//\r\n// create controls tab and root window\r\n//\r\nvar win2 = Titanium.UI.createWindow({ \r\n title:'Tab 2',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab2 = Titanium.UI.createTab({ \r\n icon:'KS_nav_ui.png',\r\n title:'Tab 2',\r\n window:win2\r\n});\r\n\r\nvar label2 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'I am Window 2',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\n\r\nwin2.add(label2);\r\n\r\n//\r\n// add tabs\r\n//\r\ntabGroup.addTab(tab1); \r\ntabGroup.addTab(tab2); \r\n\r\n// open tab group\r\ntabGroup.open();\r\n{code}", "updateAuthor": { "name": "level420", "key": "level420", "displayName": "Dietrich Streifert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-20T01:03:25.000+0000", "updated": "2012-04-20T01:03:25.000+0000" }, { "id": "192077", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Steps for functional test:\r\n1) Run the test case below. Click the webview and the alert should show.\r\n2) Comment out \"webView.addEventListener(...)\" and run the test case again. Click any link in the webview. It should open the link and no alert shows.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar webView = Ti.UI.createWebView({\r\n\turl:\"https://www.google.com/\"\r\n});\r\n\r\nwebView.addEventListener('click',function(e){\r\n alert('Click event fired. source = ' + e.source + ', x = ' + e.x + \", y = \" + e.y);\r\n});\r\n\r\nwin.add(webView);\r\n\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-20T12:46:36.000+0000", "updated": "2012-04-20T12:56:14.000+0000" }, { "id": "198519", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as Fixed.\r\n\r\nVerified via Ping's test code.\r\n\r\nSDK: 2.1.0.v20120613210250\r\nStudio: 2.1.0.201206131907\r\nOS: Snow Leopard\r\nDevices Tested: Android Emulator 2.3.3, Nexus One 2.2.2, Nexus S 4.0.4\r\nAndroid Runtime: V8, Rhino", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-14T11:43:02.000+0000", "updated": "2012-06-14T11:43:02.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }