Page 1 of 3
Allow Flash plugin to execute directly
Posted:
Wed Sep 18, 2019 3:22 am
by jebi
Is there is a workaround to enable flash plugin to execute directly, for any origin, without user interaction with chromium 76 ?
Re: Allow Flash plugin to execute directly
Posted:
Wed Sep 18, 2019 5:22 am
by Czarek
What errors do you see? Have you checked Developer Tools console? Are you setting the --plugin-policy=allow switch?
Re: Allow Flash plugin to execute directly
Posted:
Wed Sep 18, 2019 7:21 am
by jebi
Don't see any errors. But the user have to right click on the Adobe Icon to allow flash player to execute.
Re: Allow Flash plugin to execute directly
Posted:
Wed Sep 18, 2019 8:22 am
by Czarek
You have to set the switch I've mentioned. You can do it in the OnBeforeCommandLineProcessing callback.
Re: Allow Flash plugin to execute directly
Posted:
Wed Sep 18, 2019 8:54 am
by jebi
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 ?
Re: Allow Flash plugin to execute directly
Posted:
Wed Sep 18, 2019 9:19 am
by ndesktop
Set *plugin_policy=PLUGIN_POLICY_ALLOW and return true from OnBeforePluginLoad if mime_type "application/x-shockwave-flash".
Re: Allow Flash plugin to execute directly
Posted:
Thu Sep 19, 2019 3:47 am
by jebi
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...
Re: Allow Flash plugin to execute directly
Posted:
Thu Sep 19, 2019 4:51 am
by ndesktop
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.
Re: Allow Flash plugin to execute directly
Posted:
Thu Sep 19, 2019 5:49 am
by jebi
The plugin is up to date (32.0.0.255) and I tried with --allow-outdated-plugins
Re: Allow Flash plugin to execute directly
Posted:
Thu Sep 19, 2019 5:59 am
by Czarek
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