Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
X11
Posts: 49 Joined: Thu Jul 25, 2019 10:15 am
Post
by X11 » Wed Aug 28, 2019 11:00 am
Main frame is not loaded, but progress in Chromium1LoadingProgressChange shows 100%.
prn scr:
http://prntscr.com/oylk12
Code: Select all
procedure TForm1.Chromium1LoadingProgressChange(Sender: TObject;
const browser: ICefBrowser; const progress: Double);
begin
StatusBar1.Panels[0].Text := 'Loading... ' + FloatToStrF(progress * 100, ffFixed, 4, 1) + '%';
end;
salvadordf
Posts: 4565 Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:
Post
by salvadordf » Wed Aug 28, 2019 12:02 pm
Hi,
The progress information comes from CEF/Chromium and CEF4Delphi only shows what's available.
These are the code comments for that event in the original CEF source code :
https://bitbucket.org/chromiumembedded/ ... #lines-136
Code: Select all
///
// Called when the overall page loading progress has changed. |progress|
// ranges from 0.0 to 1.0.
///
Maybe that web page was reloading some child frames or perhaps the progress parameter only considers the main frame.