I was using the DCEFBrowser project (https://github.com/himStone/DcefBrowser) (libcef version 3.2623), but since oct, 18th, some recaptchas began to load forever with error: "domexception only secure origins are allowed".
Example: http://www.receita.fazenda.gov.br/Pesso ... itacao.asp
Then I decided to migrate to DCEF4Delphi project (https://github.com/salvadordf/CEF4Delphi) (libcef version 3.3497). Recaptchas are working fine, but some pages with frames are not being printed as I want.
For example:
1 - access: "http://www.receita.fazenda.gov.br/PessoaJuridica/CNPJ/cnpjreva/Cnpjreva_Solicitacao.asp"
2- Fill CNPJ field with 06990590000123 and recaptcha, and click "Consultar".
3 - I want print "Comprovante de Inscrição e de Situação Cadastral" information to a pdf file.
In DCefBrowser project (https://github.com/himStone/DcefBrowser), I do this:
frame := Browser.GetFrame('main')
frame.ExecuteJavaScript('focus();', 'about:blank', 0);
frame.SelectAll;
and call Browser.Host.PrintToPdfProc
And the pdf generated has the frame I want. But doesn't work on DCEF4Delphi. It`s like the focus returns to the mainframe.
On Chromium if I select the frame, with the mouse, and then print, I see that these steps work on preview.
Does anyone know what has changed on recaptcha service? I can fix this?
Or does anyone know how can I print on DCEF4Delphi (3.3497) like was on DCEFBrowser (3.2623)?