Bug 75208 - [GTK] No function to create empty WebPluginDatabase
Summary: [GTK] No function to create empty WebPluginDatabase
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: Plug-ins (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Enhancement
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-25 12:24 PST by Jiří Janoušek
Modified: 2014-04-08 18:56 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiří Janoušek 2011-12-25 12:24:06 PST
WebCore allows to create empty global PluginDatabase via PluginDatabase::installedPlugins(false), but WebKitGTK+ provides only function webkit_get_web_plugin_database() that creates global populated database via PluginDatabase::installedPlugins() (default value of argument is true). I suggest to add new function webkit_get_empty_web_plugin_database() using PluginDatabase::installedPlugins(false).

My reason for this feature request: I created specialized browser for cloud music services providing integration with Linux desktop (multimedia keys, etc.) and I use WebKit to embed cloud music websites. The Flash plugin is the only plugin I need, other plugins increase memory usage and may cause other issues (e.g. LibreOffice plugin was reported to open LibreOffice window when initialized). With this feature I could use special directory containing only symlink to flashplugin and use webkit_web_settings_add_extra_plugin_directory() to load it.
Comment 1 Martin Robinson 2011-12-29 20:05:29 PST
Why not just disable all plugins except Flash?
Comment 2 Jiří Janoušek 2011-12-29 23:36:06 PST
I tried to disable all plugins except Flash (webkit_web_plugin_database_get_plugins() → webkit_web_plugin_set_enabled(plugin, false) → webkit_web_plugin_database_refresh()), but

1) all plugins are still initialized and buggy plugins cause problems when initialized (e.g. LibreOffice plugin). I know it isn't issue of WebKit, but users don't care ...

2) all plugins are still loaded in memory, even if disabled
Comment 3 Martin Robinson 2012-01-02 08:33:06 PST
Interesting issue. CCing Xan as he wrote the original API. My inclination is that if simply loading a plugin causes issues we should really focus on fixing those issues instead of baptizing work-arounds in the API.
Comment 4 Martin Robinson 2014-04-08 18:56:58 PDT
The GTK+ port of WebKit1 has been removed.