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

InAppBrowser is not closed if I close it programmatically on Android

    XMLWordPrintableJSON

Details

    Description

      I use the following unit test. I see that close method is called but browser still on top and does not respond to close and back button.

      PS. If I do location.reload() or execute the same code from Chrome remote inspector then everything works as expected.

              it("inappbrowser.spec.3 should retun InAppBrowser instance with required methods", function () {
                  iabInstance = cordova.InAppBrowser.open(url, '_blank');
      
                  expect(iabInstance).toBeDefined();
      
                  expect(iabInstance.addEventListener).toEqual(jasmine.any(Function));
                  expect(iabInstance.removeEventListener).toEqual(jasmine.any(Function));
                  expect(iabInstance.close).toEqual(jasmine.any(Function));
                  expect(iabInstance.show).toEqual(jasmine.any(Function));
                  expect(iabInstance.executeScript).toEqual(jasmine.any(Function));
                  expect(iabInstance.insertCSS).toEqual(jasmine.any(Function));
      
                  iabInstance.close();
                  iabInstance = null;
              });
      

      May be related to CB-6702

      Attachments

        Activity

          People

            Unassigned Unassigned
            sgrebnov Sergey Grebnov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: