how to ban flash plugin?

Having problems with building or using the CefGlue .NET/Mono binding? Ask your questions here.

Moderator: fddima

how to ban flash plugin?

Postby duoixi » Sun Aug 03, 2014 11:16 pm

hi,all

i need ban flash plugin. but i found OnBeforePluginLoad is not work.

thanks.
duoixi
Techie
 
Posts: 18
Joined: Sat May 18, 2013 8:28 pm

Re: how to ban flash plugin?

Postby Czarek » Mon Aug 04, 2014 2:37 am

What CEF version?

There is also the CefBrowserSettings.plugins option which disables all plugins.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: how to ban flash plugin?

Postby duoixi » Mon Aug 04, 2014 7:06 am

Czarek wrote:What CEF version?

There is also the CefBrowserSettings.plugins option which disables all plugins.


thanks , it is work.

i has another question. how to make CefWebBrowser has alone cookies?
duoixi
Techie
 
Posts: 18
Joined: Sat May 18, 2013 8:28 pm

Re: how to ban flash plugin?

Postby duoixi » Mon Aug 04, 2014 7:07 am

i used cef_binary_3.1916.1721_windows64.
duoixi
Techie
 
Posts: 18
Joined: Sat May 18, 2013 8:28 pm

Re: how to ban flash plugin?

Postby Czarek » Mon Aug 04, 2014 10:14 am

duoixi wrote:i has another question. how to make CefWebBrowser has alone cookies?

Create a separate CefRequestContext for each browser and pass it to CreateBrowser(). CefRequestContextHandler.GetCookieManager may get called multiple times, so you need to keep cookie manager in a private property and return the same manager for every call.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: how to ban flash plugin?

Postby duoixi » Tue Aug 05, 2014 7:20 pm

Czarek wrote:
duoixi wrote:i has another question. how to make CefWebBrowser has alone cookies?

Create a separate CefRequestContext for each browser and pass it to CreateBrowser(). CefRequestContextHandler.GetCookieManager may get called multiple times, so you need to keep cookie manager in a private property and return the same manager for every call.


thank you very much.
duoixi
Techie
 
Posts: 18
Joined: Sat May 18, 2013 8:28 pm

Re: how to ban flash plugin?

Postby amitkanfer » Sun Aug 24, 2014 7:03 am

Saved my day.
Thanks man
amitkanfer
Techie
 
Posts: 31
Joined: Mon Jul 21, 2014 4:10 am


Return to CefGlue Forum

Who is online

Users browsing this forum: No registered users and 9 guests