-
Notifications
You must be signed in to change notification settings - Fork 991
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
Mark WebBrowser
and all related (e.g., HTML* types) as obsolete
#6964
Comments
Team agrees principally. |
Better idea: Replace just the internal implementation with the new browser control. |
I don't think this is feasible - the API surface is different, the types are different, the deployment model is different... It sounds similar to "I want to continue building VB6 apps, just plug the .NET runtime under the covers". |
Bye bye IE. let mark classes as obsolete. What are internal position? Does any discussion should happen for this plan? |
The team has discussed this proposal and reached an agreement that this proposal is worth pursuing further. However, the team doesn't currently have any cycles to work on this further. If you're keen, you're welcome to start working on this. The obsoletion process entails the following:
The obsoletion will also happen in several stages:
|
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Don't hurry up with that. Windows 8.1 is with extended support until January 10, 2023 and as we all know it it has IE11, Trident. Trident itself is fully working and functional in Windows 10,11 and not marked as obsolete. It makes sense to obsolete it here when Microsoft plans removing Trident ? I think this won't happen anytime soon as this will end HTA,Vbscript,Jscript and everything related. That means end of job of many system administrators and WW3 |
The WebBrowser control is based on IE Trident engine, which is almost universally unusable for general web browsing these days. It is also based on COM/ActiveX, which poses difficulties in trimming/native AOT scenarios. Also, Internet Explorer 11 has been retired and is officially out of support as of 15 June 2022. Whilst the underlying Trident engine (mshtml.dll) isn't being removed (yet?) from Windows, the general guidance is to use the modern replacement, which is WebView2 web browser control. Resolves dotnet#6964
I strongly oppose the removal of the |
WebView2 could be used as a replacement, but it needs a wrapper to add key back missing functionality. The biggest missing feature is the ability to view the document source which is trivial in WebBrowser. |
I hope this ability can be added! |
Webview2 uses many resources on a multi users environment (Such as UDF). We decided to keep good old webbrowser. |
Note that we will never remove API from the surface area. We also won't remove the ability to use this. When Windows removes Trident (likely never) then this won't work. |
What does "Note that we will never remove API from the surface area. We also won't remove the ability to use this." mean in reality?
If the second is true, why mark it as obsolete. If 3 that? |
@paul1956 we'll never remove surface area as that is a binary breaking change. Implementations may change or get removed, but I really doubt that will happen in the foreseeable future. I doubt we would ever reimplement this API over anything else as the cost would be quite high. I don't make the decisions ultimately, but I know it would take an awful lot for Windows to remove Trident all together as it would be such a major impact. They still ship the VB6 runtime after all. :) Ultimately, we'll probably do things to encourage you to move off of this, but we have no plans to make this functionality completely inaccessible. |
The app stopped using it a long time ago, but lost some functionality because it was difficult to implement with WebView2 (when it was done), if WebBrowser was to be continued to be support, I might consider going back. But at the same time WebView2 is getting more functionality so it might not necessary. |
Is your feature request related to a problem? Please describe
The
WebBrowser
control is based on IE Trident engine, which is almost universally unusable for general web browsing these days. It is also based on COM/ActiveX, which poses difficulties in trimming/native AOT scenarios.Also, Internet Explorer 11 has been retired and is officially out of support as of 15 June 2022. Whilst the underlying Trident engine (mshtml.dll) isn't being removed (yet?) from Windows, the general guidance is to use the modern replacement, which is WebView2 web browser control.
Describe the solution you'd like and alternatives you've considered
For .NET 7 and .NET 8 decorate all web- and html-related types as obsolete (
error: false
) with a link to directing developers use WebView2 control instead.The obsoletion process entails the following:
The obsoletion will also happen in several stages:
Will this feature affect UI controls?
The affected controls will need to be made hidden from the designer.
The text was updated successfully, but these errors were encountered: