[epiphany] ephy-embed-single: make sure flash plugin is disabled



commit f918aabc59fc9eb665635d576a1edec474bde24c
Author: Carlos Garcia Campos <cgarcia igalia com>
Date:   Fri Dec 24 16:11:02 2010 +0100

    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>

 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 4c712f1..d05ae77 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]