1 $NetBSD: patch-ac,v 1.5 2010/02/13 12:26:15 tnn Exp $
3 http://git.gnome.org/browse/yelp/commit/?id=a5588114ed94d00ca64913aa5b248e09a5e13edc
5 --- src/yelp-html.cpp.orig 2009-11-19 17:09:56.000000000 +0000
8 #include <mozilla-config.h>
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)
19 YelpHtml *html = YELP_HTML (embed);
20 - gboolean block_load;
21 + gboolean block_load = FALSE;
23 g_return_val_if_fail (uri != NULL, FALSE);
25 debug_print (DB_FUNCTION, "entering\n");
26 debug_print (DB_ARG, " uri = \"%s\"\n", uri);
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.
35 if (!html->priv->frames_enabled) {
36 g_signal_emit (html, signals[URI_SELECTED], 0, uri, FALSE);