Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ResponseFilterBrowser Demo run error in delphi7? #512

Closed
xtfnpgy opened this issue May 15, 2024 · 0 comments
Closed

ResponseFilterBrowser Demo run error in delphi7? #512

xtfnpgy opened this issue May 15, 2024 · 0 comments

Comments

@xtfnpgy
Copy link

xtfnpgy commented May 15, 2024

procedure TResponseFilterBrowserFrm.Chromium1GetResourceResponseFilter( Sender : TObject;
const browser : ICefBrowser;
const frame : ICefFrame;
const request : ICefRequest;
const response : ICefResponse;
out Result : ICefResponseFilter);
begin
if not(FRscCompleted) and (response <> nil) and IsMyResource(request) then
begin
Result := FFilter; //error in here
FFilterInit := True;
CheckResponseHeaders(response);
UpdateRscEncoding(response.MimeType, response.GetHeaderByName('Content-Type'));
end
else
Result := nil;
end;
when I delete the line "Result := FFilter;",it can be run normal.

procedure TResponseFilterBrowserFrm.FormShow(Sender: TObject);
begin
AddressEdt.text := 'https://h5.m.taobao.com/awp/core/detail.htm?id=539891589098';
RscNameEdt.text := 'mtop.taobao.detail.data.get';
CopyScriptBtn.checked := true;
if not(Chromium1.CreateBrowser(CEFWindowParent1)) then Timer1.Enabled := True;
end;

1715764935540

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants