Allow Flash plugin to execute directly

Think CEF could benefit from a new feature or capability? Discuss CEF feature requests here.

Allow Flash plugin to execute directly

Postby jebi » Wed Sep 18, 2019 3:22 am

Is there is a workaround to enable flash plugin to execute directly, for any origin, without user interaction with chromium 76 ?
jebi
Newbie
 
Posts: 9
Joined: Mon Jan 15, 2018 6:50 am

Re: Allow Flash plugin to execute directly

Postby Czarek » Wed Sep 18, 2019 5:22 am

What errors do you see? Have you checked Developer Tools console? Are you setting the --plugin-policy=allow switch?
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. I'm available for contract work, see my resume.
User avatar
Czarek
Virtuoso
 
Posts: 1829
Joined: Sun Nov 06, 2011 2:12 am

Re: Allow Flash plugin to execute directly

Postby jebi » Wed Sep 18, 2019 7:21 am

Don't see any errors. But the user have to right click on the Adobe Icon to allow flash player to execute.
jebi
Newbie
 
Posts: 9
Joined: Mon Jan 15, 2018 6:50 am

Re: Allow Flash plugin to execute directly

Postby Czarek » Wed Sep 18, 2019 8:22 am

You have to set the switch I've mentioned. You can do it in the OnBeforeCommandLineProcessing callback.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. I'm available for contract work, see my resume.
User avatar
Czarek
Virtuoso
 
Posts: 1829
Joined: Sun Nov 06, 2011 2:12 am

Re: Allow Flash plugin to execute directly

Postby jebi » Wed Sep 18, 2019 8:54 am

Is that switch (plugin-policy) has something to do with the handler OnBeforePluginLoad ?
What if I set:
modifyPolicy = true;
and
plugin_policy=CefRequestContextHandler::PluginPolicy::PLUGIN_POLICY_ALLOW;
in that handler ?
jebi
Newbie
 
Posts: 9
Joined: Mon Jan 15, 2018 6:50 am

Re: Allow Flash plugin to execute directly

Postby ndesktop » Wed Sep 18, 2019 9:19 am

Set *plugin_policy=PLUGIN_POLICY_ALLOW and return true from OnBeforePluginLoad if mime_type "application/x-shockwave-flash".
ndesktop
Expert
 
Posts: 367
Joined: Thu Dec 03, 2015 10:10 am

Re: Allow Flash plugin to execute directly

Postby jebi » Thu Sep 19, 2019 3:47 am

It's what I did in the cefclient but still have to Right click on the Puzzle icon, each time, to run the flash player plugin:

*plugin_policy = PLUGIN_POLICY_ALLOW;
return true;

It was working fine with CEF 75 and previous but no more with CEF 76...
jebi
Newbie
 
Posts: 9
Joined: Mon Jan 15, 2018 6:50 am

Re: Allow Flash plugin to execute directly

Postby ndesktop » Thu Sep 19, 2019 4:51 am

Maybe the plugin is not up to date? If this is the case, I think there is either a policy or command line flag (or it was) which allowed also outdated plugins.
ndesktop
Expert
 
Posts: 367
Joined: Thu Dec 03, 2015 10:10 am

Re: Allow Flash plugin to execute directly

Postby jebi » Thu Sep 19, 2019 5:49 am

The plugin is up to date (32.0.0.255) and I tried with --allow-outdated-plugins
jebi
Newbie
 
Posts: 9
Joined: Mon Jan 15, 2018 6:50 am

Re: Allow Flash plugin to execute directly

Postby Czarek » Thu Sep 19, 2019 5:59 am

See "plugins.run_all_flash_in_allow_mode" preference:
Code: Select all
// Boolean that indicates whether all Flash content (including cross-origin and
// small content) is allowed to run when it is explicitly allowed via content
// settings.
const char kRunAllFlashInAllowMode[] = "plugins.run_all_flash_in_allow_mode";

https://chromium.googlesource.com/chrom ... es.cc#1067
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. I'm available for contract work, see my resume.
User avatar
Czarek
Virtuoso
 
Posts: 1829
Joined: Sun Nov 06, 2011 2:12 am

Next

Return to Feature Request Forum

Who is online

Users browsing this forum: No registered users and 1 guest