question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mark `WebBrowser` and all related (e.g., HTML* types) as obsolete

See original GitHub issue

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:

  • .NET 7/8 release - build warnings/documentation only
  • (likely) subsequent release - build errors / implementation removal
  • (possibly) subsequent future release - complete removal of API.

Will this feature affect UI controls?

The affected controls will need to be made hidden from the designer.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:8
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
kant2002commented, Jun 17, 2022

Bye bye IE. let mark classes as obsolete. What are internal position? Does any discussion should happen for this plan?

0reactions
Svetoslav92commented, Jul 9, 2022

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Are there examples of deprecated HTML elements that lost ...
The question that I'm wondering about, though, is: when a tag or element gets deprecated will it be removed from browser support in...
Read more >
The Mark Text element - HTML: HyperText Markup Language
The HTML element represents text which is marked or highlighted for reference or notation purposes due to the marked passage's relevance in ...
Read more >
HTML - Wikipedia
The HyperText Markup Language or HTML is the standard markup language for documents designed to be displayed in a web browser. ... Uniform...
Read more >
HTML Standard
1 Introduction; 2 Common infrastructure; 3 Semantics, structure, and APIs of HTML documents; 4 The elements of HTML; 5 Microdata; 6 User interaction ......
Read more >
A 3-Minute Guide to Doctype HTML
It is an instruction that tells the browser what type of document to expect. All HTML documents need to start with a <!DOCTYPE>...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found