Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-12407

InAppBrowser object reference AND events lost

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 6.4.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      android (never tried other plaforms)

      Description

      If you have an instance of InAppBrowser, say, with target=_blank, and then you create a new instance with target=_system, your original InAppBrowser reference gets lost, and the events assigned to it stop working.

        let blankBrowser = new InAppBrowser('https://someurl.com', '_blank', 'location=no,zoom=no,hidden=no');
        blankBrowser.on('loadstart').subscribe(
          event => {
            //some behavior
          }
        );
        let systemBrowser = new InAppBrowser('https://anotherurl.com', '_system', 'location=no,zoom=no,hidden=no');
        //bang! the events assigned to blankBrowser go away, and I cannot do anything with the reference
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              othon2000 Othon Crelier
            • Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated: