[TIMOB-1212] Webview loses bindings to Ti/Titanium when navigation occurs
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2011-04-17T01:55:32.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 1.4.0 |
| Components | Android |
| Labels | android, defect, webview |
| Reporter | Bill Dawson |
| Assignee | Marshall Culpepper |
| Created | 2011-04-15T02:46:44.000+0000 |
| Updated | 2011-04-17T01:55:32.000+0000 |
Description
Simple test: create two html files in your Resources. test1.html should have a link to test2.html. Both files should attempt to write a Ti.API.info() messsage. Create a webview with url test1.html and load it. test1.html's call to Ti.API.info will succeed. Click link to test2.html <-- it's call to Ti.API.info will fail. (If you surround with a try...catch, you'll see error that 'Ti' doesn't exist).
Attachments
| File | Date | Size |
|---|---|---|
| archive.zip | 2011-04-15T02:46:45.000+0000 | 1028 |
Easier example: just reload a page. Attach project resources are good example.
(from [5b0d54b8bbe7cc0685ff8685680c04f827f31d71]) [#1212 state:closed] re-apply webview bindings to Ti.API and Ti.App with each new page load. http://github.com/appcelerator/titanium_mobile/commit/5b0d54b8bbe7cc0685ff8685680c04f827f31d71"> http://github.com/appcelerator/titanium_mobile/commit/5b0d54b8bbe7c...