How to detect if the current rendering engine is Chromium -based or Trident-based?

Priyanka Songra 6 Reputation points
2022-05-01T10:46:36.1+00:00

Hi,

We have a VSTO addin for MS Project 2010/2013/2016/2019, where it imports/exports data from an external application and these pages are rendered in embedded Internet Explorer browser from MS Project.
Since IE support will be ending in few years, we are moving to new embedded browser control known as the Microsoft Edge WebView2 control.

We need to call a javascript in our code flow and since way to call javascript differs in Web browser control and WebView2 control, so looks like we will need to maintain two scripts, one for IE and one for edge.
Is there a way we can differentiate between IE and edge? Way to know the current rendering engine for embedded browser in end user's machine.
Any leads on this please.

Thanks,
Priyanka

Microsoft 365 and Office Development Other
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.