cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikhil Khandelwal (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-9049) InAppBrowser on Windows 8.1 WebView doesn't take the target parameter into the account
Date Mon, 29 Jun 2015 18:02:06 GMT

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

Nikhil Khandelwal updated CB-9049:
----------------------------------
    Assignee: Vladimir Kotikov  (was: Rob Paveza)

> 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


Mime
View raw message