fix: prevent crashing due to JSException with WebView2#278
fix: prevent crashing due to JSException with WebView2#278SimonDD7 wants to merge 3 commits intoblazorblueprintui:developfrom
Conversation
|
Hi @SimonDD7, thanks for tracking this one down! The WebView2 reload crash has been a known pain point and your reproduction matches the upstream dotnet/maui issue. The pattern you're applying is the right one in spirit, just want to talk through the implementation before we merge. A few things to address: 1.
|
|
Hey @mathewtaylor,
Thanks for you work, this project is really cool. |
Description
Reloading page with some Blazor Blueprint components in standalone WebView2 app throws JSException
JS object instance with ID X does not exist (has it been disposed?). It appears to be related to MAUI as I found the very same subject elsewhere - expected to be fixed but no ETA for this 2-3 year old issue.Added code only to catch JSException on component disposals. Might not be needed here though.
Type of Change
Testing Checklist
Related Issues
Fixes similar case to #77 but with WebView2