You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-11-23 21:34:53 +02:00
Fixes in string handling and CEF types
- Modified Cefv8Accessor and Cefv8Interceptor helper function declarations. - Fixed and renamed ICefV8Interceptor parameters. - Fixed and renamed ICefV8Accessor parameters. - Modified ICefValue.SetBool parameter. - Fixed ICefMenuModelDelegate.FormatLabel "label" parameter. - Modified CefStringClearAndGet parameter. - Added CefStringInitialize function. - Fixed string handling in TCefRequestContextRef.SetPreference. - Fixed string handling in TCefCustomResourceBundleHandler.GetLocalizedString. - Fixed string handling in TCefResourceHandlerOwn.GetResponseHeaders. - Fixed string handling in TCefResourceRequestHandlerOwn.OnResourceRedirect. - Fixed string handling in TCefStringMapOwn. - Fixed string handling in TCefStringMultimapOwn. - Fixed and renamed ICefv8Handler.Execute parameters. - Adapted JSWindowBindingWithObject demo to new Cefv8Accessor declaration.
This commit is contained in:
@@ -197,17 +197,18 @@ var
|
||||
TempURL : ustring;
|
||||
TempObject : TObject;
|
||||
begin
|
||||
TempURL := CefString(new_url);
|
||||
TempObject := CefGetObject(self);
|
||||
|
||||
if (TempObject <> nil) and (TempObject is TCefResourceRequestHandlerOwn) then
|
||||
TCefResourceRequestHandlerOwn(TempObject).OnResourceRedirect(TCefBrowserRef.UnWrap(browser),
|
||||
TCefFrameRef.UnWrap(frame),
|
||||
TCefRequestRef.UnWrap(request),
|
||||
TCefResponseRef.UnWrap(response),
|
||||
TempURL);
|
||||
|
||||
if (TempURL <> '') then CefStringSet(new_url, TempURL);
|
||||
begin
|
||||
TempURL := CefStringClearAndGet(new_url);
|
||||
TCefResourceRequestHandlerOwn(TempObject).OnResourceRedirect(TCefBrowserRef.UnWrap(browser),
|
||||
TCefFrameRef.UnWrap(frame),
|
||||
TCefRequestRef.UnWrap(request),
|
||||
TCefResponseRef.UnWrap(response),
|
||||
TempURL);
|
||||
if (new_url <> nil) then new_url^ := CefStringAlloc(TempURL);
|
||||
end;
|
||||
end;
|
||||
|
||||
function cef_resource_request_handler_on_resource_response(self : PCefResourceRequestHandler;
|
||||
|
||||
Reference in New Issue
Block a user