Description of the problem
The 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.
Steps to reproduce
1. Create a page with a redirect (e.g. 302)
2. Use the following code:
var win = Ti.UI.createWindow({
backgroundColor:'white'
});
var webview = Ti.UI.createWebView({
url : 'SOMEPAGE'
});
webview.addEventListener('load', function(e){
alert(JSON.stringify(e));
});
win.add(webview);
win.open();
Result
The WebView redirects, but when 'load' is called, there is no url property.
PR Pending: https://github.com/appcelerator/titanium_mobile_blackberry/pull/210
Verified with: Appcelerator-Studio:3.3.0.201406271159 Sdk:3.3.0.v20140627202512 acs:1.0.14 alloy:1.4.0-rc3 npm:1.3.2 titanium:3.3.0-rc4 titanium-code-processor:1.1.1 xcode:5.1.1 OS:Maverick(10.9.3) Device:Blackberry Z10(10.0.10.261) Webview 'load' event callback object does have the url property. Working as expected. Hence closing the issue.