MicrosoftEdge / WebView2Feedback

Feedback and discussions about Microsoft Edge WebView2
https://aka.ms/webview2
450 stars 55 forks source link

View Office documents #2104

Open mikeduglas opened 2 years ago

mikeduglas commented 2 years ago

Is your feature request related to a problem? Please describe. WebView2 opens remote office documents in a separate independent window: webview21.Navigate('https://file-examples-com.github.io/uploads/2017/02/file-sample_100kB.docx')

For local documents, if I use SetVirtualHostNameToFolderMapping to map local path to https uri, it opens viewer window for a moment and immediately closes it, then reports a connection error.

Describe the solution you'd like and alternatives you've considered

AB#37954861

champnic commented 2 years ago

Thanks for the request @mikeduglas - I've added this scenario to our backlog!

quietfanatic commented 2 years ago

Since the behavior is to open a popup window and it ignores the NewWindowRequested event, I think this should be considered a bug.