Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1212] Webview loses bindings to Ti/Titanium when navigation occurs

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:55:32.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.4.0
ComponentsAndroid
Labelsandroid, defect, webview
ReporterBill Dawson
AssigneeMarshall Culpepper
Created2011-04-15T02:46:44.000+0000
Updated2011-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

FileDateSize
archive.zip2011-04-15T02:46:45.000+00001028

Comments

  1. Bill Dawson 2011-04-15

    Easier example: just reload a page. Attach project resources are good example.

  2. Jeff Haynie 2011-04-15

    (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...

JSON Source