You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-11-23 21:34:53 +02:00
Update to CEF 3.3239.1720.g1ad5e2a
TChromium.DeleteCookies now uses the right cookie manager in custom request contexts.
This commit is contained in:
@@ -101,16 +101,6 @@ type
|
||||
procedure Execute; override;
|
||||
end;
|
||||
|
||||
TCefDeleteCookiesTask = class(TCefTaskOwn)
|
||||
protected
|
||||
FCallBack : ICefDeleteCookiesCallback;
|
||||
|
||||
procedure Execute; override;
|
||||
|
||||
public
|
||||
constructor Create(const aCallBack : ICefDeleteCookiesCallback); reintroduce;
|
||||
end;
|
||||
|
||||
TCefUpdatePrefsTask = class(TCefTaskOwn)
|
||||
protected
|
||||
FChromiumBrowser : TObject;
|
||||
@@ -268,25 +258,6 @@ begin
|
||||
end;
|
||||
|
||||
|
||||
// TCefDeleteCookiesTask
|
||||
|
||||
|
||||
constructor TCefDeleteCookiesTask.Create(const aCallBack : ICefDeleteCookiesCallback);
|
||||
begin
|
||||
inherited Create;
|
||||
|
||||
FCallBack := aCallBack;
|
||||
end;
|
||||
|
||||
procedure TCefDeleteCookiesTask.Execute;
|
||||
var
|
||||
CookieManager : ICefCookieManager;
|
||||
begin
|
||||
CookieManager := TCefCookieManagerRef.Global(nil);
|
||||
CookieManager.DeleteCookies('', '', FCallBack);
|
||||
end;
|
||||
|
||||
|
||||
// TCefUpdatePrefsTask
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user