[galeon] Disable Java console
- From: Fabio Bonelli <fabiob src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [galeon] Disable Java console
- Date: Sun, 2 May 2010 15:31:53 +0000 (UTC)
commit 887f2b4ff2c5fce1a79000cca26c3d86eff11c87
Author: Fabio Bonelli <fabiob src gnome org>
Date: Sun May 2 16:53:46 2010 +0200
Disable Java console
xulrunner 1.9.2 removed nsIJVMManager. Let's disable the Java console,
it's not that useful anyway. Patch galeon-2.0.7-nojavaconsole.patch from
Fedora.
mozilla/mozilla-embed-shell.cpp | 8 --------
ui/galeon-egg-ui.xml | 1 -
2 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/mozilla/mozilla-embed-shell.cpp b/mozilla/mozilla-embed-shell.cpp
index 309f672..7c7e097 100644
--- a/mozilla/mozilla-embed-shell.cpp
+++ b/mozilla/mozilla-embed-shell.cpp
@@ -62,7 +62,6 @@
#include <nsCOMPtr.h>
#include <nsNetCID.h>
#include <nsIIOService.h>
-#include <nsIJVMManager.h>
#include <nsIFontEnumerator.h>
#include <nsISupportsPrimitives.h>
#include <nsIPermissionManager.h>
@@ -118,8 +117,6 @@ struct MozillaEmbedShellPrivate
MozillaEncodings *encodings;
};
-static NS_DEFINE_CID(kJVMManagerCID, NS_JVMMANAGER_CID);
-
G_DEFINE_TYPE (MozillaEmbedShell, mozilla_embed_shell, GALEON_TYPE_EMBED_SHELL);
static gboolean
@@ -516,11 +513,6 @@ impl_set_offline_mode (GaleonEmbedShell *shell,
static void
impl_show_java_console (GaleonEmbedShell *shell)
{
- nsCOMPtr<nsIJVMManager> JVMManager = do_GetService (kJVMManagerCID);
- if (JVMManager)
- {
- JVMManager->ShowJavaConsole ();
- }
}
static GaleonEncodings *
diff --git a/ui/galeon-egg-ui.xml b/ui/galeon-egg-ui.xml
index 1d0c4bc..9d4e504 100644
--- a/ui/galeon-egg-ui.xml
+++ b/ui/galeon-egg-ui.xml
@@ -77,7 +77,6 @@
<menuitem name="WebAllowJava" action="WebAllowJavaAction" />
<menuitem name="WebAllowJS" action="WebAllowJSAction" />
<separator name="WSep4" />
- <menuitem name="WebJavaConsole" action="WebJavaConsoleAction" />
<menuitem name="WebJSConsole" action="WebJSConsoleAction" />
</menu>
<menu name="Go" action="GoMenuAction">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]