Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(android): Reset bridge on onPageStarted only #4634

Merged
merged 3 commits into from
May 27, 2021
Merged

Conversation

jcesarmobile
Copy link
Member

Whenever a html file is requested (i.e, a fetch/xhr call to a .html file), the bridge is being reset, which causes problems such as the mentioned on #3444, as it cleans all the saved calls, making it impossible to clean listeners and also to return values on plugins that use callbacks.

So, instead of reseting the bridge when a .html file is requested, reset it when onPageStarted is called, which is not called on xhr/fetch/iframes, etc.

closes #3444

@jcesarmobile jcesarmobile merged commit 96e4830 into main May 27, 2021
@jcesarmobile jcesarmobile deleted the reset-start branch May 27, 2021 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: cannot remove hardware back button handler
2 participants