RESOLVED FIXED 50891
[GTK] Add API to enable/disable plugins at runtime
https://bugs.webkit.org/show_bug.cgi?id=50891
Summary [GTK] Add API to enable/disable plugins at runtime
Xan Lopez
Reported 2010-12-12 05:45:06 PST
Useful for about:plugins and to blacklist certain types of plugins.
Attachments
pluginenable.diff (8.29 KB, patch)
2010-12-12 05:46 PST, Xan Lopez
no flags
pluginenable.diff (8.28 KB, patch)
2010-12-12 06:26 PST, Xan Lopez
no flags
Xan Lopez
Comment 1 2010-12-12 05:46:58 PST
Created attachment 76323 [details] pluginenable.diff
WebKit Review Bot
Comment 2 2010-12-12 05:48:28 PST
Attachment 76323 [details] did not pass style-queue: Failed to run "['WebKitTools/Scripts/check-webkit-style', '--diff-files', u'WebKit/gtk/ChangeLog', u'WebKit/gtk/tests/testwebplugindatabase.c', u'WebKit/gtk/webkit/webkitwebplugin.cpp', u'WebKit/gtk/webkit/webkitwebplugin.h']" exit_code: 1 WebKit/gtk/webkit/webkitwebplugin.cpp:71: Missing space before ( in switch( [whitespace/parens] [5] WebKit/gtk/webkit/webkitwebplugin.cpp:84: Missing space before ( in switch( [whitespace/parens] [5] WebKit/gtk/webkit/webkitwebplugin.cpp:103: Extra space before ( in function call [whitespace/parens] [4] WARNING: File exempt from style guide. Skipping: "WebKit/gtk/tests/testwebplugindatabase.c" WebKit/gtk/webkit/webkitwebplugin.h:83: Extra space before ( in function call [whitespace/parens] [4] WebKit/gtk/webkit/webkitwebplugin.h:86: Extra space before ( in function call [whitespace/parens] [4] Total errors found: 5 in 4 files If any of these errors are false positives, please file a bug against check-webkit-style.
Xan Lopez
Comment 3 2010-12-12 06:26:08 PST
Created attachment 76325 [details] pluginenable.diff
WebKit Review Bot
Comment 4 2010-12-12 06:28:22 PST
Attachment 76325 [details] did not pass style-queue: Failed to run "['WebKitTools/Scripts/check-webkit-style', '--diff-files', u'WebKit/gtk/ChangeLog', u'WebKit/gtk/tests/testwebplugindatabase.c', u'WebKit/gtk/webkit/webkitwebplugin.cpp', u'WebKit/gtk/webkit/webkitwebplugin.h']" exit_code: 1 WARNING: File exempt from style guide. Skipping: "WebKit/gtk/tests/testwebplugindatabase.c" WebKit/gtk/webkit/webkitwebplugin.h:83: Extra space before ( in function call [whitespace/parens] [4] WebKit/gtk/webkit/webkitwebplugin.h:86: Extra space before ( in function call [whitespace/parens] [4] Total errors found: 2 in 4 files If any of these errors are false positives, please file a bug against check-webkit-style.
Martin Robinson
Comment 5 2010-12-13 10:37:38 PST
Comment on attachment 76325 [details] pluginenable.diff View in context: https://bugs.webkit.org/attachment.cgi?id=76325&action=review Great stuff. Please fix the tiny style nits below before landing. > WebKit/gtk/webkit/webkitwebplugin.cpp:67 > +static void webkit_web_plugin_get_property(GObject* object, guint prop_id, GValue* value, GParamSpec* pspec) Should be propertyId and paramSpec here. > WebKit/gtk/webkit/webkitwebplugin.cpp:80 > +static void webkit_web_plugin_set_property(GObject* object, guint prop_id, const GValue* value, GParamSpec *pspec) Same here and the asterisk on pspec should be with GParamSpec.
Xan Lopez
Comment 6 2010-12-13 11:29:54 PST
Comment on attachment 76325 [details] pluginenable.diff Landed in r73936.
Xan Lopez
Comment 7 2010-12-13 11:30:25 PST
Closing.
Note You need to log in before you can comment on or make changes to this bug.