aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-01-23 03:49:36 +0800
committerChristian Persch <chpe@src.gnome.org>2004-01-23 03:49:36 +0800
commit1fe097be0563f19a3de39dc5222ecc5c6356ca24 (patch)
tree7369e8871b1e5e07276c67b48bf84a26adfcf2eb
parent75e8fb3168db840673091b4b1e315f635949cd89 (diff)
downloadgsoc2013-epiphany-1fe097be0563f19a3de39dc5222ecc5c6356ca24.tar
gsoc2013-epiphany-1fe097be0563f19a3de39dc5222ecc5c6356ca24.tar.gz
gsoc2013-epiphany-1fe097be0563f19a3de39dc5222ecc5c6356ca24.tar.bz2
gsoc2013-epiphany-1fe097be0563f19a3de39dc5222ecc5c6356ca24.tar.lz
gsoc2013-epiphany-1fe097be0563f19a3de39dc5222ecc5c6356ca24.tar.xz
gsoc2013-epiphany-1fe097be0563f19a3de39dc5222ecc5c6356ca24.tar.zst
gsoc2013-epiphany-1fe097be0563f19a3de39dc5222ecc5c6356ca24.zip
data: urls can be opened in new tabs too.
2004-01-22 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/EventContext.cpp: * src/ephy-tab.c: (address_has_web_scheme): data: urls can be opened in new tabs too.
-rw-r--r--ChangeLog7
-rw-r--r--embed/mozilla/EventContext.cpp1
-rw-r--r--src/ephy-tab.c1
3 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 161febe06..9ad106824 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2004-01-22 Christian Persch <chpe@cvs.gnome.org>
+ * embed/mozilla/EventContext.cpp:
+ * src/ephy-tab.c: (address_has_web_scheme):
+
+ data: urls can be opened in new tabs too.
+
+2004-01-22 Christian Persch <chpe@cvs.gnome.org>
+
* embed/mozilla/EphyBrowser.cpp:
Work around a bug in mozilla where 0xa0 (NBSP) are converted to spaces,
diff --git a/embed/mozilla/EventContext.cpp b/embed/mozilla/EventContext.cpp
index e8705e9d5..39fe58183 100644
--- a/embed/mozilla/EventContext.cpp
+++ b/embed/mozilla/EventContext.cpp
@@ -821,6 +821,7 @@ nsresult EventContext::CheckLinkScheme (const nsAString &link)
scheme.EqualsIgnoreCase ("https") ||
scheme.EqualsIgnoreCase ("ftp") ||
scheme.EqualsIgnoreCase ("file") ||
+ scheme.EqualsIgnoreCase ("data") ||
scheme.EqualsIgnoreCase ("about") ||
scheme.EqualsIgnoreCase ("gopher"))
{
diff --git a/src/ephy-tab.c b/src/ephy-tab.c
index c7d4376a6..7f130147c 100644
--- a/src/ephy-tab.c
+++ b/src/ephy-tab.c
@@ -412,6 +412,7 @@ address_has_web_scheme (const char *address)
strcmp (scheme, "https") == 0 ||
strcmp (scheme, "ftp") == 0 ||
strcmp (scheme, "file") == 0 ||
+ strcmp (scheme, "data") == 0 ||
strcmp (scheme, "about") == 0 ||
strcmp (scheme, "gopher") == 0);