Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,10 @@
{
await _elementUtilsModule.DisposeAsync();
}
catch (JSException ex) when (ex.Message.Contains("does not exist"))
{
// Expected on page reload using WebView2
}
catch (Exception ex) when (ex is JSDisconnectedException or TaskCanceledException or ObjectDisposedException)
{
// Expected during circuit disconnect
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,10 @@ public async ValueTask DisposeAsync()
await jsModule.InvokeVoidAsync("dispose", chartId);
await jsModule.DisposeAsync();
}
catch (JSException ex) when (ex.Message.Contains("does not exist"))
{
// Expected on page reload using WebView2
}
catch (Exception ex) when (ex is JSDisconnectedException or TaskCanceledException or ObjectDisposedException)
{
// Circuit disconnected, ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@
{
await _jsModule.DisposeAsync();
}
catch (JSException ex) when (ex.Message.Contains("does not exist"))
{
// Expected on page reload using WebView2
}
catch (Exception ex) when (ex is JSDisconnectedException or TaskCanceledException or ObjectDisposedException)
{
// Circuit disconnected — safe to ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,10 @@ public async ValueTask DisposeAsync()
await jsModule.InvokeVoidAsync("dispose", instanceId);
await jsModule.DisposeAsync();
}
catch (JSException ex) when (ex.Message.Contains("does not exist"))
{
// Expected on page reload using WebView2
}
catch (Exception ex) when (ex is JSDisconnectedException or TaskCanceledException or ObjectDisposedException)
{
// Expected during circuit disconnect
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,10 @@ else
{
await _jsModule.DisposeAsync();
}
catch (JSException ex) when (ex.Message.Contains("does not exist"))
{
// Expected on page reload using WebView2
}
catch (Exception ex) when (ex is JSDisconnectedException or TaskCanceledException or ObjectDisposedException)
{
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3069,6 +3069,10 @@ public async ValueTask DisposeAsync()
{
await columnsModule.DisposeAsync();
}
catch (JSException ex) when (ex.Message.Contains("does not exist"))
{
// Expected on page reload using WebView2
}
catch (Exception ex) when (ex is JSDisconnectedException or TaskCanceledException or ObjectDisposedException)
{
// Expected during circuit disconnect
Expand All @@ -3083,6 +3087,10 @@ public async ValueTask DisposeAsync()
{
await clipboardModule.DisposeAsync();
}
catch (JSException ex) when (ex.Message.Contains("does not exist"))
{
// Expected on page reload using WebView2
}
catch (Exception ex) when (ex is JSDisconnectedException or TaskCanceledException or ObjectDisposedException)
{
// Expected during circuit disconnect
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,10 @@ public async ValueTask DisposeAsync()
{
await _jsModule.DisposeAsync();
}
catch (JSException ex) when (ex.Message.Contains("does not exist"))
{
// Expected on page reload using WebView2
}
catch (Exception ex) when (ex is JSDisconnectedException or TaskCanceledException or ObjectDisposedException)
{
// Circuit disconnected during navigation — safe to ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,10 @@
{
await _portalModule.DisposeAsync();
}
catch (JSException ex) when (ex.Message.Contains("does not exist"))
{
// Expected on page reload using WebView2
}
catch (Exception ex) when (ex is JSDisconnectedException or TaskCanceledException or ObjectDisposedException)
{
// Expected during circuit disconnect
Expand All @@ -218,6 +222,10 @@
{
await _escapeModule.DisposeAsync();
}
catch (JSException ex) when (ex.Message.Contains("does not exist"))
{
// Expected on page reload using WebView2
}
catch (Exception ex) when (ex is JSDisconnectedException or TaskCanceledException or ObjectDisposedException)
{
// Expected during circuit disconnect
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,10 @@
await _jsCleanup.InvokeVoidAsync("dispose");
await _jsCleanup.DisposeAsync();
}
catch (JSException ex) when (ex.Message.Contains("does not exist"))
{
// Expected on page reload using WebView2
}
catch (Exception ex) when (ex is JSDisconnectedException or TaskCanceledException or ObjectDisposedException) { }
}

Expand All @@ -258,6 +262,10 @@
{
await _jsModule.DisposeAsync();
}
catch (JSException ex) when (ex.Message.Contains("does not exist"))
{
// Expected on page reload using WebView2
}
catch (Exception ex) when (ex is JSDisconnectedException or TaskCanceledException or ObjectDisposedException) { }
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,10 @@ public async ValueTask DisposeAsync()
await jsModule.InvokeVoidAsync("dispose", instanceId);
await jsModule.DisposeAsync();
}
catch (JSException ex) when (ex.Message.Contains("does not exist"))
{
// Expected on page reload using WebView2
}
catch (Exception ex) when (ex is JSDisconnectedException or TaskCanceledException or ObjectDisposedException)
{
// Expected during circuit disconnect
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,10 @@ public async ValueTask DisposeAsync()
await jsModule.InvokeVoidAsync("dispose", instanceId);
await jsModule.DisposeAsync();
}
catch (JSException ex) when (ex.Message.Contains("does not exist"))
{
// Expected on page reload using WebView2
}
catch (Exception ex) when (ex is JSDisconnectedException or TaskCanceledException or ObjectDisposedException)
{
// Expected during circuit disconnect
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,10 @@ public async ValueTask DisposeAsync()
await jsModule.InvokeVoidAsync("dispose", instanceId);
await jsModule.DisposeAsync();
}
catch (JSException ex) when (ex.Message.Contains("does not exist"))
{
// Expected on page reload using WebView2
}
catch (Exception ex) when (ex is JSDisconnectedException or TaskCanceledException or ObjectDisposedException)
{
// Expected during circuit disconnect
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,10 @@ public async ValueTask DisposeAsync()
await jsModule.InvokeVoidAsync("dispose", instanceId);
await jsModule.DisposeAsync();
}
catch (JSException ex) when (ex.Message.Contains("does not exist"))
{
// Expected on page reload using WebView2
}
catch (Exception ex) when (ex is JSDisconnectedException or TaskCanceledException or ObjectDisposedException)
{
// Expected during circuit disconnect
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,10 @@ public async ValueTask DisposeAsync()
await _module.InvokeVoidAsync("disposeListContinuation", _textareaRef);
await _module.DisposeAsync();
}
catch (JSException ex) when (ex.Message.Contains("does not exist"))
{
// Expected on page reload using WebView2
}
catch (Exception ex) when (ex is JSDisconnectedException or TaskCanceledException or ObjectDisposedException)
{
// Circuit disconnected, ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,10 @@ public async ValueTask DisposeAsync()
{
await _jsModule.DisposeAsync();
}
catch (JSException ex) when (ex.Message.Contains("does not exist"))
{
// Expected on page reload using WebView2
}
catch (Exception ex) when (ex is JSDisconnectedException or TaskCanceledException or ObjectDisposedException)
{
// Expected during circuit disconnect
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,10 @@ public async ValueTask DisposeAsync()
{
await _multiSelectModule.DisposeAsync();
}
catch (JSException ex) when (ex.Message.Contains("does not exist"))
{
// Expected on page reload using WebView2
}
catch (Exception ex) when (ex is JSDisconnectedException or TaskCanceledException or ObjectDisposedException)
{
// Expected during circuit disconnect
Expand All @@ -754,6 +758,10 @@ public async ValueTask DisposeAsync()
{
await _elementUtilsModule.DisposeAsync();
}
catch (JSException ex) when (ex.Message.Contains("does not exist"))
{
// Expected on page reload using WebView2
}
catch (Exception ex) when (ex is JSDisconnectedException or TaskCanceledException or ObjectDisposedException)
{
// Expected during circuit disconnect
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,10 @@
{
await _navModule.DisposeAsync();
}
catch (JSException ex) when (ex.Message.Contains("does not exist"))
{
// Expected on page reload using WebView2
}
catch (Exception ex) when (ex is JSDisconnectedException or TaskCanceledException or ObjectDisposedException)
{
// Expected during circuit disconnect
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,10 @@ public async ValueTask DisposeAsync()
await jsModule.InvokeVoidAsync("dispose", instanceId);
await jsModule.DisposeAsync();
}
catch (JSException ex) when (ex.Message.Contains("does not exist"))
{
// Expected on page reload using WebView2
}
catch (Exception ex) when (ex is JSDisconnectedException or TaskCanceledException or ObjectDisposedException)
{
// Expected during circuit disconnect
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,10 @@
{
await _jsModule.DisposeAsync();
}
catch (JSException ex) when (ex.Message.Contains("does not exist"))
{
// Expected on page reload using WebView2
}
catch (Exception ex) when (ex is JSDisconnectedException or TaskCanceledException or ObjectDisposedException)
{
// Expected during circuit disconnect
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@
{
await _jsModule.DisposeAsync();
}
catch (JSException ex) when (ex.Message.Contains("does not exist"))
{
// Expected on page reload using WebView2
}
catch (Exception ex) when (ex is JSDisconnectedException or TaskCanceledException or ObjectDisposedException)
{
// Expected during circuit disconnect
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ public async ValueTask DisposeAsync()
await _module.InvokeVoidAsync("cleanup");
await _module.DisposeAsync();
}
catch (JSException ex) when (ex.Message.Contains("does not exist"))
{
// Expected on page reload using WebView2
}
catch (Exception ex) when (ex is JSDisconnectedException or TaskCanceledException or ObjectDisposedException)
{
// Circuit disconnected, ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,10 @@ public async ValueTask DisposeAsync()
await _jsModule.InvokeVoidAsync("disposeEditor", _editorId);
await _jsModule.DisposeAsync();
}
catch (JSException ex) when (ex.Message.Contains("does not exist"))
{
// Expected on page reload using WebView2
}
catch (Exception ex) when (ex is JSDisconnectedException or TaskCanceledException or ObjectDisposedException)
{
// Expected during circuit disconnect in Blazor Server - safe to ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@
{
await _jsModule.DisposeAsync();
}
catch (JSException ex) when (ex.Message.Contains("does not exist"))
{
// Expected on page reload using WebView2
}
catch (Exception ex) when (ex is JSDisconnectedException or TaskCanceledException or ObjectDisposedException)
{
// Circuit disconnected — safe to ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ public async ValueTask DisposeAsync()
{
await module.DisposeAsync();
}
catch (JSException ex) when (ex.Message.Contains("does not exist"))
{
// Expected on page reload using WebView2
}
catch (Exception ex) when (ex is JSDisconnectedException or TaskCanceledException or ObjectDisposedException)
{
// Circuit disconnected
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ public async ValueTask DisposeAsync()
await _module.InvokeVoidAsync("cleanup");
await _module.DisposeAsync();
}
catch (JSException ex) when (ex.Message.Contains("does not exist"))
{
// Expected on page reload using WebView2
}
catch (Exception ex) when (ex is JSDisconnectedException or TaskCanceledException or ObjectDisposedException)
{
// Circuit disconnected, ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
"import", "./_content/BlazorBlueprint.Components/js/responsive-tabs.js");
await _jsModule.InvokeVoidAsync("initialize", _dotNetRef, _componentId, _containerRef);
}
catch (JSException ex) when (ex.Message.Contains("does not exist"))
{
// Expected on page reload using WebView2
}
catch (Exception ex) when (ex is JSDisconnectedException or TaskCanceledException or ObjectDisposedException)
{
// Circuit disconnected, ignore
Expand All @@ -136,6 +140,10 @@ public async ValueTask DisposeAsync()
await _jsModule.InvokeVoidAsync("dispose", _componentId);
await _jsModule.DisposeAsync();
}
catch (JSException ex) when (ex.Message.Contains("does not exist"))
{
// Expected on page reload using WebView2
}
catch (Exception ex) when (ex is JSDisconnectedException or TaskCanceledException or ObjectDisposedException)
{
// Circuit disconnected, ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,10 @@ public async ValueTask DisposeAsync()
await _jsModule.InvokeVoidAsync("dispose", _instanceId);
await _jsModule.DisposeAsync();
}
catch (JSException ex) when (ex.Message.Contains("does not exist"))
{
// Expected on page reload using WebView2
}
catch (Exception ex) when (ex is JSDisconnectedException or TaskCanceledException or ObjectDisposedException)
{
// Expected during circuit disconnect
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,10 @@ public async ValueTask DisposeAsync()
await jsModule.InvokeVoidAsync("dispose", instanceId);
await jsModule.DisposeAsync();
}
catch (JSException ex) when (ex.Message.Contains("does not exist"))
{
// Expected on page reload using WebView2
}
catch (Exception ex) when (ex is JSDisconnectedException or TaskCanceledException or ObjectDisposedException)
{
// Expected during circuit disconnect
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -913,6 +913,10 @@ public async ValueTask DisposeAsync()
await dragDropModule.InvokeVoidAsync("disposeDragDrop", instanceId);
await dragDropModule.DisposeAsync();
}
catch (JSException ex) when (ex.Message.Contains("does not exist"))
{
// Expected on page reload using WebView2
}
catch (Exception ex) when (ex is JSDisconnectedException or TaskCanceledException or ObjectDisposedException)
{
// Circuit disconnected, ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,10 @@
await _keyboardNavCleanup.InvokeVoidAsync("dispose");
await _keyboardNavCleanup.DisposeAsync();
}
catch (JSException ex) when (ex.Message.Contains("does not exist"))
{
// Expected on page reload using WebView2
}
catch (Exception ex) when (ex is JSDisconnectedException or TaskCanceledException or ObjectDisposedException)
{
// Circuit disconnected, ignore
Expand All @@ -223,6 +227,10 @@
{
await _keyboardNavModule.DisposeAsync();
}
catch (JSException ex) when (ex.Message.Contains("does not exist"))
{
// Expected on page reload using WebView2
}
catch (Exception ex) when (ex is JSDisconnectedException or TaskCanceledException or ObjectDisposedException)
{
// Circuit disconnected, ignore
Expand Down