You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix OnBeforePluginLoad and change args, see docs.
Add -std=gnu++11 flag to catch OVERRIDE errors.
Minor enhancements to makefiles.
Update build instructions - install python dependencies to make sure
that the right version of Cython is installed (must be exactly 0.19.2).
Copy file name to clipboardExpand all lines: docs/api/RequestHandler.md
+21-4Lines changed: 21 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -210,13 +210,30 @@ to use [LoadHandler](LoadHandler.md)::OnLoadError() when implementing this on Li
210
210
| Parameter | Type |
211
211
| --- | --- |
212
212
| browser |[Browser](Browser.md)|
213
-
| url | string |
214
-
| policyUrl | string |
213
+
| mime_type | string |
214
+
| plugin_url | string |
215
+
| top_origin_url | string |
215
216
| info |[WebPluginInfo](WebPluginInfo.md)|
216
217
|__Return__| bool |
217
218
218
-
Called on the browser process IO thread before a plugin is loaded. Return
219
-
True to block loading of the plugin.
219
+
Description from upstream CEF:
220
+
> Called on multiple browser process threads before a plugin instance is
221
+
> loaded. |mime_type| is the mime type of the plugin that will be loaded.
222
+
> |plugin_url| is the content URL that the plugin will load and may be empty.
223
+
> |top_origin_url| is the URL for the top-level frame that contains the
224
+
> plugin when loading a specific plugin instance or empty when building the
225
+
> initial list of enabled plugins for 'navigator.plugins' JavaScript state.
226
+
> |plugin_info| includes additional information about the plugin that will be
227
+
> loaded. |plugin_policy| is the recommended policy. Modify |plugin_policy|
228
+
> and return true to change the policy. Return false to use the recommended
229
+
> policy. The default plugin policy can be set at runtime using the
230
+
> `--plugin-policy=[allow|detect|block]` command-line flag. Decisions to mark
231
+
> a plugin as disabled by setting |plugin_policy| to PLUGIN_POLICY_DISABLED
232
+
> may be cached when |top_origin_url| is empty. To purge the plugin list
233
+
> cache and potentially trigger new calls to this method call
234
+
> CefRequestContext::PurgePluginListCache.
235
+
236
+
Return True to block loading of the plugin.
220
237
221
238
This callback will be executed during browser creation, thus you must call [cefpython](cefpython.md).SetGlobalClientCallback() to use it. The callback name was prefixed with "`_`" to distinguish this special behavior.
0 commit comments