changeset 32449:692d5408983d

We don't want WebKit to process a Refresh, or Back/Forward request either.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Wed, 04 Jan 2012 06:30:51 +0000
parents 1f372ac4a100
children 0d50155445fd 49fc653d72c6
files pidgin/gtkwebview.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkwebview.c	Wed Jan 04 03:37:59 2012 +0000
+++ b/pidgin/gtkwebview.c	Wed Jan 04 06:30:51 2012 +0000
@@ -214,8 +214,10 @@
 		 * why, so right now just using purple_notify_uri directly */
 		purple_notify_uri(NULL, uri);
 		webkit_web_policy_decision_ignore(policy_decision);
-	} else
+	} else if (reason == WEBKIT_WEB_NAVIGATION_REASON_OTHER)
 		webkit_web_policy_decision_use(policy_decision);
+	else
+		webkit_web_policy_decision_ignore(policy_decision);
 
 	return TRUE;
 }