-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Right way to dispose page with WebView #18021
Comments
Folks, any guidance around this? It's kind of a fundamental issue. |
Bump |
Folks any help on this issue? |
In .NET 8, there is #18810. Maybe that would need to be backported? |
I haven't tested it out on WebViews yet, but since you're not getting much help here it might be worth a try. |
Can't repro this issue on Android device on the latest 17.10.0 Preview 3(8.0.0-preview.1.7762). |
As from what I can see 8.0.0-preview.1.7762 is from 2/21/2023. Is it the version you have in mind? |
The issue still reproduces for me on net 8 and physical android device. I have re-uploaded the repro project with net 8. This is quite serious issue, and would appreciate any assistance on this. @RoiChen001 plz remove the try-latest-version label. |
I have the same issue. How can this not be a HIGH priority. |
Description
Android app has 2 pages, 1 home page and 1 page containing WebView. From home page user can go to the WebView page and open a site, come back to the home page and again go to WebView page to open other site, user can do this multiple times.
After few such cycles, in
edge://inspect/#devices
you see multiple instances of the WebView and with page navigating away the WebView is not going away, I am concerned that this is causing memory leak.I see the WebView class does not has any close/dispose/destroy kind of methods. What is the proper way to close the page containing WebView so that all resources are properly released?
I have attached the sample app which reproduces the issue. Pasting some code snippets for quick reference -
Steps to Reproduce
MauiAppWebView.zip
Link to public reproduction project repository
No response
Version with bug
7.0.96
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: