HybridWebView needs a consistent and usable story for handling JS methods that throw exceptions #27097
Labels
area-controls-hybridwebview
HybridWebView control
s/triaged
Issue has been reviewed
t/enhancement ☀️
New feature or request
Milestone
Description
Right now HybridWebView invocation of JS 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 C# calls JS code and the JS code fails, then that JS failure should be bubbled back up to the C# caller as a .NET 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
The text was updated successfully, but these errors were encountered: