appcelerator/titanium_mobile — pull request #910 by kosso (2011-12-10 21:51:39+00:00)
Title: Fire the 'error' event if the webView receives an error. 

This has been missing for some time.

There are many times when we need to fire the error event back to an app. (Specifically useful when dealing with OAuth authorization, since user can define a bogus callback in Twitter (for example) then parse the access tokens from the failed URL returned. This is a 'safer' approach to trying to trying to parse a 'PIN' from a web DOM, since the provider could break those implementation by simply changing the design of their pages (as has happened before).

This has been tested and does fire the error event back to an app, but does not avoid momentarily seeing the Android broswer 'not found' error page.