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

Mobile: Fix unable to show multiple WebViews at once #6841

Merged

Conversation

personalizedrefrigerator
Copy link
Collaborator

Summary

Before this PR, ExtendedWebView always wrote html to NoteEditor.html, regardless of what the WebView was being used for.

As a result, if multiple ExtendedWebViews were created at roughly the same time, all ExtendedWebViews would use the same file and thus display the same content.

Other possible solutions

  • With this change, a webviewInstanceId is required to separate WebViews. An alternative solution would be to create a new temporary file for each instance of the WebView. If we do this, these temporary files would need to be cleaned up/deleted when exiting the application.

@laurent22
Copy link
Owner

Seems like a good enough solution for now, especially since we don't have that many webviews

@laurent22 laurent22 merged commit 9f3a4e0 into laurent22:dev Sep 12, 2022
@personalizedrefrigerator personalizedrefrigerator deleted the pr/fixMultipleWebViews branch September 30, 2022 00:20
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.

2 participants