bcb89bb067abda299e5669aa23e7df4fb1cb0576
[pkgsrc.git] / misc / yelp / patches / patch-ac
1 $NetBSD: patch-ac,v 1.5 2010/02/13 12:26:15 tnn Exp $
2
3 http://git.gnome.org/browse/yelp/commit/?id=a5588114ed94d00ca64913aa5b248e09a5e13edc
4
5 --- src/yelp-html.cpp.orig      2009-11-19 17:09:56.000000000 +0000
6 +++ src/yelp-html.cpp
7 @@ -24,6 +24,8 @@
8  #include <mozilla-config.h>
9  #include <config.h>
10  
11 +#include <string.h>
12 +
13  #include "yelp-gecko-services.h"
14  #include "yelp-gecko-utils.h"
15  #include "yelp-marshal.h"
16 @@ -90,13 +92,20 @@ static gint
17  html_open_uri (GtkMozEmbed *embed, const gchar *uri)
18  {
19      YelpHtml *html = YELP_HTML (embed);
20 -    gboolean block_load;
21 +    gboolean block_load = FALSE;
22  
23      g_return_val_if_fail (uri != NULL, FALSE);
24  
25      debug_print (DB_FUNCTION, "entering\n");
26      debug_print (DB_ARG, "  uri = \"%s\"\n", uri);
27  
28 +    if (g_str_equal (html->priv->base_uri, uri)) {
29 +       /* As of xulrunner 1.6.2, open_uri is called in response
30 +          to the base URI we pass in.
31 +        */
32 +       return FALSE;
33 +    }
34 +
35      if (!html->priv->frames_enabled) {
36         g_signal_emit (html, signals[URI_SELECTED], 0, uri, FALSE);
37         block_load = TRUE;