It seems I gave a bad example, I'm sorry, I did not check it, it really works. I think I understand when it doesn't work, in the same SimpleBrowser2 example, I replaced the Go button code with the following
Code: Select all
procedure TForm1.GoBtnClick(Sender: TObject);
var
url: TUrlParts;
begin
// This will load the URL in the edit box
//Chromium1.LoadURL(AddressEdt.Text);
CefParseUrl(AddressEdt.Text,url);
url.query := 'mode=asd&asd=hgf';
AddressEdt.Text := CefCreateUrl(url);
end;
As a result, instead of google.com with parameters, I got just a link http://www.google.com/. It seems that if we first parse the url using the CefParseUrl function, and then change this url, then the CefCreateUrl function does not work correctly. Below I am attaching two screenshots from the debugger, pay attention to query and spec. I added a parameter to the address bar and clicked on the Go button as a result, the parameters remained old instead of being replaced by new ones.
For several years, the program has worked for me this way, now I'm switching from version 78 to version 99 and ran into this problem.
You do not have the required permissions to view the files attached to this post.