[TIMOB-26976] Html having links with target="_blank" is not working
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | None |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2019-04-16T14:01:41.000+0000 |
| Affected Version/s | Release 8.0.0 |
| Fix Version/s | Release 8.0.1 |
| Components | iOS |
| Labels | engSchedule, regression |
| Reporter | Vijay Singh |
| Assignee | Vijay Singh |
| Created | 2019-04-10T17:40:03.000+0000 |
| Updated | 2019-04-16T14:01:41.000+0000 |
Description
Html having links with target="_blank" is not working from SDK 8.0.0 as we have moved to use WKWebView in TiUIWebview instead of UIWebView
The fix is provided by [~arif] in [PR](https://github.com/appcelerator-modules/Ti.WKWebView/pull/26) of WKWbView module.
Test Case -
var win = Ti.UI.createWindow({
backgroundColor: 'white'
});
var webview = Ti.UI.createWebView({
top: 60,
});
webview.setHtml("<!DOCTYPE html><html><body><p>Open link: <a href=\"https://www.google.com\" target=\"_blank\">click me</a></p></body></html>");
win.add(webview);
win.open();
Expected Result - It should open webpage on click of 'click me'.
PR(master) - https://github.com/appcelerator/titanium_mobile/pull/10838 PR(8_0_x) - https://github.com/appcelerator/titanium_mobile/pull/10839
FR Passed, Waiting on Jenkins build.
Merged PRs to master/8_0_X
Closing ticket. Fix verified in SDK version 8.1.0.v20190416001251 and SDK version 8.0.1.v20190415060903. Test and other information can be found at: PR(master) - https://github.com/appcelerator/titanium_mobile/pull/10838 PR(8_0_x) - https://github.com/appcelerator/titanium_mobile/pull/10839