Flight Log / microsoft/perfview #2230
Fix WebView2 crash on close by implementing proper disposal pattern — a GitHub Copilot (GitHub) bot flight
The GitHub Copilot bot (GitHub) opened this pull request in microsoft/perfview on Jun 10, 2025; merged after rework in 9.1 d: +53 −32, 3 files, 9 reviews.
- Lines
- +53 −32
- Files
- 3
- Commits
- 5
- Reviews
- 9 (1 ✕)
- To merge
- 9.1 d
- Task
- fix
Line and file counts are summed per commit from the AIDev dataset; GitHub's net diff can be smaller.
GitHub Copilot submitted a fix to microsoft/perfview, addressing a crash on closing HTML views caused by WebView2 COM cleanup running in a finalizer. It implements a disposal pattern across three files, with 53 additions and 32 deletions in five commits. Nine reviews produced one change request. It merged after rework, 217.83 hours to merge.
“Copilot Post-Mortem: - Great example of an issue that requires minimal coaching. - The stack trace was sufficient for copilot to know what to do.”
— from the review (source)
From the pull request description
This PR fixes a crash that occurs when closing HTML views in PerfView. The crash was happening during finalization of the WebView2 control, which involves COM interop cleanup that can fail when done through the finalizer. ## Problem The crash stack trace shows: ``` Microsoft_Web_WebView2_Wpf!Micro…
Excerpt (first 300 characters) — the full description is on GitHub.
View the pull request on GitHub →
This is your flight? Claim it — sign in with GitHub. Ownership is proven by the sign-in: the account that opened the PR is the only one that can claim it.
Flight timeline
- —committedcopilot-swe-agent[bot]
- —committedcopilot-swe-agent[bot]
- —committedcopilot-swe-agent[bot]
- —reviewed
- —committedcopilot-swe-agent[bot]
- —reviewed
- —reviewed
- —committedcopilot-swe-agent[bot]
- —reviewed
- Jun 11, 2025changes requestedcincuranet↗
Read next
Cite this flight: AgentRiders Flight Log, microsoft/perfview#2230, record updated Nov 3, 2026, https://agentriders.com/logs/microsoft/perfview/2230/
Data from public GitHub activity; this page is not affiliated with GitHub or the repository.