IWebPreferences for each WebView
-
13-10-2019 - |
Question
I am trying to disable image auto loading of some WebViews while I keep others enabled. However when I disable it for a WebView, all webviews stop loading image. Below is code I use:
IWebPreferences *prefs = NULL;
webView->preferences(&prefs);
prefs->setLoadsImagesAutomatically(false);
prefs->Release();
What is the proper way to accomplish my goal?
Solution
Just use different identifier for each webview using initWithIdentifier
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow