[Xfce4-commits] <midori:master> Omit wrapped Netscape plugins from extension list

Christian Dywan noreply at xfce.org
Thu Feb 21 20:20:01 CET 2013


Updating branch refs/heads/master
         to 7861eaeedc7a4606b9bb1e6cbde230cdbd41b8ef (commit)
       from 2aa87153a196a44728e891d3413787c00e63db67 (commit)

commit 7861eaeedc7a4606b9bb1e6cbde230cdbd41b8ef
Author: Paweł Forysiuk <tuxator at o2.pl>
Date:   Thu Feb 21 19:12:51 2013 +0100

    Omit wrapped Netscape plugins from extension list

 extensions/nsplugin-manager.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/extensions/nsplugin-manager.vala b/extensions/nsplugin-manager.vala
index 1bcb929..fb28d04 100644
--- a/extensions/nsplugin-manager.vala
+++ b/extensions/nsplugin-manager.vala
@@ -62,6 +62,8 @@ public Katze.Array? extension_init () {
     SList<WebKit.WebPlugin> plugins = pdb.get_plugins ();
 
     foreach (WebKit.WebPlugin plugin in plugins) {
+        if (plugin.get_path () == null || !("npwrapper." in plugin.get_path ()) || "plugins-wrapped" in plugin.get_path())
+            continue;
         extensions.add_item (new NSPlugins.Extension (plugin));
     }
     return extensions;


More information about the Xfce4-commits mailing list