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-11012) Loadstart loadstop events do not fire for webview (target = _self)
Date Sun, 17 Jul 2016 13:06:20 GMT

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

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

Github user cordova-qa commented on the issue:

    https://github.com/apache/cordova-plugin-inappbrowser/pull/175
  
    Cordova CI Build has completed successfully.
    
    **Commit**     - [Link](https://github.com/apache/cordova-plugin-inappbrowser/pull/175/commits/4d6e18e32355577507b52a5bdd7c4a48552015d3)
    **Dashboard** - [Link](http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-inappbrowser-pr/53/)
    
    | Builder Name  | Console Output | Test Report | Device Logs  |
    |     :---:     |     :---:      |   :---:     |     :---:    |
    | [Windows 8.1 Store]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-inappbrowser-pr/53//PLATFORM=windows-8.1-store/)
| [Link]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-inappbrowser-pr/53//PLATFORM=windows-8.1-store/console)
| [Link]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-inappbrowser-pr/53//PLATFORM=windows-8.1-store/testReport/)
| [Link]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-inappbrowser-pr/53//PLATFORM=windows-8.1-store/artifact/)
|
    | [Windows 10  Store]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-inappbrowser-pr/53//PLATFORM=windows-10-store/)
| [Link]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-inappbrowser-pr/53//PLATFORM=windows-10-store/console)
| [Link]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-inappbrowser-pr/53//PLATFORM=windows-10-store/testReport/)
| [Link]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-inappbrowser-pr/53//PLATFORM=windows-10-store/artifact/)
|
    | [Windows 8.1 Phone]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-inappbrowser-pr/53//PLATFORM=windows-8.1-phone/)
| [Link]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-inappbrowser-pr/53//PLATFORM=windows-8.1-phone/console)
| [Link]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-inappbrowser-pr/53//PLATFORM=windows-8.1-phone/testReport/)
| [Link]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-inappbrowser-pr/53//PLATFORM=windows-8.1-phone/artifact/)
|
    | [iOS]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-inappbrowser-pr/53//PLATFORM=ios/)
| [Link]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-inappbrowser-pr/53//PLATFORM=ios/console)
| [Link]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-inappbrowser-pr/53//PLATFORM=ios/testReport/)
| [Link]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-inappbrowser-pr/53//PLATFORM=ios/artifact/)
|
    | [Android]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-inappbrowser-pr/53//PLATFORM=android/)
| [Link]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-inappbrowser-pr/53//PLATFORM=android/console)
| [Link]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-inappbrowser-pr/53//PLATFORM=android/testReport/)
| [Link]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-inappbrowser-pr/53//PLATFORM=android/artifact/)
|
     



> Loadstart loadstop events do not fire for webview (target = _self)
> ------------------------------------------------------------------
>
>                 Key: CB-11012
>                 URL: https://issues.apache.org/jira/browse/CB-11012
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin InAppBrowser
>         Environment: Cordova 6.1.0
>            Reporter: Rohan
>            Assignee: jcesarmobile
>            Priority: Minor
>              Labels: triaged
>
> Building a cordova app using Ionic.
> Loading a URL in webview using inappbrowser plugin but none of the events like loadstart,
loadstop  get fired.
> This is my app.js
> {code}
>  var ref = cordova.InAppBrowser.open('http://www.google.com','_self', 'location=no')
>           ref.addEventListener('loadstart', function (event) {
>             console.log('loadstart fired');
>           }, false);
>           ref.addEventListener('loadstop', function (event) {
>             console.log('loadstop fired');
>           }, false);
>           ref.addEventListener('loaderror', function (event) {
>             console.log('loadstop fired');
>           }, false);
>           ref.addEventListener('exit', function (event) {
>             console.log('exit fired');
>           }, false);
> {code}
> CSP in index.html
> {code}
>  
>    <meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap:
https://ssl.gstatic.com; style-src 'self' 'unsafe-inline'; media-src *">
> {code}
>  Console output is blank when _self is used
> *Note: The events fire when target _blank is used.*
> {code}
> I/chromium( 2222): [INFO:CONSOLE(69)] "loadstart fired", source: file:///android_asset/www/src/app.js
(69)
> I/chromium( 2222): [INFO:CONSOLE(73)] "loadstop fired", source: file:///android_asset/www/src/app.js
(73) 
> I/chromium( 2222): [INFO:CONSOLE(73)] "loadstop fired", source: file:///android_asset/www/src/app.js
(73)
> I/chromium( 2722): [INFO:library_loader_hooks.cc(130)] Chromium logging enabled: level
= 0, default verbosity = 0
> I/chromium( 2222): [INFO:CONSOLE(73)] "loadstop fired", source: file:///android_asset/www/src/app.js
(73)
> {code}



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