[webkit-gtk] Block/Unblock plugin API

Marcos Chavarría Teijeiro chavarria1991 at gmail.com
Mon Dec 15 04:24:05 PST 2014


Hi,

I'm working on implementing a new API for block and unblock plugins
[1]. I want to discuss here how we should implement it.

The current API WebKitPlugin suggests to add new methods get_enabled
and set_enabled but by implementing this methods we could not specify
the unavailabilityDescription and populate the unavailable plugin
button with this information. In addition we don't leave almost any
control to the app, implementing unblock certain plugins for certain
domains could be more difficult using this way for example.

I have been talking with Carlos García and we believe  that we should
implement a PluginLoadPermissionRequest so we can use
"permission-request" signal to block/unblock plugin load. The
information about if a plugin is blocked or not would be stored in the
app.

In addition, we should also add a new signal
"unavailable-plugin-button-clicked" to WebView so when this button is
clicked we could unblock this plugin and reload the webpage.

Best Regards,
Marcos Chavarría Teijeiro.

[1] https://bugs.webkit.org/show_bug.cgi?id=134357


More information about the webkit-gtk mailing list