procedure TForm1.Chromium1LoadError(Sender: TObject;
const browser: ICefBrowser; const frame: ICefFrame; errorCode: Integer;
const errorText, failedUrl: ustring);
begin
case errorCode of
ERR_PROXY_CONNECTION_FAILED:
ShowMessage('Unable to connect to proxy server. Please check your proxy settings.');
//frame.LoadUrl(failedUrl);
ERR_CONNECTION_RESET, ERR_CONNECTION_CLOSED:
ShowMessage('Connection aborted. Would you like to reload the page?');
//frame.LoadUrl(failedUrl);
ERR_NETWORK_CHANGED:
ShowMessage('Network settings have changed. Try connecting again.');
//frame.LoadUrl(failedUrl);
end;
end;
I don't have the information, so I'm uploading it in case you need it.Retry proxy connection and reload when disconnected.
proxy connection connection
- salvadordf
- Posts: 4099
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact: