diff options
author | Marco Pesenti Gritti <marco@gnome.org> | 2004-02-26 18:44:54 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2004-02-26 18:44:54 +0800 |
commit | 532ffd53068293e685db34ee193b0faddd25aaff (patch) | |
tree | dcce3389af2e0185920586679885dddcfc315801 /src/ephy-tab.c | |
parent | 0fd5b2339cd2406e6bff1e883b68931c8a1a1aa2 (diff) | |
download | gsoc2013-epiphany-532ffd53068293e685db34ee193b0faddd25aaff.tar gsoc2013-epiphany-532ffd53068293e685db34ee193b0faddd25aaff.tar.gz gsoc2013-epiphany-532ffd53068293e685db34ee193b0faddd25aaff.tar.bz2 gsoc2013-epiphany-532ffd53068293e685db34ee193b0faddd25aaff.tar.lz gsoc2013-epiphany-532ffd53068293e685db34ee193b0faddd25aaff.tar.xz gsoc2013-epiphany-532ffd53068293e685db34ee193b0faddd25aaff.tar.zst gsoc2013-epiphany-532ffd53068293e685db34ee193b0faddd25aaff.zip |
Do not show about:blank to the user, an empty address bar will do better.
2004-02-26 Marco Pesenti Gritti <marco@gnome.org>
* src/ephy-tab.c: (ephy_tab_address_cb), (ensure_page_info):
Do not show about:blank to the user, an empty address bar
will do better.
When the address bar is empty (no page or blank page is
loaded) set the address before loading succeeded.
Diffstat (limited to 'src/ephy-tab.c')
-rw-r--r-- | src/ephy-tab.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/ephy-tab.c b/src/ephy-tab.c index 7d79d46af..fe47a88e7 100644 --- a/src/ephy-tab.c +++ b/src/ephy-tab.c @@ -621,11 +621,24 @@ ephy_tab_link_message_cb (EphyEmbed *embed, static void ephy_tab_address_cb (EphyEmbed *embed, const char *address, EphyTab *tab) { + const char *uv_address; + LOG ("ephy_tab_address_cb tab %p address %s", tab, address) + /* Do not expose about:blank to the user, an empty address + bar will do better */ + if (address && strcmp (address, "about:blank") == 0) + { + uv_address = ""; + } + else + { + uv_address = address; + } + if (tab->priv->address_expire == TAB_ADDRESS_EXPIRE_NOW) { - ephy_tab_set_location (tab, address, TAB_ADDRESS_EXPIRE_NOW); + ephy_tab_set_location (tab, uv_address, TAB_ADDRESS_EXPIRE_NOW); } ephy_tab_set_link_message (tab, NULL); @@ -842,7 +855,7 @@ build_progress_from_requests (EphyTab *tab, EmbedState state) static void ensure_page_info (EphyTab *tab, const char *address) { - if (tab->priv->address == NULL && + if ((tab->priv->address == NULL || *tab->priv->address == '\0') && tab->priv->address_expire == TAB_ADDRESS_EXPIRE_NOW) { ephy_tab_set_location (tab, address, TAB_ADDRESS_EXPIRE_NOW); |