Skip to content
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

Merged
merged 7 commits into from Mar 6, 2013
Merged

[TIMOB-3370][TIMOB-9593] webview fixes #3909

merged 7 commits into from Mar 6, 2013

Conversation

vishalduggal
Copy link
Contributor

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

@ghost ghost assigned pingwang2011 Feb 26, 2013
String baseUrl = "data://";
reloadMethod = reloadTypes.HTML;
reloadData = d;
String baseUrl = "TiC.URL_ANDROID_ASSET_RESOURCES";
Copy link
Contributor

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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RELEASE_TO_NIL ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Initialization. Not even required.

@pingwang2011
Copy link
Contributor

Code reviewed and functionally tested for Android. Ran all the test cases in TIMOB-9593. All passed. Request Accepted

@mstepanov
Copy link
Contributor

Code reviewed. APPROVED

@pingwang2011
Copy link
Contributor

Functionally tested TIMOB-3370 on iPhone Simulator. Accepted

pingwang2011 added a commit that referenced this pull request Mar 6, 2013
[TIMOB-3370][TIMOB-9593] webview fixes
@pingwang2011 pingwang2011 merged commit 764d8ad into tidev:master Mar 6, 2013
@vishalduggal vishalduggal deleted the timob-3370 branch October 27, 2014 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants