[英]CoInitializeSecurity cannot succeeded when using TChromium (CEF3)
[英]Delphi TChromium CEF3 run-time created browser loads pages incorrectly
我正在使用TChromium進行授權。 我有變量Chromium1: TChromium;
。 我需要銷毀表格皮革上的鉻,然后在表格上顯示。 (因為鉻有時會引發異常“模塊libcef.dll中的EExternal異常”並使我的應用程序崩潰,因此我認為在不使用Chromium時將其銷毀會有幫助)。 我有:
procedure TAuthForm.FormShow(Sender: TObject);
begin
Chromium1 := TChromium.Create(self);
Chromium1.Align := alClient;
Chromium1.OnJsdialog := Chromium1Jsdialog;
Chromium1.OnBeforePopup := Chromium1BeforePopup;
Chromium1.DefaultUrl := 'about:blank';
Chromium1.Parent := Self;
Chromium1.Load(AUTH_URL);
end;
procedure TAuthForm.FormHide(Sender: TObject);
begin
Chromium1.Free;
end;
問題是,當第TAuthForm.FormShow
調用TAuthForm.FormShow
時,頁面正確加載,但是當我隱藏表單並再次顯示它時,瀏覽器顯示頁面不正確,現在不解釋如何了http://google.com/
的示例:
Google(function(){ window.google={kEI:"oKRKUZ2iHafP4QTXwYCwDw",getEI:function(a) {for(var b;a&&(!a.getAttribute||!(b=a.getAttribute("eid")));)a=a.parentNode;return b||google.kEI},https:function(){return"https:"==window.location.protocol},kEXPI:"17259,39523,4000116,4001076,4001568,4001948,4001959,4001975,4002562,4002734,4002855,4003178,4003387,4003495,4003917,4004181,4004213,4004257,4004334,4004340,4004479,4004652,4004653,4004697,4004730,4004755,4004759,4004766,4004898,4004905,4004949,4004953,4005154",kCSI:{e:"17259,39523,4000116,4001076,4001568,4001948,4001959,4001975,4002562,4002734,4002855,4003178,4003387,4003495,4003917,4004181,4004213,4004257,4004334,4004340,4004479,4004652,4004653,4004697,4004730,4004755,4004759,4004766,4004898,4004905,4004949,4004953,4005154",ei:"oKRKUZ2iHafP4QTXwYCwDw"},authuser:0,ml:function(){},pageState:"#",kHL:"ru",time:function(){return(new Date).getTime()},log:function(a, b,c,h){var d=new Image,f=google.lc,e=google.li,g="";d.onerror=d.onload=d.onabort=function(){delete f[e]};f[e]=d;!c&&-1==b.search("&ei=")&&(g="&ei="+google.getEI(h));c=c||"/gen_204?........
它顯示了包括<title>
和<script>
在內的所有塊的內容,如您在此處看到的...
我試圖找到解決方案,但只發現了相同的錯誤(我的意思是沒有解決方案的libcef.dll異常),在這里: https ://stackoverflow.com/questions/13784792/cef3-application-crash-fault-module- 注釋中的kernelbase-dll ...
鉻1.免費; 是pbm會破壞您的chrom實例,兒子,您再也看不到它了
做就是了 :
Chromium1.visible:= false; //如果您想隱藏它
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.