From 8ec7ad053a9a291ea2619055b1ca1989d4c975b9 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 5 Nov 2014 23:44:31 +0000 Subject: Make the fetching of a contents encoding generic. The frontends previously had to use an html renderer API to get the encoding of a content. This also required the explicit checking of the contents type rather than using the existing content API to abstract this knowledge. --- desktop/browser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'desktop/browser.c') diff --git a/desktop/browser.c b/desktop/browser.c index ada46cdd3..b075bcb15 100644 --- a/desktop/browser.c +++ b/desktop/browser.c @@ -1907,8 +1907,8 @@ nserror browser_window_navigate(struct browser_window *bw, post.data.urlenc = post_urlenc; } + child.charset = content_get_encoding(parent); if ((parent != NULL) && (content_get_type(parent) == CONTENT_HTML)) { - child.charset = html_get_encoding(parent); child.quirks = content_get_quirks(parent); } -- cgit v1.2.3