You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/03/21 13:39:59 UTC

[GitHub] [cordova-plugin-inappbrowser] daffinm commented on issue #290: InAppBrowser will not destroy WebView after being closed (by invoking ref.close()) causing memory leaks

daffinm commented on issue #290: InAppBrowser will not destroy WebView after being closed (by invoking ref.close()) causing memory leaks
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/290#issuecomment-475232170
 
 
   I am seeing this too on iOS 12 and Android 8. Currently running in to it on iOS 12 during app testing. 
   
   Here is the code I am using to open and close InAppBrowser windows:
   `      
   let iab = cordova.InAppBrowser.open(url, '_blank', 'location=no,footer=yes');
   iab.addEventListener("exit", function () {
       iab.close();
   })
   `
   I am monitoring the windows from the Safari Develop menu and initially (after starting the app for a test run) the InAppBrowser windows are opening and closing/disappearing from the list as you would expect. And then for some reason they stop disappearing when closed and start accumulating like this:
   
   ![InAppBrowser ghost windows bug](https://user-images.githubusercontent.com/1842730/54755524-ff9f5b00-4bdd-11e9-9e15-1cd6dc5f15b9.png)
   
   I know this is happening because the InAppBrowser window shows no content. It is just blank. I have to restart the app in order to fix things.
   
   Does anyone have any idea why this is happening or what can be done about it?
   
   @sagrawal31 I looked at your code which seems to be for Android only. I am running in to this problem on both iOS and Android. 
   
   
   
   
   
   
   
   
   
   
   Initially InAppBrowser windows seem to disappear when closed, and I have added 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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