[TIMOB-9349] TiAPI: Ti.UI.WebView event handling for nested Titanium Mobile Web apps
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2017-06-15T18:20:35.000+0000 |
Affected Version/s | Release 2.0.1 |
Fix Version/s | n/a |
Components | MobileWeb, TiAPI |
Labels | n/a |
Reporter | Chris Barber |
Assignee | Eric Merriman |
Created | 2012-06-02T16:26:17.000+0000 |
Updated | 2017-06-15T18:20:35.000+0000 |
Description
WebViews insert a little bridge that allows the HTML page inside the WebView to fire events to the WebView. If the WebView contains a Mobile Web app, then there's a collision of Ti.App.fireEvent(), Ti.App.addEventListener(), and Ti.App.removeEventListener().
We need to standardize on an API for specifying a target for fireEvent().
Should fireEvent() of the inner Mobile Web app fire the event both for everything in the WebView AND the WebView? Should we have an additional argument to fireEvent that identifies a target? Should we allow a prefix such as "parent://" to the event name?
Closing ticket due to time passed and lack of progress in the past few years. Any problems, please file a new ticket.