diff options
author | Carlos Garcia Campos <cgarcia@igalia.com> | 2010-12-24 23:11:02 +0800 |
---|---|---|
committer | Diego Escalante Urrelo <descalante@igalia.com> | 2011-01-11 09:22:21 +0800 |
commit | f918aabc59fc9eb665635d576a1edec474bde24c (patch) | |
tree | ae793c6e8492fbd064b95cdeb6aa0520c640e7de /embed | |
parent | b2bbeb102c9a2fe3817d01959681a82b6b11d177 (diff) | |
download | gsoc2013-epiphany-f918aabc59fc9eb665635d576a1edec474bde24c.tar gsoc2013-epiphany-f918aabc59fc9eb665635d576a1edec474bde24c.tar.gz gsoc2013-epiphany-f918aabc59fc9eb665635d576a1edec474bde24c.tar.bz2 gsoc2013-epiphany-f918aabc59fc9eb665635d576a1edec474bde24c.tar.lz gsoc2013-epiphany-f918aabc59fc9eb665635d576a1edec474bde24c.tar.xz gsoc2013-epiphany-f918aabc59fc9eb665635d576a1edec474bde24c.tar.zst gsoc2013-epiphany-f918aabc59fc9eb665635d576a1edec474bde24c.zip |
ephy-embed-single: make sure flash plugin is disabled
There might be more than one plugin instance for flash. Iterate the whole list
to be sure we have disabled all the possible instances.
Bug #637959
Signed-off-by: Diego Escalante Urrelo <descalante@igalia.com>
Diffstat (limited to 'embed')
-rw-r--r-- | embed/ephy-embed-single.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/embed/ephy-embed-single.c b/embed/ephy-embed-single.c index 4c712f17f..d05ae773f 100644 --- a/embed/ephy-embed-single.c +++ b/embed/ephy-embed-single.c @@ -552,10 +552,8 @@ ephy_embed_single_initialize (EphyEmbedSingle *single) list = webkit_web_plugin_database_get_plugins (database); for (p = list; p; p = p->next) { WebKitWebPlugin *plugin = WEBKIT_WEB_PLUGIN (p->data); - if (g_strcmp0 (webkit_web_plugin_get_name (plugin), "Shockwave Flash") == 0) { + if (g_strcmp0 (webkit_web_plugin_get_name (plugin), "Shockwave Flash") == 0) webkit_web_plugin_set_enabled (plugin, FALSE); - break; - } } webkit_web_plugin_database_plugins_list_free (list); |