Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,9 @@ private void createInstance(int previousAttempts) {
int hr = containingEnvironment.environment().QueryInterface(COM.IID_ICoreWebView2Environment2, ppv);
if (hr == COM.S_OK) environment2 = new ICoreWebView2Environment2(ppv[0]);
// The webview calls are queued to be executed when it is done executing the current task.
containingEnvironment.environment().CreateCoreWebView2Controller(browser.handle, createControllerInitializationCallback(previousAttempts));
IUnknown controllerInitializationHandler = createControllerInitializationCallback(previousAttempts);
containingEnvironment.environment().CreateCoreWebView2Controller(browser.handle, controllerInitializationHandler);
controllerInitializationHandler.Release();
}

private IUnknown createControllerInitializationCallback(int previousAttempts) {
Expand Down
Loading