[TIMOB-835] iOS: WebView doesn't change it's "url" dynamic property
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-11-05T15:44:24.000+0000 |
Affected Version/s | Release 1.6.2 |
Fix Version/s | Sprint 2011-24, Release 1.8.0 |
Components | iOS |
Labels | n/a |
Reporter | Gabriel Cox |
Assignee | Blain Hamon |
Created | 2011-04-15T02:37:28.000+0000 |
Updated | 2011-11-05T15:44:24.000+0000 |
Description
This seems similar for bug #804 (Android), but this also applies to
iPhone. After a webview is launched, the URL property does not
change when clicking to a link to another URL, or when a redirect
happens.
I tried unsuccessfully using this to catch an Oauth redirected callback URL.
Assigning to Jeff for distribution.
Can we pretty please also have a locationChange event when the url changes (also for remote webviews)?
This doesn't sound like much, but would be a killer feature for me!
@Jacob: WebView already has a 'load' event that fires whenever a page loads. This event even has a property called 'url' that, when the webview reflects an url instead of being called with setHtml or setData, is accurate to the new page.
On a successful page load, we change the proxy's url to reflect the new page.
There is no sample code attached with this bug, (nor with the original LH ticket), could we get a quick test attached?
D'oh. Let's add some code, shall we?
Pull request merged.
Tested with 1.8.0.v20110819142548 iPhone 4.3.4 iPad2 4.3.2 Motorola Xoom 3.2 Nexus One 2.2.2
Standardizing summary and labels.