~mil/sxmo-surf

c71226a375b20044b9a8e656f87b22f10031c61b — Stephen Paul Weber 1 year, 2 months ago c0bb3d1
Always set _SURF_URI on load event

This way we catch all load events and keep the property in sync.

Closes https://todo.sr.ht/~mil/sxmo-tickets/71

Signed-off-by: Miles Alan <m@milesalan.com>
1 files changed, 1 insertions(+), 2 deletions(-)

M surf.c
M surf.c => surf.c +1 -2
@@ 1312,17 1312,16 @@ void
loadchanged(WebKitWebView *v, WebKitLoadEvent e, Client *c)
{
	const char *title = geturi(c);
	setatom(c, AtomUri, title);

	switch (e) {
	case WEBKIT_LOAD_STARTED:
		curconfig = defconfig;
		setatom(c, AtomUri, title);
		c->title = title;
		c->tlsflags = G_TLS_CERTIFICATE_VALIDATE_ALL + 1;
		seturiparameters(c, geturi(c));
		break;
	case WEBKIT_LOAD_REDIRECTED:
		setatom(c, AtomUri, title);
		c->title = title;
		seturiparameters(c, geturi(c));
		break;