CefBrowserSettings

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

CefBrowserSettings

Postby dxj19831029 » Tue May 24, 2011 6:52 am

Hey

I have some questions about CefBrowserSettings.

This setting is global shared by all the chrome browser window within a process, isn't it?

Can I have two window use different browser setting?

Cheers
dxj19831029
Techie
 
Posts: 16
Joined: Tue Feb 08, 2011 8:34 am

Re: CefBrowserSettings

Postby magreenblatt » Tue May 24, 2011 8:08 am

Can I have two window use different browser setting?

Yes
magreenblatt
Site Admin
 
Posts: 12402
Joined: Fri May 29, 2009 6:57 pm

Re: CefBrowserSettings

Postby dxj19831029 » Tue May 24, 2011 11:00 pm

magreenblatt wrote:
Can I have two window use different browser setting?

Yes


Code: Select all
CefSettings settings;
CefBrowserSettings browserDefaults;
CefInitialize(settings, browserDefaults);


I trace Initialize, i saw you only allow once initizlize, and there seems to be only one context running inside.

so how can i have two browser window share two browserDefaults?
dxj19831029
Techie
 
Posts: 16
Joined: Tue Feb 08, 2011 8:34 am

Re: CefBrowserSettings

Postby magreenblatt » Wed May 25, 2011 6:28 am

dxj19831029 wrote:
magreenblatt wrote:
Can I have two window use different browser setting?

Yes


Code: Select all
CefSettings settings;
CefBrowserSettings browserDefaults;
CefInitialize(settings, browserDefaults);


I trace Initialize, i saw you only allow once initizlize, and there seems to be only one context running inside.

so how can i have two browser window share two browserDefaults?

You can change browserDefaults in HandleBeforeCreated with the old API or CreateBrowser and OnBeforePopup with the new API.
magreenblatt
Site Admin
 
Posts: 12402
Joined: Fri May 29, 2009 6:57 pm


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 10 guests