Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
Uefi1
Posts: 43 Joined: Tue Aug 24, 2021 1:58 pm
Post
by Uefi1 » Wed Oct 27, 2021 3:55 am
After update t have problem the example doesn't work either
Code: Select all
procedure th.Chromium1BeforeResourceLoad(Sender: TObject;
const browser: ICefBrowser; const frame: ICefFrame;
const request: ICefRequest; const callback: ICefRequestCallback;
out Result: TCefReturnValue);
var
map: ICefStringMultimap;
begin
map := TCefStringMultimapOwn.Create;
request.GetHeaderMap(map);
map.Append('User-Agent','Mozzilla......');
request.SetHeaderMap(map);
callback.Cont(true);
end;
Undeclared identifier: 'ICefRequestCallback'
How am i going to change the headers now?
salvadordf
Posts: 4580 Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:
Post
by salvadordf » Wed Oct 27, 2021 8:51 am
That's one of the breaking changes that CEF had in the last update.
Read the last post in the "BREAKING CHANGES " thread for all the details.
Uefi1
Posts: 43 Joined: Tue Aug 24, 2021 1:58 pm
Post
by Uefi1 » Wed Oct 27, 2021 2:39 pm
How am i going to change the headers now?
salvadordf
Posts: 4580 Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:
Post
by salvadordf » Thu Oct 28, 2021 7:33 am
You need to change the code in your application.
Replace the parameter types in those events.