{ "id": "93364", "key": "TIMOB-9592", "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-07-11T17:47:26.000+0000", "created": "2012-06-17T01:23:43.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api", "qe-and060112" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-07-11T17:47:26.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": "The load event for a webview is fired twice for invalid url.\r\n\r\nThis is not a regression. This occurs as far as 1.8.2\r\n\r\nThe issue does not occur on Android 2.2, 2.3 but occurs on 3.2 and 4.0.2\r\n\r\nSteps to reproduce:\r\n1. Create app with the code belo\r\n2. Launch app on android device\r\n\r\nActual: The alert for Loaded is shown twice\r\n\r\nExpected: The alert should be shown only once i.e. load event should fire only once for invalid url\r\n\r\n{code}\r\nvar _window = Ti.UI.createWindow({\r\n\tbackgroundColor:'#000'\r\n})\r\n \t\tvar webview=Ti.UI.createWebView({\r\n\t\t\turl:'http://##',\r\n\t\t\ttop : 0,\r\n\t\t\theight : 200\r\n\t\t});\r\n\t\t\r\n\t\t\t\twebview.addEventListener('load', function() {\r\n\t\t\talert('The webview is loaded!');\r\n\t\t});\r\n\r\n\t\tvar b2 = Ti.UI.createButton({\r\n\t\t\ttitle : \"remove and release and add webview\",\r\n\t\t\ttop : 280\r\n\t\t});\r\n\t\tb2.addEventListener(\"click\", function() {\r\n\t\t\t_window.remove(webview);\r\n\t\t\twebview.reload();\r\n\t\t\t_window.add(webview);\r\n\t\t});\r\n\r\n_window.add(webview);\r\n_window.add(b2);\r\n_window.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Webview: The load event of webview is called twice for invalid url", "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), Galaxy Nexus (V4.0.2)\r\nRuntime: v8", "comment": { "comments": [ { "id": "240686", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The problem reproduce with release 3.0.2 and master release 3.1.0\n\ntested on\n\nTitanium Studio, build: 3.0.1.201212181159\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\n", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-05T10:37:45.000+0000", "updated": "2013-03-05T10:37:45.000+0000" }, { "id": "423924", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verifying that has been fixed as I am unable to reproduce this issue with the following environment;\r\nPixel (7.1)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1 GA\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.2\r\nTi CLI 5.0.14\r\nAlloy 1.9.11\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-07-11T17:47:26.000+0000", "updated": "2017-07-11T17:47:26.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }