Skip to content

[webview2] Fix error handling in CreateWebResourceResponse - #2496

Merged
stffabi merged 1 commit into
masterfrom
bugfix/webview2-response-error-handling
Mar 16, 2023
Merged

stffabi merged 1 commit into
masterfrom
bugfix/webview2-response-error-handling

Conversation

@stffabi

@stffabi stffabi commented Mar 16, 2023

Copy link
Copy Markdown
Contributor

The old error handling fails on WebView2Runtimes > 110.0.1587.69 and will show a "connection refused" page and reloads after a short time. After the reload everything wroked as expected again.

The old error handling fails on WebView2Runtimes > 110.0.1587.69 and
will show a "connection refused" page and reloads after a short time.
After the reload everything wroked as expected again.
@stffabi
stffabi requested a review from leaanthony March 16, 2023 08:51
@vercel

vercel Bot commented Mar 16, 2023

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
wails-v3-docs ❌ Failed (Inspect) Mar 16, 2023 at 8:51AM (UTC)

@stffabi
stffabi marked this pull request as ready for review March 16, 2023 08:51
@stffabi

stffabi commented Mar 16, 2023

Copy link
Copy Markdown
Contributor Author

There are potentially also other locations that doing the wrong error handling and don't take into account the HRESULT of the native methods and only rely on the GetLastError.

@leaanthony leaanthony left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice sleuthing! 🔍 👍

@stffabi

stffabi commented Mar 16, 2023

Copy link
Copy Markdown
Contributor Author

Thanks for approving.

This branch had an error being deployed

1 failed deployment
Preview — ec1832ba Deployed Mar 16, 2023 by vercel[bot]
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.

2 participants