diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-01-21 22:01:43 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-01-21 22:01:43 +0800 |
commit | 319eec55f2c4d7a946af8a9312e9395bc9ebc611 (patch) | |
tree | 7c0d786b1eb1ff0809f238c3a9ad2fc367794b46 | |
parent | 63e12064d70483f16fdee244d42f930685ba848a (diff) | |
download | gsoc2013-epiphany-319eec55f2c4d7a946af8a9312e9395bc9ebc611.tar gsoc2013-epiphany-319eec55f2c4d7a946af8a9312e9395bc9ebc611.tar.gz gsoc2013-epiphany-319eec55f2c4d7a946af8a9312e9395bc9ebc611.tar.bz2 gsoc2013-epiphany-319eec55f2c4d7a946af8a9312e9395bc9ebc611.tar.lz gsoc2013-epiphany-319eec55f2c4d7a946af8a9312e9395bc9ebc611.tar.xz gsoc2013-epiphany-319eec55f2c4d7a946af8a9312e9395bc9ebc611.tar.zst gsoc2013-epiphany-319eec55f2c4d7a946af8a9312e9395bc9ebc611.zip |
about: can be opened in new tab too.
2004-01-21 Christian Persch <chpe@cvs.gnome.org>
* embed/mozilla/EventContext.cpp:
* src/ephy-tab.c: (address_has_web_scheme):
about: can be opened in new tab too.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | embed/mozilla/EventContext.cpp | 7 | ||||
-rw-r--r-- | src/ephy-tab.c | 1 |
3 files changed, 12 insertions, 3 deletions
@@ -1,5 +1,12 @@ 2004-01-21 Christian Persch <chpe@cvs.gnome.org> + * embed/mozilla/EventContext.cpp: + * src/ephy-tab.c: (address_has_web_scheme): + + about: can be opened in new tab too. + +2004-01-21 Christian Persch <chpe@cvs.gnome.org> + * embed/mozilla/mozilla-embed-single.cpp: Re-enable fonts language font filtering, fixes bug #128814 diff --git a/embed/mozilla/EventContext.cpp b/embed/mozilla/EventContext.cpp index 3bfa2d97d..e8705e9d5 100644 --- a/embed/mozilla/EventContext.cpp +++ b/embed/mozilla/EventContext.cpp @@ -817,10 +817,11 @@ nsresult EventContext::CheckLinkScheme (const nsAString &link) rv = uri->GetScheme (scheme); if (NS_FAILED (rv)) return NS_ERROR_FAILURE; - if (scheme.EqualsIgnoreCase ("http") || + if (scheme.EqualsIgnoreCase ("http") || scheme.EqualsIgnoreCase ("https") || - scheme.EqualsIgnoreCase ("ftp") || - scheme.EqualsIgnoreCase ("file") || + scheme.EqualsIgnoreCase ("ftp") || + scheme.EqualsIgnoreCase ("file") || + scheme.EqualsIgnoreCase ("about") || scheme.EqualsIgnoreCase ("gopher")) { SetIntProperty ("link-has-web-scheme", TRUE); diff --git a/src/ephy-tab.c b/src/ephy-tab.c index 4d027df27..c7d4376a6 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, "about") == 0 || strcmp (scheme, "gopher") == 0); gnome_vfs_uri_unref (uri); |