Closed GoogleCodeExporter closed 9 years ago
I cant reproduce this error in current SVN revision, I assume it has been fixed
in CEF
Original comment by hgourv...@gmail.com
on 7 Feb 2012 at 10:10
[deleted comment]
I'm reproducing the same issue, I'll try to come up with a sample, but
apparently any form post handled in BeforeResourceLoad triggers the issue.
Original comment by zar...@gmail.com
on 20 Feb 2012 at 2:06
May not be exactly the same issue, but the error is similar, and the test case
quite minimal: starting from guiclient, change default url to 'test', then in
OnBeforeResourceLoad, place the following code
var
buf : AnsiString;
intfList : IInterfaceList;
n : Cardinal;
begin
if request.Method<>'POST' then begin
buf:= 'Hello <form action="act" method="post" id="frm">'
+'<input type="hidden" name="field" value="val" />'
+'<button onclick="document.getElementById(''frm'').submit()" />';
response.MimeType:='text/html';
resourceStream:=TCefStreamReaderRef.CreateForData(PAnsiChar(buf), Length(buf));
end else begin
n:=request.PostData.GetCount; // passes
intfList:=request.PostData.GetElements(n); // passes
intfList:=nil; // passes
Assert(n=request.PostData.GetCount); // passes
intfList:=request.PostData.GetElements(n); // crash here
end;
end;
Run and click on the button. The second GetElements() will fail.
In my original (less minimal) code, there is only a single GetElements(), but
many other properties of the request are accessed.
Original comment by zar...@gmail.com
on 20 Feb 2012 at 2:46
Original issue reported on code.google.com by
guillaum...@yahoo.fr
on 1 Feb 2012 at 6:29