{ "id": "63088", "key": "TIMOB-2456", "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": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2012-07-26T12:02:46.000+0000", "created": "2011-04-15T03:20:15.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [ { "id": "19360", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "94532", "key": "TIMOB-9901", "fields": { "summary": "TiAPI: Review and clean up platform bugs and reduce bug count by 20%.", "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": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-07-26T22:04:01.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

In the TiUIWebView class webViewDidStartLoad and\nwebViewDidFinishLoad methods that are used for calling the event\nlisteners:
\nThe events that are generated will not provide the correct\nURL's.

\n

The problem seems to be in this line:

\n
\nNSDictionary *event = url == nil ? nil : [NSDictionary dictionaryWithObject:[url absoluteString] forKey:@\"url\"];\n
\n

The instance variable url seems to be commonly nil, so nothing\nis returned.

\n

The expected behavior for the listeners would rather be:

\n
\nNSString *url__ = [self url];\nNSDictionary *event = url__ == nil ? nil : [NSDictionary dictionaryWithObject:url__ forKey:@\"url\"];\n
\n

Because it will give access to the URL that is actually used in\nthe request that is causing the events.

{html}", "attachment": [], "flagged": false, "summary": "TiUIWebView::webViewDidStartLoad and webViewDidFinishLoad", "creator": { "name": "dieterwimberger", "key": "dieterwimberger", "displayName": "Dieter Wimberger", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dieterwimberger", "key": "dieterwimberger", "displayName": "Dieter Wimberger", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "209675", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "# Does not include complete & valid test case.\r\n# Code fixes are not an appropriate \"bug report\".\r\n\r\nWhen these are resolved the ticket may be reopened.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-26T12:02:46.000+0000", "updated": "2012-07-26T12:02:46.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }