Delphi中Chrome Chromium、Cef3学习笔记(六)
来源:互联网 发布:java xpath解析html 编辑:程序博客网 时间:2024/06/05 00:32
一.CEF加载网页时空白
chrm1.Load(‘你的网址’);
出现空白,跟踪进去:
frm := FBrowser.MainFrame; //此时为nil ,可改为:
frm := FBrowser.GetMainFrame;
其他地方同上;
后续待更新。。
二、CEF程序退出时报错
{$R *.res}
procedure RegisterSchemes(const registrar: ICefSchemeRegistrar);
begin
registrar.AddCustomScheme('local', True, True, False);
end;
begin
// CefCache := getEnvironmentVariable('USERPROFILE')+'\GetTBData\cookies\';
CefCache := 'cache';
CefOnRegisterCustomSchemes := RegisterSchemes;
CefSingleProcess := False;
if not CefLoadLibDefault then
Exit;
// CefUserAgent := 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0;';
// CefUserAgent := 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_0) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11';
Application.Initialize;
Application.CreateForm(TuMain, uMain);
Application.Run;
end.
procedure RegisterSchemes(const registrar: ICefSchemeRegistrar);
begin
registrar.AddCustomScheme('local', True, True, False);
end;
begin
// CefCache := getEnvironmentVariable('USERPROFILE')+'\GetTBData\cookies\';
CefCache := 'cache';
CefOnRegisterCustomSchemes := RegisterSchemes;
CefSingleProcess := False;
if not CefLoadLibDefault then
Exit;
// CefUserAgent := 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0;';
// CefUserAgent := 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_0) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11';
Application.Initialize;
Application.CreateForm(TuMain, uMain);
Application.Run;
end.
0 0
- Delphi中Chrome Chromium、Cef3学习笔记(六)
- Delphi中Chrome Chromium、Cef3学习笔记(一)
- Delphi中Chrome Chromium、Cef3学习笔记(二)
- Delphi中Chrome Chromium、Cef3学习笔记(三)
- Delphi中Chrome Chromium、Cef3学习笔记(四)
- Delphi中Chrome Chromium、Cef3学习笔记(五)
- delphi chrome cef3 控件学习笔记 (一)
- delphi chrome cef3 控件学习笔记 (二)
- delphi chrome cef3 控件学习笔记 (三)
- delphi chrome cef3 控件学习笔记 (四)
- delphi chrome cef3 控件学习笔记 (五)
- (转)delphi chrome cef3 控件学习笔记 (一)
- (转)delphi chrome cef3 控件学习笔记 (二)
- (转)delphi chrome cef3 控件学习笔记 (三)
- (转)delphi chrome cef3 控件学习笔记 (四)
- (转)delphi chrome cef3 控件学习笔记 (五)
- chrome CEF3 加载网页速度慢 delphi
- Chromium学习笔记
- LINUX批处理文件的编写
- 小程序开发系列之基础部分-开发工具
- App Store审核被拒:App Store Review Guideline 2.5.2 and section 3.3.2 of the Apple Developer Program
- STL关联容器之set
- ViewPager无限轮播自动播放
- Delphi中Chrome Chromium、Cef3学习笔记(六)
- METU数据集分析
- maven 环境搭建 Myeclipse配置
- java并发包里CountDownLatch的使用详解
- 主机web访问虚拟机(NAT联网)中centos Tomcat服务器端口
- 【安卓开源项目收藏】
- 服务端与客户端交互
- 决策树与随机森林
- iOS 零耦合架构代码生成器