[TIMOB-6489] Android: Only set basic auth on web view if the proxy is of type WebViewProxy
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-12-08T23:49:58.000+0000 |
Affected Version/s | Release 1.8.0.1 |
Fix Version/s | Sprint 2011-49, Release 1.8.0.1 |
Components | Android |
Labels | module_webview, qe-testadded |
Reporter | Opie Cyrus |
Assignee | Allen Yeung |
Created | 2011-12-06T13:41:23.000+0000 |
Updated | 2012-01-10T15:07:18.000+0000 |
Description
Crash from modules when trying to extend web view. Web view takes a TiViewProxy but assumes further in that the type is WebViewProxy. Wrap basic auth logic in instanceof check for WebViewProxy. Pastie of working work around attached: http://pastie.org/2977192
Attachments
File | Date | Size |
---|---|---|
ti.sample-android-2.zip | 2012-01-10T14:52:41.000+0000 | 40508 |
Steps to reproduce: 1. Create a titanium project 2. Open tiapp.xml and add entry:
3. Download attached zipped module, and place it in your project (same level as the Resources directory) 4. Use the following app.js:
5. Run the app (NOTE: if you run the app multiple times you may need to clean out build directory each time) The app will crash and stay on the splash screen in the fail case.
Closing issue Tested with Ti Studio 1.0.8.201201091758 Ti Mob SDK 1.8.0.1 OSX Lion Droid 3 both v8 and rhino Expected behavior is shown