From 1fe097be0563f19a3de39dc5222ecc5c6356ca24 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Thu, 22 Jan 2004 19:49:36 +0000 Subject: data: urls can be opened in new tabs too. 2004-01-22 Christian Persch * embed/mozilla/EventContext.cpp: * src/ephy-tab.c: (address_has_web_scheme): data: urls can be opened in new tabs too. --- ChangeLog | 7 +++++++ embed/mozilla/EventContext.cpp | 1 + src/ephy-tab.c | 1 + 3 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 161febe06..9ad106824 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2004-01-22 Christian Persch + + * 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 * embed/mozilla/EphyBrowser.cpp: 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); -- cgit v1.2.3