You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/05/15 11:30:51 UTC

[GitHub] [cordova-plugin-inappbrowser] The-White-Fang opened a new issue #875: InAppBrowser previous content persists after ref.show()

The-White-Fang opened a new issue #875:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/875


   ### Issue Type
   
   - [x] Bug Report
   - [ ] Feature Request
   - [ ] Support Question
   
   ## Description
   Tried to hide the window on the 'unload' event and show it on the 'loadstop' event. The previous content is shown initially and the new content starts drawing after which makes a flicker. I assume this is not the expected behavior.
   
   ### Command or Code
   ref.addEventListener('loadstop', () => {
   	ref.executeScript({
   		code: `
   			window.addEventListener("beforeunload", function(event) {
   				webkit.messageHandlers.cordova_iab.postMessage(JSON.stringify({
   					hide: true,
   				}))
   			});
   		`
   	});
   });
   
   Platform: Android 9.0
   Cordova: 10.0.0
   InAppBrowser: 5.0.0
   
   
   ## Checklist
   
   - [x] I searched for already existing GitHub issues about this
   - [x] I updated all Cordova tooling to their most recent version
   - [x] I included all the necessary information above
   


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



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