aboutsummaryrefslogtreecommitdiffstats
path: root/plugin/icedteanp/IcedTeaNPPlugin.cc
diff options
context:
space:
mode:
authorDeepak Bhole <[email protected]>2011-05-27 18:00:02 -0400
committerDeepak Bhole <[email protected]>2011-05-27 18:00:02 -0400
commitd11aa0d9adb290698c8c073d95e7a3b2374d2e63 (patch)
tree2e894935c98e5c27ff89f3c0d8364b5a818d2cbf /plugin/icedteanp/IcedTeaNPPlugin.cc
parentc8d5c912afa2a741ccff538a0d753060d5aec960 (diff)
PR735: Firefox 4 sometimes freezes if the applet calls showDocument()
Diffstat (limited to 'plugin/icedteanp/IcedTeaNPPlugin.cc')
-rw-r--r--plugin/icedteanp/IcedTeaNPPlugin.cc21
1 files changed, 1 insertions, 20 deletions
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