~ubuntu-branches/debian/jessie/xiphos/jessie

« back to all changes in this revision

Viewing changes to debian/patches/gtkmozembed-1.9.2-port.patch

  • Committer: Bazaar Package Importer
  • Author(s): Dmitrijs Ledkovs
  • Date: 2010-03-22 18:15:54 UTC
  • mfrom: (4.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100322181554-qlqchymwhcw28c0c
* New upstream release:
  + Bugfix only
  + Compatible with xulrunner 1.9.2
  + Update translations

* Revert changes introduced in 3.1.2-1ubuntu1. Thank you Chris Coulson
  for temporary fix.
* debian/xiphos.1 - spelling mistake
* waf is now default buildsystem
* help is now licensed under GPL
* Bumped standards version no changes required
* Changed email to @ubuntu.com

Show diffs side-by-side

added added

removed removed

Lines of Context:
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>
6
 
Forwarded: no
7
 
 
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
12
 
@@ -228,6 +228,11 @@
13
 
        gchar book[32];
14
 
        GString *tmpstr = g_string_new(NULL);
15
 
 
16
 
+       /* Ignore if the URI matches the base_uri passed to
17
 
+         * gtk_moz_embed_open_stream */
18
 
+       if (g_strcmp0 ("file:///", uri) == 0)
19
 
+               return FALSE;
20
 
+
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.