Skip to content

Commit c44f56f

Browse files
committed
Subprocess - OnBrowserCreated handle extraInfo being null
- Looks like when Chromium creates it's own windows we don't get a reference to the object Issue #4963
1 parent c3339bd commit c44f56f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CefSharp.BrowserSubprocess.Core/CefAppUnmanagedWrapper.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ namespace CefSharp
6363
//Multiple CefBrowserWrappers created when opening popups
6464
_browserWrappers->TryAdd(browser->GetIdentifier(), wrapper);
6565

66+
if (!extraInfo.get())
67+
{
68+
return;
69+
}
70+
6671
//For the main browser only we check LegacyBindingEnabled and
6772
//load the objects. Popups don't send this information and checking
6873
//will override the _legacyBindingEnabled field

0 commit comments

Comments
 (0)