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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]