OnLoadEnd() function is not called on some Google pages

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

OnLoadEnd() function is not called on some Google pages

Postby paveldvlip » Sun Aug 06, 2023 3:40 pm

CefLoadHandler::OnLoadEnd() function is not called on some google.com/search pages. The OnLoadError() and OnLoadingStateChange() functions are also not called. The debug.log file contains the following messages:

Code: Select all
[0806/232713.894:INFO:CONSOLE(0)] "Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'unload'.", source:  (0)
[0806/232719.581:INFO:CONSOLE(0)] "Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'unload'.", source:  (0)
[0806/232721.087:ERROR:ssl_client_socket_impl.cc(980)] handshake failed; returned -1, SSL error code 1, net_error -100
[0806/232721.179:ERROR:ssl_client_socket_impl.cc(980)] handshake failed; returned -1, SSL error code 1, net_error -100
[0806/232724.961:INFO:CONSOLE(0)] "Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'unload'.", source:  (0)
[0806/232726.775:ERROR:ssl_client_socket_impl.cc(980)] handshake failed; returned -1, SSL error code 1, net_error -100
[0806/232728.471:INFO:CONSOLE(0)] "Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'unload'.", source:  (0)
[0806/232732.267:ERROR:ssl_client_socket_impl.cc(980)] handshake failed; returned -1, SSL error code 1, net_error -100
[0806/232734.065:INFO:CONSOLE(0)] "Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'unload'.", source:  (0)
[0806/232736.886:ERROR:ssl_client_socket_impl.cc(980)] handshake failed; returned -1, SSL error code 1, net_error -100
[0806/232737.427:ERROR:ssl_client_socket_impl.cc(980)] handshake failed; returned -1, SSL error code 1, net_error -100
[0806/232739.495:INFO:CONSOLE(0)] "Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'unload'.", source:  (0)
[0806/232741.142:ERROR:ssl_client_socket_impl.cc(980)] handshake failed; returned -1, SSL error code 1, net_error -100
[0806/232742.371:ERROR:ssl_client_socket_impl.cc(980)] handshake failed; returned -1, SSL error code 1, net_error -100
[0806/232744.621:INFO:CONSOLE(0)] "Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'unload'.", source:  (0)
[0806/232746.912:ERROR:ssl_client_socket_impl.cc(980)] handshake failed; returned -1, SSL error code 1, net_error -100
[0806/232747.581:ERROR:ssl_client_socket_impl.cc(980)] handshake failed; returned -1, SSL error code 1, net_error -100
[0806/232751.207:ERROR:ssl_client_socket_impl.cc(980)] handshake failed; returned -1, SSL error code 1, net_error -100
[0806/232752.061:ERROR:ssl_client_socket_impl.cc(980)] handshake failed; returned -1, SSL error code 1, net_error -100


CEF Version: 115.3.10+g9cc8df1+chromium-115.0.5790.102
paveldvlip
Techie
 
Posts: 22
Joined: Thu Mar 30, 2017 7:53 am

Re: OnLoadEnd() function is not called on some Google pages

Postby magreenblatt » Sun Aug 06, 2023 4:12 pm

Is OnLoadingStateChange with isLoading=false called?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: OnLoadEnd() function is not called on some Google pages

Postby paveldvlip » Sun Aug 06, 2023 5:04 pm

magreenblatt wrote:Is OnLoadingStateChange with isLoading=false called?

No, it's not. Only at the beginning of page loading OnLoadingStateChange(isLoading=true) is called and OnLoadStart() respectively.
paveldvlip
Techie
 
Posts: 22
Joined: Thu Mar 30, 2017 7:53 am

Re: OnLoadEnd() function is not called on some Google pages

Postby magreenblatt » Sun Aug 06, 2023 7:11 pm

The notifications originate from Chromium. Likely the page is still loading (from Chromium’s perspective).
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: OnLoadEnd() function is not called on some Google pages

Postby KatrinaS » Mon Aug 07, 2023 9:24 am

I wonder if it's to do with an indeterminate data size / no content-length header / chunked response :)
KatrinaS
Mentor
 
Posts: 83
Joined: Tue Jul 04, 2023 6:30 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 198 guests