Description
Right now HybridWebView invocation of C# methods can hide exceptions thrown by the user code. At an absolute minimum this needs to be logged via .NET MAUI's loggers and/or the webview loggers (JS console.log(), etc.). But some of these exceptions should likely bubble up to the caller in an appropriate manner.
For example if JS calls C# code and the C# code fails, then that C# failure should be bubbled back up to the JS caller as an exception so that it can be caught/handled in a try-catch.
Steps to Reproduce
No response
Link to public reproduction project repository
No response
Version with bug
9.0.21 SR2.1
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
No response
Affected platforms
iOS, Android, Windows, macOS
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
Description
Right now HybridWebView invocation of C# methods can hide exceptions thrown by the user code. At an absolute minimum this needs to be logged via .NET MAUI's loggers and/or the webview loggers (JS
console.log(), etc.). But some of these exceptions should likely bubble up to the caller in an appropriate manner.For example if JS calls C# code and the C# code fails, then that C# failure should be bubbled back up to the JS caller as an exception so that it can be caught/handled in a try-catch.
Steps to Reproduce
No response
Link to public reproduction project repository
No response
Version with bug
9.0.21 SR2.1
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
No response
Affected platforms
iOS, Android, Windows, macOS
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output