]> spindle.queued.net Git - midori/commitdiff
Define navigator.javaEnabled and .mimeTypes
authorChristian Dywan <christian@twotoasts.de>
Sun, 13 Nov 2011 19:31:02 +0000 (20:31 +0100)
committerChristian Dywan <christian@twotoasts.de>
Tue, 15 Nov 2011 17:34:19 +0000 (18:34 +0100)
In private browsing 'navigator' is overridden.

midori/midori-view.c

index 86ea575c5fab2b6801492ba75e7be72073d7d4da..a63aba17e534a9e051856b2fde657d7115870ae5 100644 (file)
@@ -2953,6 +2953,8 @@ webkit_web_view_window_object_cleared_cb (GtkWidget*      web_view,
                           "'language': 'en-US',"
                           "'platform': 'Linux i686',"
                           "'cookieEnabled': true,"
+                          "'javaEnabled': function () { return true; },"
+                          "'mimeTypes': {},"
                           "'plugins': {'refresh': function () { } } };",
             NULL);
         g_free (result);