Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26976] Html having links with target="_blank" is not working

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2019-04-16T14:01:41.000+0000
Affected Version/sRelease 8.0.0
Fix Version/sRelease 8.0.1
ComponentsiOS
LabelsengSchedule, regression
ReporterVijay Singh
AssigneeVijay Singh
Created2019-04-10T17:40:03.000+0000
Updated2019-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'.

Comments

  1. Vijay Singh 2019-04-10

    PR(master) - https://github.com/appcelerator/titanium_mobile/pull/10838 PR(8_0_x) - https://github.com/appcelerator/titanium_mobile/pull/10839
  2. Samir Mohammed 2019-04-12

    FR Passed, Waiting on Jenkins build.
  3. Christopher Williams 2019-04-15

    Merged PRs to master/8_0_X
  4. Samir Mohammed 2019-04-16

    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

JSON Source