Description
Describe the feature/enhancement you need
I would like the option to not have WebView2 add Window.gc. As stated by Manuel Caballero in https://stackoverflow.com/questions/72147601/detecting-webview2-vs-standalone-edge-browser, the presence of Window.gc allows a website to easily distinguish whether it is being accessed by Edge or WebView2.
The scenario/use case where you would use this feature
My WebView2 is being blocked by some sites that I can access with Edge. Therefore, I really need to be able to not have WebView2 create the Window.gc (and anything else which would not be present in Edge) which I believe is preventing access to these sites.
I use other options, including those described in https://github.com/MicrosoftEdge/WebView2Feedback/issues/3678 to deal with the memory leak in WebView2 without using the garbage collector.
How important is this request to you?
Critical. My app's basic functions wouldn't work without it.
Suggested implementation
No response
What does your app do? Is there a pending deadline for this request?
The app lets the user access a web page and download data from it. I hate to create false deadlines, but I haven't been able to figure out a work-around, so my app has limited functionality until this is implemented.