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 /embed | |
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.
Diffstat (limited to 'embed')
-rw-r--r-- | embed/mozilla/EventContext.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
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); |