From d11aa0d9adb290698c8c073d95e7a3b2374d2e63 Mon Sep 17 00:00:00 2001 From: Deepak Bhole Date: Fri, 27 May 2011 18:00:02 -0400 Subject: PR735: Firefox 4 sometimes freezes if the applet calls showDocument() --- plugin/icedteanp/IcedTeaNPPlugin.cc | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) (limited to 'plugin/icedteanp/IcedTeaNPPlugin.cc') diff --git a/plugin/icedteanp/IcedTeaNPPlugin.cc b/plugin/icedteanp/IcedTeaNPPlugin.cc index 89662ff..e9cd4c3 100644 --- a/plugin/icedteanp/IcedTeaNPPlugin.cc +++ b/plugin/icedteanp/IcedTeaNPPlugin.cc @@ -1169,26 +1169,7 @@ void consume_message(gchar* message) { data = (ITNPPluginData*) instance->pdata; } - if (g_str_has_prefix (parts[2], "url")) - { - // Open the URL in a new browser window. - gchar* decoded_url = (gchar*) calloc(strlen(parts[3]) + 1, sizeof(gchar)); - IcedTeaPluginUtilities::decodeURL(parts[3], &decoded_url); - - PLUGIN_DEBUG ("plugin_in_pipe_callback: opening URL %s\n", decoded_url); - PLUGIN_DEBUG ("plugin_in_pipe_callback: URL target %s\n", parts[4]); - - NPError np_error = - (*browser_functions.geturlnotify) (data->owner, decoded_url, parts[4], NULL); - - - if (np_error != NPERR_NO_ERROR) - PLUGIN_ERROR ("Failed to load URL."); - - g_free(decoded_url); - decoded_url = NULL; - } - else if (g_str_has_prefix (parts[2], "status")) + if (g_str_has_prefix (parts[2], "status")) { // clear the "instance X status" parts -- cgit v1.2.3