summaryrefslogtreecommitdiff
path: root/desktop/browser.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-11-05 23:44:31 +0000
committerVincent Sanders <vince@kyllikki.org>2014-11-05 23:44:31 +0000
commit8ec7ad053a9a291ea2619055b1ca1989d4c975b9 (patch)
treeaa7272b673e2062985667d87fcfe7e19f30eb239 /desktop/browser.c
parent4ca959f46baf18213bf5ded769d87c7f030d392f (diff)
downloadnetsurf-8ec7ad053a9a291ea2619055b1ca1989d4c975b9.tar.gz
netsurf-8ec7ad053a9a291ea2619055b1ca1989d4c975b9.tar.bz2
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.
Diffstat (limited to 'desktop/browser.c')
-rw-r--r--desktop/browser.c2
1 files changed, 1 insertions, 1 deletions
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);
}