Fix title handling
1. file:/// stay the same when you navigate
2. Fix "http://~" to "file://~" in home dir
3. Expands "file://~" to "file://home/user"
Thanks to quinq for fixing the issue #1 in commit 934705c in surf2.
Signed-off-by: Christoph Lohmann <20h@r-36.net>
This commit is contained in:
committed by
Christoph Lohmann
parent
002e82d188
commit
9fa4ffef72
@@ -802,6 +802,7 @@ loadstatuschange(WebKitWebView *view, GParamSpec *pspec, Client *c)
|
|||||||
& SOUP_MESSAGE_CERTIFICATE_TRUSTED);
|
& SOUP_MESSAGE_CERTIFICATE_TRUSTED);
|
||||||
}
|
}
|
||||||
setatom(c, AtomUri, uri);
|
setatom(c, AtomUri, uri);
|
||||||
|
c->title = copystr(&c->title, uri);
|
||||||
|
|
||||||
if (enablestyle)
|
if (enablestyle)
|
||||||
setstyle(c, getstyle(uri));
|
setstyle(c, getstyle(uri));
|
||||||
|
|||||||
Reference in New Issue
Block a user