cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pieter-Jan Dewitte (JIRA)" <>
Subject [jira] [Created] (CB-12266) InappBrowser: Browser: loadstop event.url is not a string
Date Sun, 18 Dec 2016 22:30:58 GMT
Pieter-Jan Dewitte created CB-12266:

             Summary: InappBrowser: Browser: loadstop event.url is not a string
                 Key: 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
            Priority: Minor

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:
$ cordova create eventstop_url
$ cd eventstop_url
$ cordova plugin add cordova-plugin-inappbrowser

Run the following code after device ready:
// as an example because it is allowed by the default CSP
var ref ='', '_blank');
ref.addEventListener('loadstop', function (event) {
    console.log("loadstop event:", event);

$ cordova serve

The console output is:

loadstop event: Object \{type: "loadstop", url: Location\}

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message