You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-11-23 21:34:53 +02:00
CefRegisterSchemeHandlerFactory bug fix
CefRegisterSchemeHandlerFactory can have an empty DomainName and a nil handler.
This commit is contained in:
@@ -101,7 +101,10 @@ function TCefSchemeHandlerFactoryOwn.New(const browser : ICefBrowser;
|
||||
const schemeName : ustring;
|
||||
const request : ICefRequest): ICefResourceHandler;
|
||||
begin
|
||||
Result := FClass.Create(browser, frame, schemeName, request);
|
||||
if (FClass <> nil) then
|
||||
Result := FClass.Create(browser, frame, schemeName, request)
|
||||
else
|
||||
Result := nil;
|
||||
end;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user