Let webview manage the navigation ONLY if the reason is the user clicked a link.

Fri, 09 Sep 2011 03:27:52 +0000

author
Jorge Villaseñor <masca@cpw.pidgin.im>
date
Fri, 09 Sep 2011 03:27:52 +0000
changeset 32523
2d37b68228b6
parent 32520
93814958369f
child 32524
c0347e78e4df

Let webview manage the navigation ONLY if the reason is the user clicked a link.

pidgin/gtkwebview.c file | annotate | diff | comparison | revisions
--- a/pidgin/gtkwebview.c	Fri Sep 09 01:58:59 2011 +0000
+++ b/pidgin/gtkwebview.c	Fri Sep 09 03:27:52 2011 +0000
@@ -196,9 +196,8 @@
 		/* the gtk imhtml way was to create an idle cb, not sure
 		 * why, so right now just using purple_notify_uri directly */
 		purple_notify_uri(NULL, uri);
-	}
-
-	webkit_web_policy_decision_use(policy_decision);
+	} else
+		webkit_web_policy_decision_use(policy_decision);
 
 	return TRUE;
 }

mercurial