Microsoft.Toolkit.Win32 icon indicating copy to clipboard operation
Microsoft.Toolkit.Win32 copied to clipboard

WebView UWP bug

Open DmitryBorodiy opened this issue 4 years ago • 10 comments

Describe the bug

I have a problem with WebView which leads to the app being closed. This bug occurs when a heavy site such as YouTube or Skype for Web is loaded. This bug can happen at any time. The app that uses WebView is written on UWP C#.

Screenshots

image

Environment

Windows 10 Build Number:

  • [ ] October 2018 Update (17763)
  • [ ] May 2019 Update (18362)

App min and target version:

  • [ ] October 2018 Update (17763)
  • [ ] May 2019 Update (18362)

Device form factor:

  • [ ] Desktop

Visual Studio

  • [ ] 2019 (version: )

DmitryBorodiy avatar Feb 06 '20 16:02 DmitryBorodiy

Hello Dmitiry-hub, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will investigate the issue and help solve it ASAP. Other community members may also look into the issue and provide feedback 🙌

ghost avatar Feb 06 '20 16:02 ghost

@pagoe-msft FYI ⬆️

Kyaa-dost avatar Feb 07 '20 21:02 Kyaa-dost

I need help with WebView.

DmitryBorodiy avatar Feb 08 '20 15:02 DmitryBorodiy

Hi Dmitry-hub,

Unfortunately this version of WebView that you are using is being phased out. Would it be possible for you to try to recreate the issue using our modern WebView2 control? You can read more about it here: https://docs.microsoft.com/en-us/microsoft-edge/hosting/webview2

pagoe-msft avatar Feb 10 '20 17:02 pagoe-msft

@Dmitiry-hub ⬆️

Kyaa-dost avatar Feb 19 '20 00:02 Kyaa-dost

LOL, so the MSFT proposed solution for an UWP project is to use a component that is not yet available for UWP?. Cannot make this stuff up.

jhwheuer avatar Feb 25 '20 14:02 jhwheuer

Hi jhwheuer,

We currently have an alpha version out for UWP. I realized this wasn't clear in our documentation, thanks for bringing that to our attention, I have updated our documentation accordingly. WebView2 is a new technology we are actively working on, my main point is the old WebView is being deprecated and we believe for most scenarios it is best to develop with the new WebView2.

Thanks!

pagoe-msft avatar Feb 25 '20 23:02 pagoe-msft

Well that makes sense. I am struggling with WebView and script injection. I will post a question regarding this next week, seem to be stuck. Thank you

jhwheuer avatar Feb 26 '20 07:02 jhwheuer

Hi pagoe,

What is the ETA on GA for WebView2 on UWP? I am building a wrapper app for html based single-page-app to better support local I/O, and would rather not build on a deprecated component...

jhwheuer avatar Feb 26 '20 12:02 jhwheuer

@jhwheuer the WebView in this repo is for using the Edge based UWP WebView in WPF and WinForms. Thought looking now I think @Dmitiry-hub was just talking about the normal WebView in UWP, which this repo wouldn't be the right place to post about. Though I think more explicit information/repo steps would be required.

The system's Edge based WebView for UWP is still in the platform for the time being, though I imagine it'll eventually be replaced with WebView2. You can see the WinUI Roadmap here and the latest WebView2 thread here.

michael-hawker avatar Mar 11 '20 20:03 michael-hawker