Hi,
I’m trying to use the chromium/edge backend in JUCE 8.0.6’s WebBrowserComponent, but it still defaults to the old Internet Explorer backend. Here’s what I’m doing:
WebBrowserDemo()
{
setOpaque (true);
WebBrowserComponent::Options::WinWebView2 winWebView2Options;
winWebView2Options.withUserDataFolder(File::getSpecialLocation(File::userApplicationDataDirectory));
WebBrowserComponent::Options options;
options
.withBackend(WebBrowserComponent::Options::Backend::webview2)
.withWinWebView2Options(winWebView2Options);
bool areSupported = WebBrowserComponent::areOptionsSupported(options); // returns true
if(!areSupported)
{
jassertfalse;
}
webView = std::make_unique<WebBrowserComponent>(options);
addAndMakeVisible(webView.get());
webView->goToURL("https://www.whatismybrowser.com/");
setSize (1000, 1000);
}
How can I force using webview2 backend?
Are there any known workarounds or additional settings to check?
Any help is appreciated!
