aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);