Re: cef3 hasn't OnBeforeBrowse?

434 views
Skip to first unread message

Henri Gourvest

unread,
Sep 24, 2012, 4:38:13 AM9/24/12
to delphichrom...@googlegroups.com
first explain what you whant to do please

2012/9/24 jonahzheng <kaol...@gmail.com>
cef2 has OnBeforeBrowse event,but cef3 hasn't.



--
Henri Gourvest

jonahzheng

unread,
Sep 24, 2012, 9:25:39 AM9/24/12
to delphichrom...@googlegroups.com
thank you very mach!
I want load a url's icon, juge url's format is valid.
ex:
if request.Url='myhome' then
begin
   ch1.load('http://www.home.com');
end;

在 2012年9月24日星期一UTC+8下午4时38分35秒,Henri Gourvest写道:

PaulANormanNZ

unread,
Sep 25, 2012, 1:57:20 AM9/25/12
to delphichrom...@googlegroups.com
Hi,

 I'm just recompiling old projects using was using beforebrowse now trying BeforeResourceLoad, and was wondering as well has beforeBrowse been removed perrmanently please?

Paul

Henri Gourvest

unread,
Sep 25, 2012, 4:57:32 AM9/25/12
to delphichrom...@googlegroups.com

First update the dcef3 svn trunk, I've made some changes
and use the OnBeforeResourceLoad event like this

var
  u: TUrlParts;
begin
  // redirect home to google
  if CefParseUrl(request.Url, u) then
    if (u.host = 'home') then
    begin
      u.host := 'www.google.com';
      request.Url := CefCreateUrl(u);
    end;
end;


2012/9/24 jonahzheng <kaol...@gmail.com>



--
Henri Gourvest

Henri Gourvest

unread,
Sep 25, 2012, 5:03:43 AM9/25/12
to delphichrom...@googlegroups.com
just tell us what you are trying to do ...

2012/9/25 PaulANormanNZ <paul.a...@gmail.com>



--
Henri Gourvest

PaulANormanNZ

unread,
Sep 25, 2012, 5:38:31 AM9/25/12
to delphichrom...@googlegroups.com
Thanks will do ... request was a constant before ... const request: ICefRequest;

Paul

Edwin

unread,
Sep 26, 2012, 4:41:24 AM9/26/12
to delphichromiumembedded
Oh, the NavType is missing in the OnBeforeBrowse event, I need that
info.

On Sep 25, 4:34 pm, Czarek Tomczak <czarek.tomc...@gmail.com> wrote:
> Star this issue if you want OnBeforeBrowse in CEF 3:http://code.google.com/p/chromiumembedded/issues/detail?id=722
>
> Czarek.

Henri Gourvest

unread,
Sep 26, 2012, 8:23:37 AM9/26/12
to delphichrom...@googlegroups.com
It is not exposed in CEF3, you should report this to CEF3 issue traker

2012/9/26 Edwin <edwi...@innovationgear.com>



--
Henri Gourvest
Reply all
Reply to author
Forward
0 new messages