Useful for about:plugins and to blacklist certain types of plugins.
Created attachment 76323 [details] pluginenable.diff
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.
Created attachment 76325 [details] pluginenable.diff
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.
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.
Comment on attachment 76325 [details] pluginenable.diff Landed in r73936.
Closing.