Skip to content

Report WebView2 errors in the windowing library - #16

Merged
3vcloud merged 2 commits into
mainfrom
fix/webview2-diagnostics
Dec 2, 2026
Merged

3vcloud merged 2 commits into
mainfrom
fix/webview2-diagnostics

Conversation

@gwslophub

@gwslophub gwslophub Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Keep WebView2 diagnostics in the windowing library, used by its existing runtime check and failure callbacks.
  • Preserve HRESULTs and Windows error text; name missing exports and stop reporting every discovery/load failure as an absent runtime.
  • Show relevant runtime/profile recovery advice and environment overrides without a second discovery implementation or installation-directory scan.
  • Close the extracted loader DLL and verify its size on disk before replacement; preserve replacement errors.

Verification

  • git diff --check and static control-flow review passed.
  • No build or compiled tests run; Windows runtime verification remains pending.

Companion to gwdevhub/gwlauncher#303, revised following review in the WebView2 Error support thread.

@gwslophub

gwslophub Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Reviewed the complete diff for duplication. Moved the DLL cache out of loaderFunction into one non-template loader, so all export signatures use the same HMODULE. Discovery and initialization errors now share runtimeError for Windows error text, recovery advice, and settings. Static diff checks passed; no build run. The duplicated process-output loops noted in review were in gwlauncher#303 and are now one shared implementation there.

@3vcloud
3vcloud merged commit 3875ef0 into main Dec 2, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant