Skip to content

[windows] Account for ObjectDisposedException coming from device tests for MauiWebView #21631

@PureWeen

Description

@PureWeen

Description

After reviewing some crash dumps for WinUI we noticed an ObjectDisposedException

image

Currently we haven't found a way to detect for this beyond just catching and logging the exception.

I also wonder if we need the internal web view on this code and if that's complicated matters even more. That internal WebView was added 8 years ago for WinRT

xamarin/Xamarin.Forms#277

I started a branch here
https://github.com/dotnet/maui/tree/catch_disposed_exception

With a somewhat naive approach to just catch the exception for now and log it

But I'm curious if

  1. we can just remove that internal webview for simplifying purposes
  2. find a better solution then just catching the disposed exception

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions