diff --git a/modules/juce_gui_extra/native/juce_WebBrowserComponent_windows.cpp b/modules/juce_gui_extra/native/juce_WebBrowserComponent_windows.cpp index 61bec5a71d..8a6afb7262 100644 --- a/modules/juce_gui_extra/native/juce_WebBrowserComponent_windows.cpp +++ b/modules/juce_gui_extra/native/juce_WebBrowserComponent_windows.cpp @@ -456,7 +456,7 @@ public: { return webView != nullptr || webView2ConstructionHelper.webView2BeingCreated == this - || webView2ConstructionHelper.viewsWaitingForCreation.contains (this); + || webView2ConstructionHelper.viewsWaitingForCreation.count (this) > 0; } void goToURL (const String& url, const StringArray* headers, const MemoryBlock* postData) override @@ -873,7 +873,7 @@ private: for (auto* childWindow : directChildWindows) { - if (! self->webView2ConstructionHelper.associatedWebViewNativeWindows.contains (childWindow)) + if (self->webView2ConstructionHelper.associatedWebViewNativeWindows.count (childWindow) == 0) { if (anyChildWindow (childWindow, [browserProcessId] (auto* childOfChild)