MicrosoftEdge / WebView2Feedback

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

Webview2 with internetexplorer.application with sitelist.xml #1948

Open gg1975developer opened 2 years ago

gg1975developer commented 2 years ago

Hi, I'm trying to use both webview2 and internetexplorer.application object (https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/platform-apis/aa752084(v=vs.85)) because I need to manage also web sites that are not supporting internetexplorer . I know that today is not available the iemode inside Webview2. The problem is that with the sitelist.xml configured i cannot manage the switch between the two browsers. From internetexplorer object i cannot catch the event of a link that should open in Msedge: no beforenavigate2 event is launched. There is a way to tell internetexplorer.application object to not switch automatically to Edge? I need a way to switch manually from internetexplorer to webview2 without passing to MSEdge. Sitelist is needed to manage the pages in iemode outside my application.

Thanks in advance for you help Best regards

champnic commented 2 years ago

Hey @gg1975developer - I'm not sure on the specifics of internetexplorer.application and the sitelist.xml. That's out of scope for WebView2. Have you tried using a WebBrowser control instead of internetexplorer.application? That should give you more control over it's behavior.

gg1975developer commented 2 years ago

Hi, The WebBrowser control has some limitations about the internet explorer mode that could be rendered as far as I have understood from the documentation: it can not render some pages as ie8 mode and some other as ie11 mode. Is it correct? There is a way with sitelist.xml or some API to switch the rendering mode dinamically inside the WebBrowser control in order to render web pages as ie8 and ie11? I've seen that using the registry you could setup the mode that webcontrol will use but it's a global configuration: you cannot manage a mix of the two ie modes at the sametime. Could you help me to understand if the internet explorer application activex ( https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/platform-apis/aa752084(v=vs.85) ) will be supported after the deadline of june 2022? Thanks in advance Best Regards