TChromium.CanSaveCookie event bug
Posted: Thu Apr 16, 2020 12:15 pm
I found stange bug in TChromium.OnCanSaveCookie event.
Here is my code. This method is connected with TChromium "OnCanSaveCookie"
As You can see it does nothing. Always returns "aResult := TRUE".
I have one site with login page: https://serwis.axadirect.pl/partner/Login.html
When I sign in with correct credentials the site cant progress as it "reloads" login form endlessly.
Once I remove this event - everything is working fine.
I think that it has something to do with the cookies.
I investigated cookies (it was not easy as the page reloads quicly and cookies change dynamically).
I found out theat this page registers two cookies with the same name. Which is strange. See attaced image. The "_ga" cookie is set twice with different data.
I don't know if it this done "by the book" but maybe this causes the error when the event is set.
Here is my code. This method is connected with TChromium "OnCanSaveCookie"
Code: Select all
procedure TBrowserFrame.CHROMECanSaveCookie(Sender: TObject; const browser: ICefBrowser; const frame: ICefFrame; const request: ICefRequest; const response: ICefResponse; const cookie: PCefCookie; var aResult: Boolean);
begin
//
aResult:=TRUE;
end;
I have one site with login page: https://serwis.axadirect.pl/partner/Login.html
When I sign in with correct credentials the site cant progress as it "reloads" login form endlessly.
Once I remove this event - everything is working fine.
I think that it has something to do with the cookies.
I investigated cookies (it was not easy as the page reloads quicly and cookies change dynamically).
I found out theat this page registers two cookies with the same name. Which is strange. See attaced image. The "_ga" cookie is set twice with different data.
I don't know if it this done "by the book" but maybe this causes the error when the event is set.