1
Description: Ignore open_uri events from GtkMozEmbed if the URI matches the
2
base_uri passed to gtk_moz_embed_open_stream. Since xulrunner 1.9.2,
3
calling gtk_moz_embed_open_stream triggers an open_uri event, but we
4
don't really want to handle these.
5
Author: Chris Coulson <chris.coulson@canonical.com>
8
Index: xiphos-3.1.2/src/gecko/gecko-html.cpp
9
===================================================================
10
--- xiphos-3.1.2.orig/src/gecko/gecko-html.cpp 2010-03-22 22:44:05.010707302 +0000
11
+++ xiphos-3.1.2/src/gecko/gecko-html.cpp 2010-03-22 22:46:12.558181141 +0000
14
GString *tmpstr = g_string_new(NULL);
16
+ /* Ignore if the URI matches the base_uri passed to
17
+ * gtk_moz_embed_open_stream */
18
+ if (g_strcmp0 ("file:///", uri) == 0)
21
// for some reason, `/' is not properly encoded for us as "%2F"
22
// so we have to do it ourselves. /mutter/ *ick*
23
if ((place = strchr((char*)uri, '?'))) { // url's beginning, as-is.