{ "id": "127893", "key": "TIMOB-16647", "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": "15939", "description": "2014 Sprint 07", "name": "2014 Sprint 07", "archived": true, "released": true, "releaseDate": "2014-04-11" }, { "id": "15940", "description": "2014 Sprint 07 SDK", "name": "2014 Sprint 07 SDK", "archived": true, "released": true, "releaseDate": "2014-04-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-04-02T22:19:06.000+0000", "created": "2014-03-20T11:06:05.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "module_webview", "qe-closed-3.3.0", "qe-testadded" ], "versions": [], "issuelinks": [ { "id": "36594", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "125006", "key": "TIMOB-16237", "fields": { "summary": "BlackBerry: Web View is need to return URLs from redirects", "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": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-30T10:34:24.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": "10230", "name": "BlackBerry", "description": "BlackBerry Platform" } ], "description": "h2. Description of the problem\r\nThe load event callback object for a WebView does not have the url property. This is needed for example for oAuth login, as you need to retrieve the URL after a redirect.\r\n\r\nh2. Steps to reproduce\r\n1. Create a page with a redirect (e.g. 302)\r\n2. Use the following code:\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'white'\r\n});\r\n\r\nvar webview = Ti.UI.createWebView({\r\n\turl : 'SOMEPAGE'\r\n});\r\n\r\nwebview.addEventListener('load', function(e){\r\n\talert(JSON.stringify(e));\t\r\n});\r\nwin.add(webview);\r\n\r\nwin.open();\r\n{code}\r\n\r\nh3. Result\r\nThe WebView redirects, but when 'load' is called, there is no url property.", "attachment": [], "flagged": false, "summary": "BlackBerry: Webview 'load' event callback object does not have the url property", "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": null, "comment": { "comments": [ { "id": "299453", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR Pending: https://github.com/appcelerator/titanium_mobile_blackberry/pull/210", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-04-01T00:22:56.000+0000", "updated": "2014-04-01T00:22:56.000+0000" }, { "id": "311604", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified with:\r\nAppcelerator-Studio:3.3.0.201406271159\r\nSdk:3.3.0.v20140627202512\r\nacs:1.0.14\r\nalloy:1.4.0-rc3\r\nnpm:1.3.2\r\ntitanium:3.3.0-rc4\r\ntitanium-code-processor:1.1.1\r\nxcode:5.1.1\r\nOS:Maverick(10.9.3)\r\nDevice:Blackberry Z10(10.0.10.261)\r\n\r\n Webview 'load' event callback object does have the url property.\r\nWorking as expected.\r\nHence closing the issue.", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-30T10:34:04.000+0000", "updated": "2014-06-30T10:34:04.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }