{ "id": "149876", "key": "AC-255", "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-07-26T18:48:34.000+0000", "created": "2015-07-24T00:39:51.000+0000", "labels": [ "android", "webview" ], "versions": [], "issuelinks": [], "assignee": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "updated": "2015-07-27T20:39:37.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "To reproduce:\r\n\r\nCreate a new app.\r\n\r\n*index.xml*\r\n{code:java}\r\n\r\n\t\r\n\r\n{code}\r\n\r\n*index.js*\r\n{code:java}\r\nvar html = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory + 'webview.html').read().text;\r\nvar webview = Titanium.UI.createWebView({\r\n html: html,\r\n});\r\n$.window.add(webview);\r\n$.window.open();\r\n{code}\r\n\r\nCreate a local html file in assets: webview.html (I used https://raw.githubusercontent.com/cbracco/html5-test-page/master/test.html as a test html)\r\n\r\nRun the app and hit the back button. The app crashes with this error:\r\n{noformat}\r\n[WARN] : UnimplementedWebViewApi: Unimplemented WebView method onKeyDown called from: android.webkit.WebView.onKeyDown(WebView.java:2178)\r\n[WARN] : IInputConnectionWrapper: showStatusIcon on inactive InputConnection\r\n[DEBUG] : Window: Window is closed normally.\r\n[ERROR] : WindowManager:\r\n[ERROR] : WindowManager: android.view.WindowLeaked: Activity org.appcelerator.titanium.TiActivity has leaked window android.widget.ZoomButtonsController$Container{428cdc18 V.E..... ......I. 0,0-768,97} that was originally added here\r\n[ERROR] : WindowManager: \tat android.view.ViewRootImpl.(ViewRootImpl.java:346)\r\n[ERROR] : WindowManager: \tat android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:248)\r\n[ERROR] : WindowManager: \tat android.view.WindowManagerImpl.addView(WindowManagerImpl.java:69)\r\n[ERROR] : WindowManager: \tat android.widget.ZoomButtonsController.setVisible(ZoomButtonsController.java:371)\r\n[ERROR] : WindowManager: \tat com.android.org.chromium.android_webview.AwZoomControls.invokeZoomPicker(AwZoomControls.java:29)\r\n[ERROR] : WindowManager: \tat com.android.org.chromium.content.browser.ContentViewCore.invokeZoomPicker(ContentViewCore.java:2818)\r\n[ERROR] : WindowManager: \tat com.android.org.chromium.content.browser.ContentViewGestureHandler$1.onScroll(ContentViewGestureHandler.java:380)\r\n[ERROR] : WindowManager: \tat com.android.org.chromium.content.browser.third_party.GestureDetector.onTouchEvent(GestureDetector.java:588)\r\n[ERROR] : WindowManager: \tat com.android.org.chromium.content.browser.ContentViewGestureHandler.processTouchEvent(ContentViewGestureHandler.java:957)\r\n[ERROR] : WindowManager: \tat com.android.org.chromium.content.browser.ContentViewGestureHandler.confirmTouchEvent(ContentViewGestureHandler.java:1007)\r\n[ERROR] : WindowManager: \tat com.android.org.chromium.content.browser.ContentViewCore.confirmTouchEvent(ContentViewCore.java:1363)\r\n[ERROR] : WindowManager: \tat com.android.org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method)\r\n[ERROR] : WindowManager: \tat com.android.org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:24)\r\n[ERROR] : WindowManager: \tat android.os.Handler.dispatchMessage(Handler.java:102)\r\n[ERROR] : WindowManager: \tat android.os.Looper.loop(Looper.java:136)\r\n[ERROR] : WindowManager: \tat android.app.ActivityThread.main(ActivityThread.java:5001)\r\n[ERROR] : WindowManager: \tat java.lang.reflect.Method.invokeNative(Native Method)\r\n[ERROR] : WindowManager: \tat java.lang.reflect.Method.invoke(Method.java:515)\r\n[ERROR] : WindowManager: \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)\r\n[ERROR] : WindowManager: \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)\r\n[ERROR] : WindowManager: \tat dalvik.system.NativeStart.main(Native Method)\r\n{noformat}\r\n\r\n\r\n\r\n", "attachment": [], "flagged": false, "summary": "Back button on android webview crash", "creator": { "name": "dylan", "key": "dylan", "displayName": "Dylan Rolfe", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dylan", "key": "dylan", "displayName": "Dylan Rolfe", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium 3.5.1.GA\r\nAndroid 4.4.4 Nexus 4", "comment": { "comments": [ { "id": "358324", "author": { "name": "dylan", "key": "dylan", "displayName": "Dylan Rolfe", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Do you need more information from me to reproduce? It is happening everytime for me when testing on my Nexus 4. I haven't tried it in the emulator.", "updateAuthor": { "name": "dylan", "key": "dylan", "displayName": "Dylan Rolfe", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-07-26T23:56:20.000+0000", "updated": "2015-07-26T23:56:20.000+0000" }, { "id": "358377", "author": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "body": "[~dylan] so far we can not reproduce the issue, please share more info with us that can help to replicate the problem\r\n\r\nBest", "updateAuthor": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "created": "2015-07-27T20:39:37.000+0000", "updated": "2015-07-27T20:39:37.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }