Skip to content

Commit 1773b8b

Browse files
edgchen1amaitland
authored andcommitted
Issue 1594 - Updated calls to GetBrowserWrapper()
Changed the returnNullIfBrowserNotFound parameter to true for some calls to GetBrowserWrapper() to prevent exceptions when closing a popup window.
1 parent 4e1e54f commit 1773b8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CefSharp.Core/Internals/ClientAdapter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ namespace CefSharp
612612
return false;
613613
}
614614

615-
auto browserWrapper = GetBrowserWrapper(browser->GetIdentifier(), browser->IsPopup(), false);
615+
auto browserWrapper = GetBrowserWrapper(browser->GetIdentifier(), browser->IsPopup(), true);
616616
CefFrameWrapper frameWrapper(frame);
617617
CefRequestWrapper requestWrapper(request);
618618
CefResponseWrapper responseWrapper(response);
@@ -660,7 +660,7 @@ namespace CefSharp
660660
return NULL;
661661
}
662662

663-
auto browserWrapper = GetBrowserWrapper(browser->GetIdentifier(), browser->IsPopup(), false);
663+
auto browserWrapper = GetBrowserWrapper(browser->GetIdentifier(), browser->IsPopup(), true);
664664
auto frameWrapper = gcnew CefFrameWrapper(frame);
665665
auto requestWrapper = gcnew CefRequestWrapper(request);
666666

0 commit comments

Comments
 (0)