CEF 3729 to 4103 problem

Post Reply
coater
Posts: 105
Joined: Sat Sep 29, 2018 1:51 pm

CEF 3729 to 4103 problem

Post by coater » Sat Jun 27, 2020 9:13 am

1.Xhr got errors when I visit some websites.(xhr No response)
(no problem when using 3729 or client.exe in 4103 building files)
no problem when using 4103 cef binary in new cef4 demos.
2.visit:https://xhr.spec.whatwg.org/
process Chromium1ResourceResponse will get error:

Code: Select all

Chromium1ResourceResponse(Sender: TObject;
  const browser: ICefBrowser; const frame: ICefFrame;
  const request: ICefRequest; const response: ICefResponse;
  out Result: Boolean);
browser is nil.
3.
logfile:
"Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/."

So
What may I do to edit delphi code after updating CEF binary with new CEF4?

Keen for your help, thank you very much!
Last edited by coater on Sun Jun 28, 2020 6:12 am, edited 3 times in total.

User avatar
salvadordf
Posts: 2412
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: CEF 3729 to 4103 problem

Post by salvadordf » Sat Jun 27, 2020 5:41 pm

Search "Synchronous XMLHttpRequest on the main thread is deprecated" (including the quotes) in google and you will see many web pages with possible solutions like this one :
https://stackoverflow.com/questions/24639335/javascript-console-log-causes-error-synchronous-xmlhttprequest-on-the-main-thr

This is a Chromium deprecation warning and we can't do much from the CEF4Delphi wrapper.

coater
Posts: 105
Joined: Sat Sep 29, 2018 1:51 pm

Re: CEF 3729 to 4103 problem

Post by coater » Sun Jun 28, 2020 6:11 am

The third is just a warning.
My delphi code build on 3729. I update cef4 and also cef(4103), then I found problems(1 and 2 listed).
So I don't know how to edit my delpi code to adapt new cef4.

User avatar
salvadordf
Posts: 2412
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: CEF 3729 to 4103 problem

Post by salvadordf » Sun Jun 28, 2020 10:31 am

I'm afraid I'm not a JavaScript expert and I can't help you. :oops:

However, I would try your code (if possible) with the same 83.0.4103.106 version of Chrome or Chromium browser to see if they changed something else in the WebKit or V8 engines that prevents your code from working as before.

Perhaps you can also find information about this in the xhr open issues :
https://github.com/whatwg/xhr/issues

coater
Posts: 105
Joined: Sat Sep 29, 2018 1:51 pm

Re: CEF 3729 to 4103 problem

Post by coater » Mon Jun 29, 2020 3:10 am

:D I found what's the problem!
disable this:
GlobalCEFApp.DisableFeatures := 'NetworkService';
( I remember that that edition shoud enable this to avoid some problem)

Thank you very much!

Post Reply