CEF4Delphi-105-based browser (TChromium) loads a page on https,
which contains a link to a resource from another site (http protocol).
As a result, the browser crashes and displays a message in the log:
Mixed Content: The page at 'https://oursite.company.com/' was loaded over HTTPS, but requested an insecure element 'http://site.com/pic.jpg'. This request was automatically upgraded to HTTPS, For more information see {https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html}
there is also an indication of a glitch in the
Code: Select all
unit Vcl.Controls;
...
procedure TWinControl.DefaultHandler(var Message);
...
Result := CallWindowProc(FDefWndProc, WindowHandle, Msg, WParam, LParam); //error here
...
end;
Code: Select all
procedure CreateGlobalCEFApp;
begin
GlobalCEFApp := TCefApplication.Create;
GlobalCEFApp.OnProcessMessageReceived := GlobalCEFApp_OnProcessMessageReceived;
GlobalCEFApp.IgnoreCertificateErrors := True;
GlobalCEFApp.DisableWebSecurity := True;
GlobalCEFApp.DisableSafeBrowsing := True;
end;
Thank you.