-
Notifications
You must be signed in to change notification settings - Fork 163
[Edge] Add fallback when WebView2 runtime is not present #2000 #2065
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
base: master
Are you sure you want to change the base?
[Edge] Add fallback when WebView2 runtime is not present #2000 #2065
Conversation
i've picked a little this micro$oft stuff pile... in win11 there is Edge and so called 'OnDemand' pre-installed 'Microsoft-Windows-InternetExplorer-Optional-Package' IE-Edge adapter('dism /online /get-packages /format:table'). looks like the '-Dorg.eclipse.swt.browser.DefaultType=ie' eclipse.ini hat trick (#1912) utilizes 'SWT -> IE-Edge adapter -> m$ Edge' chain. in my case e.g. context help tooltips lose warning 'NOTE: The SWT Browser widget could not be created...' and become richer, Welcome screen at least shows built-in '404' html and 'Tip of the day' (in build I20250423-0800) become fully-functional. without this magic eclipse.ini option - even if 'General / Web browser / Use external ... / Internet explorer' option is selected - seems Eclipse fully relies on 'SWT -> WebView2 -> m$ Edge' chain. for me (v. 4.35.0 on Win11) even if the chain is fully-functional and WebView2 is already provided by Edge, there is a need to overbloat os with m$ Evergreed WebView2 runtime and extremely annoying blocker forcing to get rid of WebView2 totally(#2061) so, '-Dorg.eclipse.swt.browser.DefaultType=ie' + Microsoft-Windows-InternetExplorer-Optional-Package (probably available on Win11, or 'dism /add-package ...') + m$ Edge (seems available on most of Win11) could be a workaround. The thing is there can be nether WebView2/Microsoft-Windows-InternetExplorer-Optional-Package, nor m$ Edge - at least on Win11 in EU, where m$ 'kindly allows' users to remove Edge(e.g. i got my config by uninstalling it and setting up Firefox instead). |
I have to admit that I am not sure what concrete issue you are actually referring to. I have the impression that nothing stated really relates to Edge/WebView2 and making it default in Eclipse but relates to the overall concept of browser integration in Eclipse (see also my comment #2000 (comment)). With VM argument Regarding the handling of WebView2 runtime not being present, we have started to make concrete proposal (like this one) to discuss about. But currently I only see complains rather than (feedback on) actual proposals. |
…form#2000 When using WebView2 as browser engine in SWT without a WebView2 runtime being available on the system, browser initialization fails. In order to more gracefully handle the case that a system has no such runtime installed (like on some Windows 10 systems), this change introduces an automatic fallback to Internet Explorer in case no WebView2 runtime is found. In addition, it shows an error dialog informing about the missing runtime and showing a link to FAQ about it. Fixes eclipse-platform#2000
542d408
to
c4902b0
Compare
It would seem more productive to get edge/webview working. That is the way forward while ie is behind us. It an unfortunate thing that ie has been a horrible abomination for a very long time. No one wants to author html that renders correctly on ie and in a real browser. It really does seem best to move on from this. Sorry if that sounds harsh. There is just way too much to do and way too few people to do it. |
When using WebView2 as browser engine in SWT without a WebView2 runtime being available on the system, browser initialization fails. In order to more gracefully handle the case that a system has no such runtime installed (like on some Windows 10 systems), this change introduces an automatic fallback to Internet Explorer in case no WebView2 runtime is found. In addition, it shows an error dialog informing about the missing runtime and showing a link to FAQ about it.
Fixes #2000
This is supposed to raise an alternative for how to handle the situation that a WebView2 runtime is not present on the current system in addition to:
I do not want to argue for doing it like this, but I would like to give this option to general discussion.
cc @sratz