cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Babak Vahdat (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-9049) InAppBrowser on Windows 8.1 WebView doesn't take the target parameter into the account
Date Wed, 20 May 2015 13:03:00 GMT
Babak Vahdat created CB-9049:
--------------------------------

             Summary: 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


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 insdie 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