Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16647] BlackBerry: Webview 'load' event callback object does not have the url property

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2014-04-02T22:19:06.000+0000
Affected Version/sn/a
Fix Version/s2014 Sprint 07, 2014 Sprint 07 SDK
ComponentsBlackBerry
Labelsmodule_webview, qe-closed-3.3.0, qe-testadded
ReporterDavide Cassenti
AssigneePedro Enrique
Created2014-03-20T11:06:05.000+0000
Updated2014-06-30T10:34:24.000+0000

Description

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.

Comments

  1. Pedro Enrique 2014-04-01

    PR Pending: https://github.com/appcelerator/titanium_mobile_blackberry/pull/210
  2. Priya Agarwal 2014-06-30

    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.

JSON Source