[epiphany] ephy-embed-single: also initialize nspluginwrapper plugins in WebKit2



commit 09f082567a909bc9369f57a2e14b28846057814e
Author: Xan Lopez <xan igalia com>
Date:   Wed Mar 13 15:51:30 2013 +0100

    ephy-embed-single: also initialize nspluginwrapper plugins in WebKit2
    
    Should not be as important as in WebKit1, but no reason to not do it.

 embed/ephy-embed-single.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/embed/ephy-embed-single.c b/embed/ephy-embed-single.c
index 861b4ef..f473cd9 100644
--- a/embed/ephy-embed-single.c
+++ b/embed/ephy-embed-single.c
@@ -186,6 +186,10 @@ ephy_embed_single_initialize (EphyEmbedSingle *single)
   char *filename;
   char *cookie_policy;
 
+  /* Initialise nspluginwrapper's plugins if available. */
+  if (g_file_test (NSPLUGINWRAPPER_SETUP, G_FILE_TEST_EXISTS) != FALSE)
+    g_spawn_command_line_sync (NSPLUGINWRAPPER_SETUP, NULL, NULL, NULL, NULL);
+
   web_context = webkit_web_context_get_default ();
 
   /* Store cookies in moz-compatible SQLite format */


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