Click or drag to resize

CefRequestContextHandlerOnBeforePluginLoad Method

Called on multiple browser process threads before a plugin instance is loaded. |mime_type| is the mime type of the plugin that will be loaded. |plugin_url| is the content URL that the plugin will load and may be empty. |top_origin_url| is the URL for the top-level frame that contains the plugin when loading a specific plugin instance or empty when building the initial list of enabled plugins for 'navigator.plugins' JavaScript state. |plugin_info| includes additional information about the plugin that will be loaded. |plugin_policy| is the recommended policy. Modify |plugin_policy| and return true to change the policy. Return false to use the recommended policy. The default plugin policy can be set at runtime using the `--plugin-policy=[allow|detect|block]` command-line flag. Decisions to mark a plugin as disabled by setting |plugin_policy| to PLUGIN_POLICY_DISABLED may be cached when |top_origin_url| is empty. To purge the plugin list cache and potentially trigger new calls to this method call CefRequestContext::PurgePluginListCache.

Namespace:  Internal.Xilium.CefGlue
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
protected virtual bool OnBeforePluginLoad(
	string mimeType,
	string pluginUrl,
	string topOriginUrl,
	CefWebPluginInfo pluginInfo,
	ref CefPluginPolicy pluginPolicy
)

Parameters

mimeType
Type: SystemString
pluginUrl
Type: SystemString
topOriginUrl
Type: SystemString
pluginInfo
Type: Internal.Xilium.CefGlueCefWebPluginInfo
pluginPolicy
Type: Internal.Xilium.CefGlueCefPluginPolicy

Return Value

Type: Boolean
See Also