[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[webview2] Fix error handling in CreateWebResourceResponse #2496

Merged
merged 1 commit into from
Mar 16, 2023

Conversation

stffabi
Copy link
Collaborator
@stffabi stffabi commented Mar 16, 2023

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
Copy link
vercel bot commented Mar 16, 2023

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
Copy link
Collaborator Author
stffabi commented Mar 16, 2023

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.

Copy link
Member
@leaanthony leaanthony left a comment

Choose a reason for hiding this comment

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

Nice sleuthing! 🔍 👍

@stffabi
Copy link
Collaborator Author
stffabi commented Mar 16, 2023

Thanks for approving.

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