diff options
author | Xan Lopez <xan@igalia.com> | 2011-12-15 07:17:49 +0800 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2011-12-15 07:19:28 +0800 |
commit | 15a693dd485ebdf6098387b4729174fab2055c99 (patch) | |
tree | 497ceb57cf06db52b04b76433d00cc2ea892deff /src | |
parent | 505632ebe9d4fc2e7aeea56c84928bc99ac6e956 (diff) | |
download | gsoc2013-epiphany-15a693dd485ebdf6098387b4729174fab2055c99.tar gsoc2013-epiphany-15a693dd485ebdf6098387b4729174fab2055c99.tar.gz gsoc2013-epiphany-15a693dd485ebdf6098387b4729174fab2055c99.tar.bz2 gsoc2013-epiphany-15a693dd485ebdf6098387b4729174fab2055c99.tar.lz gsoc2013-epiphany-15a693dd485ebdf6098387b4729174fab2055c99.tar.xz gsoc2013-epiphany-15a693dd485ebdf6098387b4729174fab2055c99.tar.zst gsoc2013-epiphany-15a693dd485ebdf6098387b4729174fab2055c99.zip |
ephy-session: do not store "ephy-about" URIs
Store them as "about:" instead, which is the proper kind for loading.
https://bugzilla.gnome.org/show_bug.cgi?id=666206
Diffstat (limited to 'src')
-rw-r--r-- | src/ephy-session.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ephy-session.c b/src/ephy-session.c index 6567614c5..39ac29fdb 100644 --- a/src/ephy-session.c +++ b/src/ephy-session.c @@ -35,6 +35,7 @@ #include "ephy-history-window.h" #include "ephy-notebook.h" #include "ephy-prefs.h" +#include "ephy-request-about.h" #include "ephy-settings.h" #include "ephy-shell.h" #include "ephy-stock-icons.h" @@ -1116,6 +1117,12 @@ write_tab (xmlTextWriterPtr writer, if (ret < 0) return ret; address = ephy_web_view_get_address (ephy_embed_get_web_view (embed)); + /* Do not store ephy-about: URIs, they are not valid for + * loading. */ + if (g_str_has_prefix (address, EPHY_ABOUT_SCHEME)) + { + address = g_strconcat ("about", address + EPHY_ABOUT_SCHEME_LEN, NULL); + } ret = xmlTextWriterWriteAttribute (writer, (xmlChar *) "url", (const xmlChar *) address); if (ret < 0) return ret; |