Consider all about: URIs as blank
about:version is prominently not rendered as "" so we need to check the prefix. Fixes: https://bugs.launchpad.net/midori/+bug/784337
This commit is contained in:
parent
22a7862654
commit
338ddf8ea7
1 changed files with 4 additions and 1 deletions
|
@ -3943,9 +3943,12 @@ midori_view_set_uri (MidoriView* view,
|
||||||
gboolean
|
gboolean
|
||||||
midori_view_is_blank (MidoriView* view)
|
midori_view_is_blank (MidoriView* view)
|
||||||
{
|
{
|
||||||
|
const gchar* uri;
|
||||||
|
|
||||||
g_return_val_if_fail (MIDORI_IS_VIEW (view), TRUE);
|
g_return_val_if_fail (MIDORI_IS_VIEW (view), TRUE);
|
||||||
|
|
||||||
return midori_view_get_display_uri (view)[0] == '\0';
|
uri = midori_view_get_display_uri (view);
|
||||||
|
return uri[0] == '\0' || g_str_has_prefix (uri, "about:");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue