cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-12266) InappBrowser: Browser: loadstop event.url is not a string
Date Tue, 25 Apr 2017 23:43:04 GMT

    [ https://issues.apache.org/jira/browse/CB-12266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15983839#comment-15983839
] 

ASF GitHub Bot commented on CB-12266:
-------------------------------------

Github user cordova-qa commented on the issue:

    https://github.com/apache/cordova-plugin-inappbrowser/pull/218
  
    Cordova CI Build has completed successfully.
    
    **Commit**     - [Link](https://github.com/apache/cordova-plugin-inappbrowser/pull/218/commits/bfb33988be6dae6708a254872da3bf4081eeeb7b)
    **Dashboard** - [Link](http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-inappbrowser-pr/142/)
    
     36 tests run, 0 skipped, 0 failed.



> InappBrowser: Browser: loadstop event.url is not a string
> ---------------------------------------------------------
>
>                 Key: CB-12266
>                 URL: https://issues.apache.org/jira/browse/CB-12266
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Browser, Plugin InAppBrowser
>    Affects Versions: 3.5.0
>         Environment: All browsers (Chrome, Firefox and IE tested)
>            Reporter: Pieter-Jan Dewitte
>            Assignee: Filip Maj
>            Priority: Minor
>              Labels: pluginsrelease
>
> In the browser, the url attribute of the loadstop event (InAppBrowserEvent) is not a
string as documented, but a Location object. The url is stored in event.href.
> Steps to reproduce:
> {quote}
> $ cordova create eventstop_url
> $ cd eventstop_url
> $ cordova plugin add cordova-plugin-inappbrowser
> {quote}
> Run the following code after device ready:
> {code:javascript}
> // https://ssl.gstatic.com as an example because it is allowed by the default CSP
> var ref = cordova.InAppBrowser.open('https://ssl.gstatic.com', '_blank');
> ref.addEventListener('loadstop', function (event) {
>     console.log("loadstop event:", event);
> });
> {code}
> {quote}
> $ cordova serve
> {quote}
> The console output is:
> {quote}
> loadstop event: Object \{type: "loadstop", url: Location\}
> {quote}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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


Mime
View raw message