You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Vladimir Kotikov (JIRA)" <ji...@apache.org> on 2015/09/07 13:36:46 UTC

[jira] [Closed] (CB-9049) InAppBrowser on Windows 8.1 WebView doesn't take the target parameter into the account

     [ https://issues.apache.org/jira/browse/CB-9049?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vladimir Kotikov closed CB-9049.
--------------------------------
    Resolution: Not A Problem

> InAppBrowser on Windows 8.1 WebView doesn't take the target parameter into the account 
> ---------------------------------------------------------------------------------------
>
>                 Key: CB-9049
>                 URL: https://issues.apache.org/jira/browse/CB-9049
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin InAppBrowser
>         Environment: Windows 8.1
>            Reporter: Babak Vahdat
>            Assignee: Vladimir Kotikov
>
> According to the [documentation|https://github.com/apache/cordova-plugin-inappbrowser#supported-platforms] Windows 8.1 WebView is supported by this plugin. Now given the following simple code inside {{index.html}}
> {code}
> <body>
>   <button id='launch'>Go to Google</button>
>   <script src='cordova.js'></script>
>   <script>
>   document.addEventListener('deviceready', function() {
>     document.querySelector('#launch').addEventListener('click', function() {
>       cordova.InAppBrowser.open('http://www.google.ch', '_self', 'location=no');
>     }, false);
>   }, false);
>   </script>
> </body>
> {code}
> Clicking the button above inside the WebView results in a new _browser_ window being opened pointing to {{http://www.google.ch}}. However my understanding is, given the target value as {{_self}} and the following whitelist entry inside {{config.xml}}
> {code}
> <access origin="*" />
> {code}
> The site should open inside the WebView _itself_. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org