M
M
MegaAnimeshnik2021-11-17 05:50:27
C++ / C#
MegaAnimeshnik, 2021-11-17 05:50:27

Is it possible in WebView2 for winforms to disable image loading?

Hello.
Can you tell me how to disable the loading of images in webview2?
The very ability to disable image loading is available in all chromium browsers, it is logical to assume that this feature can be in WebView2 Runtime, but is it possible to use it or is it not implemented?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
MegaAnimeshnik, 2021-11-17
@MegaAnimeshnik

I found this https://stackoverflow.com/questions/67108373/cance... and in the examples there is something about it https://github.com/MicrosoftEdge/WebView2Samples/b...
but not sure yet, now no way to check

R
rPman, 2021-11-17
@rPman

webview.getSettings().setLoadsImagesAutomatically(false);
webview.getSettings() .setBlockNetworkImage(true);

this is for android and in .net question

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question