mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-23 23:09:39 +03:00
[project @ 2005-07-27 22:49:53 by jmb]
Mark invalid CSS contents with an error so they get flushed from the cache. svn path=/import/netsurf/; revision=1828
This commit is contained in:
parent
13349e1ea0
commit
e37acd498f
@ -672,6 +672,17 @@ void html_convert_css_callback(content_msg msg, struct content *css,
|
||||
content_set_status(c, messages_get("NotCSS"));
|
||||
content_broadcast(c, CONTENT_MSG_STATUS, data);
|
||||
content_remove_user(css, html_convert_css_callback, c, (void*)i);
|
||||
if (!css->user_list) {
|
||||
/* we were the only user and we
|
||||
* don't want this content, so
|
||||
* stop it fetching and mark it
|
||||
* as having an error so it gets
|
||||
* removed from the cache next time
|
||||
* content_clean() gets called */
|
||||
fetch_abort(css->fetch);
|
||||
css->fetch = 0;
|
||||
css->status = CONTENT_STATUS_ERROR;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user