{ "id": "93363", "key": "TIMOB-9591", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-06-17T21:49:22.000+0000", "created": "2012-06-16T13:35:49.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core", "qe-and060112", "regression" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T23:30:18.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": "If the application has the addeventlistener method for the click event for the webview or its parent view, then the web components (like links, web buttons etc.) on the web view do not work.\r\n\r\nRegression. This does not happen in 2.0.2.\r\n\r\nSteps to reproduce:\r\n1. Create an application with code below\r\n2. Launch the application\r\n3. In the google web page that opens, click on any link\r\n\r\nActual: The link does not work. Instead it opens the options for text edit\r\n\r\nExpected: The link should work normally\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'#000'\r\n})\r\n \t\tvar webview=Ti.UI.createWebView({\r\n\t\t\turl:'http://google.com',\r\n\t\t});\r\n\t\t\r\n\t\twebview.addEventListener('click', function(e){\r\n\t\t\t//any event listener code\r\n\t\t});\r\n\t\t\r\nwin.add(webview);\r\nwin.open();\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Webview: Having an event listener for click event of webview or any of its parent view does not allow web interaction with web view components ", "creator": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio: 2.1.0.201206151953\r\nTitanium SDK: 2.1.0.v20120615184153\r\nAndroid Device: Android Tab (V3.2), Android Emulator 2.2\r\nRuntime: v8", "comment": { "comments": [ { "id": "198857", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is probably caused by https://github.com/appcelerator/titanium_mobile/pull/2046. This is actually a consequence of us achieving parity with iOS. I have tested this in both iOS and Android in master, and both have the same behavior. Also, in the docs, we specify this behavior: \r\n\r\n\"The native web view handles scrolling and other related touch events internally. If you add event listeners for any of the standard touch events (touchstart, click, and so on), these events do not reach the native web view, and the user will not be able to scroll, zoom, click on links, and so on.\"\r\n\r\nhttp://docs.appcelerator.com/titanium/2.0/#!/api/Titanium.UI.WebView", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-17T21:47:29.000+0000", "updated": "2012-06-17T21:47:29.000+0000" }, { "id": "411036", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T23:30:18.000+0000", "updated": "2017-03-09T23:30:18.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }