summaryrefslogtreecommitdiff
path: root/css
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-07-08 13:25:54 +0100
committerVincent Sanders <vince@kyllikki.org>2014-07-08 13:25:54 +0100
commit89a02c3a8fa8b386224e531118c82a6a76332229 (patch)
treec8dc1eefc71af1f5b1fbe076b50333c43e4cbd77 /css
parent5ce4f11eac7fae76fe2965f92daf2910f80eb6a1 (diff)
downloadnetsurf-89a02c3a8fa8b386224e531118c82a6a76332229.tar.gz
netsurf-89a02c3a8fa8b386224e531118c82a6a76332229.tar.bz2
when walking the css imports ensure the content is present before dereferencing it
css import entries may not have a valid content if the resource failed to load or was unsuitable in some otehr way. The save_complete iterator did not cope with this. fixes #2166
Diffstat (limited to 'css')
-rw-r--r--css/css.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/css/css.c b/css/css.c
index 94c0be3be..9dc6e8cba 100644
--- a/css/css.c
+++ b/css/css.c
@@ -575,14 +575,14 @@ css_error nscss_handle_import(void *pw, css_stylesheet *parent,
/* Create content */
c->imports[c->import_count].media = media;
- /* TODO: Why aren't we getting a relative url part, to join? */
+ /** \todo Why aren't we getting a relative url part, to join? */
nerror = nsurl_create(lwc_string_data(url), &ns_url);
if (nerror != NSERROR_OK) {
free(ctx);
return CSS_NOMEM;
}
- /* TODO: Constructing nsurl for referer here is silly, avoid */
+ /** \todo Constructing nsurl for referer here is silly, avoid */
nerror = nsurl_create(referer, &ns_ref);
if (nerror != NSERROR_OK) {
nsurl_unref(ns_url);