aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-web-view.c
diff options
context:
space:
mode:
authorClaudio Saavedra <csaavedra@igalia.com>2013-02-20 02:28:05 +0800
committerClaudio Saavedra <csaavedra@igalia.com>2013-03-05 16:58:10 +0800
commit0b67bd0b7c0d391441b60da38a1720f4d840d920 (patch)
treeee8e49717c92d4d3e549f07251bb977e8cc0a2f8 /embed/ephy-web-view.c
parent4e23859050fd1410820312c16a21b3716d9f08e9 (diff)
downloadgsoc2013-epiphany-0b67bd0b7c0d391441b60da38a1720f4d840d920.tar
gsoc2013-epiphany-0b67bd0b7c0d391441b60da38a1720f4d840d920.tar.gz
gsoc2013-epiphany-0b67bd0b7c0d391441b60da38a1720f4d840d920.tar.bz2
gsoc2013-epiphany-0b67bd0b7c0d391441b60da38a1720f4d840d920.tar.lz
gsoc2013-epiphany-0b67bd0b7c0d391441b60da38a1720f4d840d920.tar.xz
gsoc2013-epiphany-0b67bd0b7c0d391441b60da38a1720f4d840d920.tar.zst
gsoc2013-epiphany-0b67bd0b7c0d391441b60da38a1720f4d840d920.zip
incognito: show about:incognito instead of the overview
The overview shouldn't be shown in an incognito window as it reveals information about the browsing activity of the user. Also, a welcome page indicating the scope of the incognito window is better. https://bugzilla.gnome.org/show_bug.cgi?id=694200
Diffstat (limited to 'embed/ephy-web-view.c')
-rw-r--r--embed/ephy-web-view.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index a69b3f9ee..b886da9d4 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -3962,7 +3962,11 @@ ephy_web_view_load_homepage (EphyWebView *view)
ephy_web_view_set_visit_type (view,
EPHY_PAGE_VISIT_HOMEPAGE);
- ephy_web_view_load_url (view, "about:overview");
+ if (ephy_embed_shell_get_mode (ephy_embed_shell_get_default ())
+ == EPHY_EMBED_SHELL_MODE_INCOGNITO)
+ ephy_web_view_load_url (view, "about:incognito");
+ else
+ ephy_web_view_load_url (view, "about:overview");
}
/**