New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TIMOB-3370][TIMOB-9593] webview fixes #3909
Conversation
String baseUrl = "data://"; | ||
reloadMethod = reloadTypes.HTML; | ||
reloadData = d; | ||
String baseUrl = "TiC.URL_ANDROID_ASSET_RESOURCES"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TiC.URL_ANDROID_ASSET_RESOURCES does not need quotes.
@@ -165,6 +166,7 @@ -(UIWebView*)webview | |||
[spinner sizeToFit]; | |||
[spinner startAnimating]; | |||
} | |||
lastValidLoad = nil; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RELEASE_TO_NIL ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Initialization. Not even required.
Code reviewed and functionally tested for Android. Ran all the test cases in TIMOB-9593. All passed. Request Accepted |
Code reviewed. APPROVED |
Functionally tested TIMOB-3370 on iPhone Simulator. Accepted |
[TIMOB-3370][TIMOB-9593] webview fixes
iOS fixes:
Load will fire only for unique urls
Test case is in TIMOB-3370
Android Fixes:
refactor of reload method to properly fix TIMOB-9593 and do setHtml with baseURL pointing to resources dir.
setData now checks for type file and loads from there to get correct baseUrl for relative paths in files
changeProxyUrl now does not fire property change for url.
Note that setting HTML still sets the wrong URL in history and so goBack() will always fail once you navigate away from page(existing behavior)
Test case attached to TIMOB-9593
Regress against KS Webview